diff options
| author | bors <bors@rust-lang.org> | 2023-11-28 14:54:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-28 14:54:11 +0000 |
| commit | 5facb422f8a5a61df515572fe79b02433639d565 (patch) | |
| tree | 3b22f50fd141bd7d354f4e97899a1f7d773b10c3 /tests | |
| parent | df0295f07175acc7325ce3ca4152eb05752af1f2 (diff) | |
| parent | 84de641484fcb337351947573c7c8608ee52dfc2 (diff) | |
| download | rust-5facb422f8a5a61df515572fe79b02433639d565.tar.gz rust-5facb422f8a5a61df515572fe79b02433639d565.zip | |
Auto merge of #118188 - petrochenkov:defeed, r=cjgillot
resolve: Feed the `def_kind` query immediately on `DefId` creation Before this PR the def kind query required building HIR for no good reason, with this PR def kinds are instead assigned immediately when `DefId`s are created. Some PRs previously refactored things to make all def kinds to be available early enough - https://github.com/rust-lang/rust/pull/118250, https://github.com/rust-lang/rust/pull/118272, https://github.com/rust-lang/rust/pull/118311.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/dep-graph/dep-graph-trait-impl-two-traits.rs | 2 | ||||
| -rw-r--r-- | tests/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/symbol-names/foreign-types.stderr | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.rs b/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.rs index 590475fa03a..0331e75b2fe 100644 --- a/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.rs +++ b/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.rs @@ -29,7 +29,7 @@ mod x { mod y { use {Foo, Bar}; - #[rustc_then_this_would_need(typeck)] //~ ERROR OK + #[rustc_then_this_would_need(typeck)] //~ ERROR no path pub fn call_bar() { char::bar('a'); } diff --git a/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr b/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr index 4e10437362c..08f382cc024 100644 --- a/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr +++ b/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr @@ -1,4 +1,4 @@ -error: OK +error: no path from `x::<impl Foo for char>` to `typeck` --> $DIR/dep-graph-trait-impl-two-traits.rs:32:5 | LL | #[rustc_then_this_would_need(typeck)] diff --git a/tests/ui/symbol-names/foreign-types.stderr b/tests/ui/symbol-names/foreign-types.stderr index 9c8633742b2..63044991485 100644 --- a/tests/ui/symbol-names/foreign-types.stderr +++ b/tests/ui/symbol-names/foreign-types.stderr @@ -1,4 +1,4 @@ -error: symbol-name(_RMCsCRATE_HASH_13foreign_typesINtB<REF>_5CheckNvB<REF>_11ForeignTypeE) +error: symbol-name(_RMCsCRATE_HASH_13foreign_typesINtB<REF>_5CheckNtB<REF>_11ForeignTypeE) --> $DIR/foreign-types.rs:13:1 | LL | #[rustc_symbol_name] |
