Skip to content

Commit 3cc95df

Browse files
Merge pull request rust-lang#20887 from rust-lang/revert-20316-better-attrs
Revert "internal: Rewrite attribute handling"
2 parents 659aa56 + 2ae4ddb commit 3cc95df

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

src/tools/rust-analyzer/Cargo.lock

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,6 @@ dependencies = [
725725
name = "hir-expand"
726726
version = "0.0.0"
727727
dependencies = [
728-
"arrayvec",
729728
"base-db",
730729
"cfg",
731730
"cov-mark",
@@ -744,7 +743,6 @@ dependencies = [
744743
"stdx",
745744
"syntax",
746745
"syntax-bridge",
747-
"thin-vec",
748746
"tracing",
749747
"triomphe",
750748
"tt",
@@ -1993,9 +1991,9 @@ dependencies = [
19931991

19941992
[[package]]
19951993
name = "rowan"
1996-
version = "0.15.17"
1994+
version = "0.15.15"
19971995
source = "registry+https://github.com/rust-lang/crates.io-index"
1998-
checksum = "d4f1e4a001f863f41ea8d0e6a0c34b356d5b733db50dadab3efef640bafb779b"
1996+
checksum = "32a58fa8a7ccff2aec4f39cc45bf5f985cec7125ab271cf681c279fd00192b49"
19991997
dependencies = [
20001998
"countme",
20011999
"hashbrown 0.14.5",

src/tools/rust-analyzer/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

src/tools/rust-analyzer/crates/base-db/src/editioned_file_id.rs

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

src/tools/rust-analyzer/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)