mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-27 16:06:03 +00:00
ac2d9fc509
Migrate in-tree crates to 2021
This replaces #89075 (cherry picking some of the commits from there), and closes #88637 and fixes #89074.
It excludes a migration of the library crates for now (see tidy diff) because we have some pending bugs around macro spans to fix there.
I instrumented bootstrap during the migration to make sure all crates moved from 2018 to 2021 had the compatibility warnings applied first.
Originally, the intent was to support cargo fix --edition within bootstrap, but this proved fairly difficult to pull off. We'd need to architect the check functionality to support running cargo check and cargo fix within the same x.py invocation, and only resetting sysroots on check. Further, it was found that cargo fix doesn't behave too well with "not quite workspaces", such as Clippy which has several crates. Bootstrap runs with --manifest-path ... for all the tools, and this makes cargo fix only attempt migration for that crate. We can't use e.g. --workspace due to needing to maintain sysroots for different phases of compilation appropriately.
It is recommended to skip the mass migration of Cargo.toml's to 2021 for review purposes; you can also use `git diff d6cd2c6c87
-I'^edition = .20...$'` to ignore the edition = 2018/21 lines in the diff.
33 lines
1.0 KiB
TOML
33 lines
1.0 KiB
TOML
[package]
|
|
name = "rustc_metadata"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
libc = "0.2"
|
|
odht = { version = "0.3.0", features = ["nightly"] }
|
|
snap = "1"
|
|
tracing = "0.1"
|
|
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
|
|
rustc_middle = { path = "../rustc_middle" }
|
|
rustc_attr = { path = "../rustc_attr" }
|
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
|
rustc_errors = { path = "../rustc_errors" }
|
|
rustc_feature = { path = "../rustc_feature" }
|
|
rustc_hir = { path = "../rustc_hir" }
|
|
rustc_hir_pretty = { path = "../rustc_hir_pretty" }
|
|
rustc_target = { path = "../rustc_target" }
|
|
rustc_index = { path = "../rustc_index" }
|
|
rustc_macros = { path = "../rustc_macros" }
|
|
rustc_serialize = { path = "../rustc_serialize" }
|
|
rustc_ast = { path = "../rustc_ast" }
|
|
rustc_expand = { path = "../rustc_expand" }
|
|
rustc_span = { path = "../rustc_span" }
|
|
rustc_session = { path = "../rustc_session" }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = { version = "0.3", features = ["errhandlingapi", "libloaderapi"] }
|