rust/compiler/rustc_lint/src
bors df7fd9995f Auto merge of #108221 - petrochenkov:cratecfg, r=michaelwoerister
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 on the crate itself are then expanded normally during the main expansion pass, like attributes on any other nodes.
This is a continuation of https://github.com/rust-lang/rust/pull/92473 and one more step to very unstable crate-level proc macro attributes maybe actually working.

Previously crate attributes were pre-configured simultaneously with feature extraction, and then written directly into `ast::Crate`.
2023-03-23 15:17:59 +00:00
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
builtin.rs Auto merge of #109517 - matthiaskrgr:rollup-m3orqzd, r=matthiaskrgr 2023-03-23 12:35:05 +00:00
context.rs Move the unused extern crate check back to the resolver. 2023-02-22 20:48:27 +00:00
deref_into_dyn_supertrait.rs Don't eagerly convert principal to string 2023-02-17 14:44:58 +00:00
early.rs rustc_interface: Add a new query pre_configure 2023-03-23 14:22:48 +04:00
enum_intrinsics_non_enums.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
expect.rs Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot 2023-01-13 13:57:21 +00:00
for_loops_over_fallibles.rs use the correct param env 2023-03-21 09:57:22 +01:00
hidden_unicode_codepoints.rs migrate: hidden_unicode_codepoints.rs 2023-01-09 17:07:25 -05:00
internal.rs Use local key in providers 2023-03-21 15:38:51 +00:00
late.rs Remove HirId -> LocalDefId map from HIR. 2023-01-28 09:55:26 +00:00
let_underscore.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
levels.rs Querify registered_tools. 2023-03-06 10:56:23 +00:00
lib.rs Add lint for useless anonymous reexports 2023-03-12 15:12:42 +01:00
lints.rs Rollup merge of #109003 - GuillaumeGomez:useless-anonymous-reexport-lint, r=cjgillot 2023-03-19 15:33:57 +05:30
map_unit_fn.rs Fix #109152, fix the scenario that we may can not get span of func 2023-03-15 14:07:39 +08:00
methods.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
multiple_supertrait_upcastable.rs Reintroduce multiple_supertrait_upcastable lint 2023-01-28 15:08:07 +00:00
non_ascii_idents.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
non_fmt_panic.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
nonstandard_style.rs rustc: Remove unused Session argument from some attribute functions 2023-03-22 13:55:55 +04:00
noop_method_call.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
opaque_hidden_inferred_bound.rs Nested impl traits trigger opaque_hidden_inferred_bound too much 2023-03-23 06:19:52 +00:00
pass_by_value.rs remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata 2023-02-16 17:05:56 -07:00
passes.rs Take a LocalDefId in hir::Visitor::visit_fn. 2023-01-28 09:51:50 +00:00
redundant_semicolon.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
reexports.rs Add lint for useless anonymous reexports 2023-03-12 15:12:42 +01:00
tests.rs Update to last upstream version 2021-07-08 17:14:28 +02:00
traits.rs refactor: cleanup 2023-01-09 18:57:02 -05:00
types.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
unused.rs error-msg: expand suggestion for unused lint 2023-03-15 23:30:12 +13:00