Skip to content

Commit ec15d97

Browse files
Merge pull request #20887 from rust-lang/revert-20316-better-attrs
Revert "internal: Rewrite attribute handling"
2 parents 08c0dc6 + 7a7ab99 commit ec15d97

File tree

137 files changed

+3805
-4953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+3805
-4953
lines changed

Cargo.lock

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ debug = 2
5252
# local crates
5353
macros = { path = "./crates/macros", version = "0.0.0" }
5454
base-db = { path = "./crates/base-db", version = "0.0.0" }
55-
cfg = { path = "./crates/cfg", version = "0.0.0", features = ["tt", "syntax"] }
55+
cfg = { path = "./crates/cfg", version = "0.0.0", features = ["tt"] }
5656
hir = { path = "./crates/hir", version = "0.0.0" }
5757
hir-def = { path = "./crates/hir-def", version = "0.0.0" }
5858
hir-expand = { path = "./crates/hir-expand", version = "0.0.0" }
@@ -131,7 +131,7 @@ process-wrap = { version = "8.2.1", features = ["std"] }
131131
pulldown-cmark-to-cmark = "10.0.4"
132132
pulldown-cmark = { version = "0.9.6", default-features = false }
133133
rayon = "1.10.0"
134-
rowan = "=0.15.17"
134+
rowan = "=0.15.15"
135135
# Ideally we'd not enable the macros feature but unfortunately the `tracked` attribute does not work
136136
# on impls without it
137137
salsa = { version = "0.24.0", default-features = true, features = [
@@ -167,7 +167,6 @@ tracing-subscriber = { version = "0.3.20", default-features = false, features =
167167
triomphe = { version = "0.1.14", default-features = false, features = ["std"] }
168168
url = "2.5.4"
169169
xshell = "0.2.7"
170-
thin-vec = "0.2.14"
171170
petgraph = { version = "0.8.2", default-features = false }
172171

173172
# We need to freeze the version of the crate, as the raw-api feature is considered unstable

crates/base-db/src/editioned_file_id.rs

Lines changed: 0 additions & 291 deletions
This file was deleted.

crates/base-db/src/input.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,9 @@ pub(crate) fn transitive_rev_deps(db: &dyn RootQueryDb, of: Crate) -> FxHashSet<
829829
rev_deps
830830
}
831831

832-
impl Crate {
833-
pub fn root_file_id(self, db: &dyn salsa::Database) -> EditionedFileId {
834-
let data = self.data(db);
835-
EditionedFileId::new(db, data.root_file_id, data.edition, self)
832+
impl BuiltCrateData {
833+
pub fn root_file_id(&self, db: &dyn salsa::Database) -> EditionedFileId {
834+
EditionedFileId::new(db, self.root_file_id, self.edition)
836835
}
837836
}
838837

0 commit comments

Comments
 (0)