-
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
Perform some janitorial work on the compiler #11665
Conversation
Updated with more cleanups |
|
||
debugging_opts!( | ||
[ | ||
verbose, |
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.
Is it worth capitalising these statics while you're modifying them anyway?
Sounds like a plan to me, I'll update these soon. |
Sadly the lang items weren't quite as unused as I thought they were, otherwise rebased to capitalize debugging opts and use a u64 instead of a uint. |
Instead use a macro and generate them!
* borrowck_note_pure - unused * borrowck_note_loan - unused * no_debug_borrows - unused * lint_llvm - equivalent to -Z no-prepopulate-passes + --llvm-passes lint
This hasn't been in use since `@mut` was removed
* Stop using hardcoded numbers that have to all get updated when something changes (inevitable errors and rebase conflicts) as well as removes some unneeded -Z options (obsoleted over time). * Remove `std::rt::borrowck`
close rust-lang#11066 close rust-lang#11665 close rust-lang#11911
…-null, r=llogiq fix(ptr_as_ptr): handle `std::ptr::null{_mut}` close rust-lang#11066 close rust-lang#11665 close rust-lang#11911 *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: [`ptr_as_ptr`]: handle `std::ptr::null` and `std::ptr::null_mut`
std::rt::borrowck