mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
a733192980
`rustc_hir_analysis` depends on `rustc_lint` in just a single function: `emit_delayed_lint`, which is used by the "emit_ast_lowering_delayed_lints" checking section within `rustc_hir_analysis::check_crate`. This commit moves that function and section to out of `rustc_hir_analysis::check_crate`, into `rustc_interface`, eliminating the dependency. This seems reasonable because the delayed lint errors aren't really related to HIR analysis. They were in there just because HIR analysis follows AST lowering. This means `rustc_hir_analysis` and `rustc_lint` can both start compiling as soon as `rustc_trait_selection` finishes. This also changes the error order in one test, which doesn't matter. The commit also changes `emit_delayed_lint` to `emit_delayed_lints`, factoring out some code duplicated in rustdoc.
32 lines
1001 B
TOML
32 lines
1001 B
TOML
[package]
|
|
name = "rustc_hir_analysis"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
test = false
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
# tidy-alphabetical-start
|
|
itertools = "0.12"
|
|
rustc_abi = { path = "../rustc_abi" }
|
|
rustc_arena = { path = "../rustc_arena" }
|
|
rustc_ast = { path = "../rustc_ast" }
|
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
|
rustc_errors = { path = "../rustc_errors" }
|
|
rustc_feature = { path = "../rustc_feature" }
|
|
rustc_hir = { path = "../rustc_hir" }
|
|
rustc_index = { path = "../rustc_index" }
|
|
rustc_infer = { path = "../rustc_infer" }
|
|
rustc_lint_defs = { path = "../rustc_lint_defs" }
|
|
rustc_macros = { path = "../rustc_macros" }
|
|
rustc_middle = { path = "../rustc_middle" }
|
|
rustc_session = { path = "../rustc_session" }
|
|
rustc_span = { path = "../rustc_span" }
|
|
rustc_target = { path = "../rustc_target" }
|
|
rustc_trait_selection = { path = "../rustc_trait_selection" }
|
|
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
|
|
tracing = "0.1"
|
|
# tidy-alphabetical-end
|