-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Rename Unique::empty() -> Unique::dangling() #71597
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @shepmaster (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
/cc @RalfJung |
Shouldn't this comment be removed in this PR, if it's being fixed? nevermind, I just can't read (Mondays...) |
Ah, I wouldn't have called this refactoring (although I think it technically is), but "renaming" is more precise terminology. We aren't changing the code to call some existing |
Haha no worries
Good point. It is indeed a very basic refactoring. I can change the history if you'd like |
"dangling" is what we call this elsewhere, so renaming makes sense to me. |
Otherwise, these changes look good, please go ahead and squash them and make the "renaming" change to the commit messages and we can merge! |
a612af5
to
91d0f8b
Compare
@bors r+ rollup |
📌 Commit 91d0f8b4f44c373ec0efe069cd45d2c3fa3572ee has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#71507 (Document unsafety in core::ptr) - rust-lang#71572 (test iterator chain type length blowup) - rust-lang#71617 (Suggest `into` instead of `try_into` if possible with int types) - rust-lang#71627 (Fix wrong argument in autoderef process) - rust-lang#71678 (Add an index page for nightly rustc docs.) - rust-lang#71680 (Fix doc link to Eq trait from PartialEq trait) Failed merges: - rust-lang#71597 (Rename Unique::empty() -> Unique::dangling()) r? @ghost
☔ The latest upstream changes (presumably #71689) made this pull request unmergeable. Please resolve the merge conflicts. |
91d0f8b
to
eda7f8f
Compare
rename-unique: Change calls and doc in raw_vec.rs rename-unique: Change empty() -> dangling() in const-ptr-unique-rpass.rs
@bors r=shepmaster |
📌 Commit eda7f8f has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#70950 (extend NLL checker to understand `'empty` combined with universes) - rust-lang#71433 (Add help message for missing right operand in condition) - rust-lang#71449 (Move `{Free,}RegionRelations` and `FreeRegionMap` to `rustc_infer`) - rust-lang#71559 (Detect git version before attempting to use --progress) - rust-lang#71597 (Rename Unique::empty() -> Unique::dangling()) Failed merges: r? @ghost
A
FIXME
comment insrc/libcore/ptr/unique.rs
suggested refactoringUnique::empty()
toUnique::dangling()
which this PR does.