rust/compiler/rustc_lint/src
bors 0f573a0c54 Auto merge of #95573 - cjgillot:lower-query, r=michaelwoerister
Make lowering a query

Split from https://github.com/rust-lang/rust/pull/88186.

This PR refactors the relationship between lowering and the resolver outputs in order to make lowering itself a query.
In a first part, lowering is changed to avoid modifying resolver outputs, by maintaining its own data structures for creating new `NodeId`s and so.

Then, the `TyCtxt` is modified to allow creating new `LocalDefId`s from inside it. This is done by:
- enclosing `Definitions` in a lock, so as to allow modification;
- creating a query `register_def` whose purpose is to declare a `LocalDefId` to the query system.

See `TyCtxt::create_def` and `TyCtxt::iter_local_def_id` for more detailed explanations of the design.
2022-07-07 18:14:44 +00:00
..
nonstandard_style
array_into_iter.rs
builtin.rs Rollup merge of #98519 - TaKO8Ki:add-head-span-field-to-item-and-impl-item, r=cjgillot 2022-07-06 20:43:24 +02:00
context.rs Rollup merge of #98507 - xFrednet:rfc-2383-manual-expectation-magic, r=wesleywiser 2022-07-07 18:06:50 +05:30
early.rs
enum_intrinsics_non_enums.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
expect.rs
hidden_unicode_codepoints.rs
internal.rs errors: introduce DecorateLint 2022-07-05 16:00:20 +01:00
late.rs Make AST lowering a query. 2022-07-06 23:04:55 +02:00
levels.rs lint: LintDiagnosticBuilder into rustc_errors 2022-07-05 16:00:20 +01:00
lib.rs Make AST lowering a query. 2022-07-06 23:04:55 +02:00
methods.rs
non_ascii_idents.rs
non_fmt_panic.rs
nonstandard_style.rs
noop_method_call.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
pass_by_value.rs
passes.rs
redundant_semicolon.rs
tests.rs
traits.rs
types.rs Rollup merge of #98884 - davidtwco:translation-on-lints-derive, r=oli-obk 2022-07-06 14:49:10 +05:30
unused.rs lint: port unused allocation diagnostics 2022-06-30 08:59:22 +01:00