mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
197fb1b0d7
Invert dependency between `rustc_errors` and `rustc_abi`. Currently, `rustc_errors` depends on `rustc_abi`, which depends on `rustc_error_messages`. This is a bit odd. `rustc_errors` depends on `rustc_abi` for a single reason: `rustc_abi` defines a type `TargetDataLayoutErrors` and `rustc_errors` impls `Diagnostic` for that type. We can get a more natural relationship by inverting the dependency, moving the `Diagnostic` trait upstream. Then `rustc_abi` defines `TargetDataLayoutErrors` and also impls `Diagnostic` for it. `rustc_errors` is already pretty far upstream in the crate graph, it doesn't hurt to push it a little further because errors are a very low-level concept. r? @davidtwco
35 lines
1011 B
TOML
35 lines
1011 B
TOML
[package]
|
|
name = "rustc_errors"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
# tidy-alphabetical-start
|
|
annotate-snippets = { version = "0.12.15", features = ["simd"] }
|
|
anstream = "0.6.20"
|
|
anstyle = "1.0.13"
|
|
derive_setters = "0.1.6"
|
|
rustc_ast = { path = "../rustc_ast" }
|
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
|
rustc_error_codes = { path = "../rustc_error_codes" }
|
|
rustc_error_messages = { path = "../rustc_error_messages" }
|
|
rustc_hashes = { path = "../rustc_hashes" }
|
|
rustc_index = { path = "../rustc_index" }
|
|
rustc_lint_defs = { path = "../rustc_lint_defs" }
|
|
rustc_macros = { path = "../rustc_macros" }
|
|
rustc_serialize = { path = "../rustc_serialize" }
|
|
rustc_span = { path = "../rustc_span" }
|
|
serde = { version = "1.0.125", features = ["derive"] }
|
|
serde_json = "1.0.59"
|
|
termize = "0.2"
|
|
tracing = "0.1"
|
|
# tidy-alphabetical-end
|
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
|
version = "0.61.0"
|
|
features = [
|
|
"Win32_Foundation",
|
|
"Win32_Security",
|
|
"Win32_System_Threading",
|
|
]
|