Skip to content

Instantly share code, notes, and snippets.

@caipre

caipre/autoderef Secret

Created September 19, 2016 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caipre/eada8f32b2555a9240a2dd709d97532a to your computer and use it in GitHub Desktop.
Save caipre/eada8f32b2555a9240a2dd709d97532a to your computer and use it in GitHub Desktop.
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libcore
warning[E0569]: cannot mutably dereference values of type ptr::Unique<T>
--> src/libcore/ptr.rs:713:15
|
713 | &mut ***self
| ^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for ptr::Unique<T>
--> src/libcore/ptr.rs:713:15
|
713 | &mut ***self
| ^^^^^^
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/liblibc
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librand
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librustc_unicode
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librustc_bitflags
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/liballoc_system
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libunwind
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/liballoc_jemalloc
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/liballoc
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<arc::ArcInner<T>>
--> src/liballoc/arc.rs:470:31
|
470 | let inner = &mut **this.ptr;
| ^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<arc::ArcInner<T>>
--> src/liballoc/arc.rs:470:31
|
470 | let inner = &mut **this.ptr;
| ^^^^^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<arc::ArcInner<T>>
--> src/liballoc/arc.rs:502:35
|
502 | let inner = &mut **this.ptr;
| ^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<arc::ArcInner<T>>
--> src/liballoc/arc.rs:502:35
|
502 | let inner = &mut **this.ptr;
| ^^^^^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<rc::RcBox<T>>
--> src/liballoc/rc.rs:373:40
|
373 | let inner = unsafe { &mut **this.ptr };
| ^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<rc::RcBox<T>>
--> src/liballoc/rc.rs:373:40
|
373 | let inner = unsafe { &mut **this.ptr };
| ^^^^^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<rc::RcBox<T>>
--> src/liballoc/rc.rs:429:36
|
429 | let inner = unsafe { &mut **this.ptr };
| ^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<rc::RcBox<T>>
--> src/liballoc/rc.rs:429:36
|
429 | let inner = unsafe { &mut **this.ptr };
| ^^^^^^^^^
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libcollections
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libpanic_abort
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:104:33
|
104 | Some(head) => (**head).prev = node,
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:104:33
|
104 | Some(head) => (**head).prev = node,
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:121:33
|
121 | Some(head) => (**head).prev = None,
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:121:33
|
121 | Some(head) => (**head).prev = None,
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:139:33
|
139 | Some(tail) => (**tail).next = node,
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:139:33
|
139 | Some(tail) => (**tail).next = node,
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:156:33
|
156 | Some(tail) => (**tail).next = None,
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:156:33
|
156 | Some(tail) => (**tail).next = None,
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:229:23
|
229 | (**tail).next = Some(other_head);
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:229:23
|
229 | (**tail).next = Some(other_head);
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:230:23
|
230 | (**other_head).prev = Some(tail);
| ^^^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:230:23
|
230 | (**other_head).prev = Some(tail);
| ^^^^^^^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:443:46
|
443 | self.head.map(|node| unsafe { &mut (**node).element })
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:443:46
|
443 | self.head.map(|node| unsafe { &mut (**node).element })
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:489:46
|
489 | self.tail.map(|node| unsafe { &mut (**node).element })
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:489:46
|
489 | self.tail.map(|node| unsafe { &mut (**node).element })
| ^^^^^
warning[E0569]: cannot mutably dereference values of type _
--> src/libcollections/linked_list.rs:634:34
|
634 | second_part_head = (**split_node.unwrap()).next.take();
| ^^^^^^^^^^^^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for _
--> src/libcollections/linked_list.rs:634:34
|
634 | second_part_head = (**split_node.unwrap()).next.take();
| ^^^^^^^^^^^^^^^^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:636:19
|
636 | (**head).prev = None;
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:636:19
|
636 | (**head).prev = None;
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:770:34
|
770 | let node = &mut **node;
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:770:34
|
770 | let node = &mut **node;
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:792:34
|
792 | let node = &mut **node;
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:792:34
|
792 | let node = &mut **node;
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:850:19
|
850 | (**prev).next = node;
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:850:19
|
850 | (**prev).next = node;
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:851:19
|
851 | (**head).prev = node;
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:851:19
|
851 | (**head).prev = node;
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:883:50
|
883 | self.head.map(|node| unsafe { &mut (**node).element })
| ^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<linked_list::Node<T>>
--> src/libcollections/linked_list.rs:883:50
|
883 | self.head.map(|node| unsafe { &mut (**node).element })
| ^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<vec::Vec<T>>
--> src/libcollections/vec.rs:1962:40
|
1962 | let source_vec = &mut **self.vec;
| ^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<vec::Vec<T>>
--> src/libcollections/vec.rs:1962:40
|
1962 | let source_vec = &mut **self.vec;
| ^^^^^^^^^
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<vec_deque::VecDeque<T>>
--> src/libcollections/vec_deque.rs:2009:43
|
2009 | let source_deque = unsafe { &mut **self.deque };
| ^^^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<vec_deque::VecDeque<T>>
--> src/libcollections/vec_deque.rs:2009:43
|
2009 | let source_deque = unsafe { &mut **self.deque };
| ^^^^^^^^^^^
rustc: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libstd
warning[E0569]: cannot mutably dereference values of type core::ptr::Shared<collections::hash::table::RawTable<K, V>>
--> src/libstd/collections/hash/table.rs:979:19
|
979 | (**self.table).size -= 1;
| ^^^^^^^^^^^ mutable dereference here
|
help: consider adding an implementation of the `DerefMut` trait for core::ptr::Shared<collections::hash::table::RawTable<K, V>>
--> src/libstd/collections/hash/table.rs:979:19
|
979 | (**self.table).size -= 1;
| ^^^^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment