-
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
rustc_span
cleanups
#117507
Merged
Merged
rustc_span
cleanups
#117507
Commits on Nov 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d76661b - Browse repository at this point
Copy the full SHA d76661bView commit details -
The comment just below the first one describes how the `impl !Send for FatalError` makes it impossible to `panic!(FatalError)`. And the second one should be `panic_any` instead of `panic!`.
Configuration menu - View commit details
-
Copy full SHA for 1bcb600 - Browse repository at this point
Copy the full SHA 1bcb600View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16e9713 - Browse repository at this point
Copy the full SHA 16e9713View commit details -
Minimize
pub
usage inhygiene.rs
.And remove dead functions revealed by this.
Configuration menu - View commit details
-
Copy full SHA for 222c223 - Browse repository at this point
Copy the full SHA 222c223View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84773b3 - Browse repository at this point
Copy the full SHA 84773b3View commit details -
Minimize
pub
usage insource_map.rs
.Most notably, this commit changes the `pub use crate::*;` in that file to `use crate::*;`. This requires a lot of `use` items in other crates to be adjusted, because everything defined within `rustc_span::*` was also available via `rustc_span::source_map::*`, which is bizarre. The commit also removes `SourceMap::span_to_relative_line_string`, which is unused.
Configuration menu - View commit details
-
Copy full SHA for f405ce8 - Browse repository at this point
Copy the full SHA f405ce8View commit details -
Deinline all session global functions.
These are all called very rarely, so there is no need for them to be inline.
Configuration menu - View commit details
-
Copy full SHA for edb357f - Browse repository at this point
Copy the full SHA edb357fView commit details -
Replace two
create_default_session_if_not_set_then
uses.With `create_default_session_globals_then`, which is preferable when it is appropriate.
Configuration menu - View commit details
-
Copy full SHA for 9893b75 - Browse repository at this point
Copy the full SHA 9893b75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6358411 - Browse repository at this point
Copy the full SHA 6358411View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.