-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow up on BTreeMap comments #70979
Follow up on BTreeMap comments #70979
Conversation
@@ -161,7 +161,7 @@ impl<K, V> Root<K, V> { | |||
NodeRef { | |||
height: self.height, | |||
node: self.node.as_ptr(), | |||
root: self as *const _ as *mut _, | |||
root: ptr::null(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In accordance with the old comment on line 256 and reality (nobody needs that root).
@@ -179,7 +179,7 @@ impl<K, V> Root<K, V> { | |||
NodeRef { | |||
height: self.height, | |||
node: self.node.as_ptr(), | |||
root: ptr::null_mut(), // FIXME: Is there anything better to do here? | |||
root: ptr::null(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt that comment was about the unnecessary _mut for a marker::Immut NodeRef, but I think the question has timed out for this particular place, and applies to everything in BTreeMap anyway.
@bors r+ rollup |
📌 Commit de39a4f has been approved by |
Rollup of 9 pull requests Successful merges: - rust-lang#69745 (Use `PredicateObligation`s instead of `Predicate`s) - rust-lang#70938 (Add ThreadSanitizer test case) - rust-lang#70973 (Use forward traversal for unconditional recursion lint) - rust-lang#70978 (compiletest: let config flags overwrite -A unused) - rust-lang#70979 (Follow up on BTreeMap comments) - rust-lang#70981 (Rearrange BTreeMap::into_iter to match range_mut.) - rust-lang#70985 (Clean up E0512 explanation) - rust-lang#70988 (Setup the `@rustbot prioritize` command) - rust-lang#70991 (fix rustc-dev-guide's url in src/librustc_codegen_ssa) Failed merges: r? @ghost
r? @Amanieu (for the first commit)