-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Move Sessions into (new) librustc_session #66878
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2ea1833
Use FxHash* from data structures not nodemap
Mark-Simulacrum b7cd58c
Decouple CguReuseTracker from Session
Mark-Simulacrum c761ec1
Introduce rustc_session crate
Mark-Simulacrum 984c74a
Move cgu_reuse_tracker to librustc_session
Mark-Simulacrum 4351698
Move duration_to_secs_str to rustc_session
Mark-Simulacrum 433e546
Move Level to rustc_session
Mark-Simulacrum 526ee51
Move Lint to rustc_session
Mark-Simulacrum f03d8f3
Move early lint declarations to librustc_session
Mark-Simulacrum 285144a
Move NativeLibraryKind to rustc_session
Mark-Simulacrum 72c67be
Re-export Client from rustc_data_structures::jobserver
Mark-Simulacrum f2a8aed
Directly use types from libsyntax::ast
Mark-Simulacrum e810b7e
Remove dead cfg method
Mark-Simulacrum 2731075
Duplicate CrateConfig into Session
Mark-Simulacrum 817d1ae
Move BufferedEarlyLint to librustc_session
Mark-Simulacrum 52d4d47
Move ParseSess to librustc_session
Mark-Simulacrum cc2c33a
Move Session to librustc_session
Mark-Simulacrum 42c4ae0
Deduplicate CrateConfig
Mark-Simulacrum 68fb218
Fix UI tests for new locations
Mark-Simulacrum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ use syntax::ast; | |
use syntax::edition::Edition; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder what, if anything, is holding us back from moving more lints from this file to |
||
use syntax::source_map::Span; | ||
use syntax::symbol::Symbol; | ||
use syntax::early_buffered_lints::{ILL_FORMED_ATTRIBUTE_INPUT, META_VARIABLE_MISUSE}; | ||
use rustc_session::declare_lint; | ||
|
||
declare_lint! { | ||
pub EXCEEDING_BITSHIFTS, | ||
|
@@ -404,31 +406,6 @@ declare_lint! { | |
}; | ||
} | ||
|
||
/// Some lints that are buffered from `libsyntax`. See `syntax::early_buffered_lints`. | ||
pub mod parser { | ||
declare_lint! { | ||
pub ILL_FORMED_ATTRIBUTE_INPUT, | ||
Deny, | ||
"ill-formed attribute inputs that were previously accepted and used in practice", | ||
@future_incompatible = super::FutureIncompatibleInfo { | ||
reference: "issue #57571 <https://github.com/rust-lang/rust/issues/57571>", | ||
edition: None, | ||
}; | ||
} | ||
|
||
declare_lint! { | ||
pub META_VARIABLE_MISUSE, | ||
Allow, | ||
"possible meta-variable misuse at macro definition" | ||
} | ||
|
||
declare_lint! { | ||
pub INCOMPLETE_INCLUDE, | ||
Deny, | ||
"trailing content in included file" | ||
} | ||
} | ||
|
||
declare_lint! { | ||
pub DEPRECATED_IN_FUTURE, | ||
Allow, | ||
|
@@ -520,8 +497,8 @@ declare_lint_pass! { | |
PROC_MACRO_DERIVE_RESOLUTION_FALLBACK, | ||
MACRO_USE_EXTERN_CRATE, | ||
MACRO_EXPANDED_MACRO_EXPORTS_ACCESSED_BY_ABSOLUTE_PATHS, | ||
parser::ILL_FORMED_ATTRIBUTE_INPUT, | ||
parser::META_VARIABLE_MISUSE, | ||
ILL_FORMED_ATTRIBUTE_INPUT, | ||
META_VARIABLE_MISUSE, | ||
DEPRECATED_IN_FUTURE, | ||
AMBIGUOUS_ASSOCIATED_ITEMS, | ||
MUTABLE_BORROW_RESERVATION_CONFLICT, | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.