diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-03-14 16:53:04 +0400 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-03-23 14:22:48 +0400 |
| commit | aca1b1e0b3820ae03622c37fb1b32e005d737fbf (patch) | |
| tree | 0a055bcc4ff0cd57199f47c733696395e0132d45 /compiler/rustc_driver_impl/src/lib.rs | |
| parent | f26da39e041b149f77e4b579bc2d38117af41c73 (diff) | |
| download | rust-aca1b1e0b3820ae03622c37fb1b32e005d737fbf.tar.gz rust-aca1b1e0b3820ae03622c37fb1b32e005d737fbf.zip | |
rustc_interface: Add a new query `pre_configure`
It partially expands crate attributes before the main expansion pass (without modifying the crate), and the produced preliminary crate attribute list is used for querying a few attributes that are required very early. Crate-level cfg attributes are then expanded normally during the main expansion pass, like attributes on any other nodes.
Diffstat (limited to 'compiler/rustc_driver_impl/src/lib.rs')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 8634c644176..14d6569271e 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -353,7 +353,7 @@ fn run_compiler( { let plugins = queries.register_plugins()?; - let (_, lint_store) = &*plugins.borrow(); + let (.., lint_store) = &*plugins.borrow(); // Lint plugins are registered; now we can process command line flags. if sess.opts.describe_lints { |
