about summary refs log tree commit diff
path: root/tests/ui/specialization
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-13 22:39:10 +0000
committerbors <bors@rust-lang.org>2025-07-13 22:39:10 +0000
commit9c3064e131f4939cc95a29bb11413c49bbda1491 (patch)
tree8320ff7f32aa67eec55081c56987eb517095cb49 /tests/ui/specialization
parente9182f195b8505c87c4bd055b9f6e114ccda0981 (diff)
parent27127e342d28ebeb0734916ada6979b6938fb532 (diff)
downloadrust-9c3064e131f4939cc95a29bb11413c49bbda1491.tar.gz
rust-9c3064e131f4939cc95a29bb11413c49bbda1491.zip
Auto merge of #143357 - cjgillot:no-assoc-item-kind, r=compiler-errors
Retire hir::*ItemRef.

This information was kept for various places that iterate on HIR to know about trait-items and impl-items.

This PR replaces them by uses of the `associated_items` query that contain pretty much the same information.

This shortens many spans to just `def_span`, which can be easier to read.
Diffstat (limited to 'tests/ui/specialization')
-rw-r--r--tests/ui/specialization/specialization-default-types.current.stderr2
-rw-r--r--tests/ui/specialization/specialization-default-types.next.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/specialization/specialization-default-types.current.stderr b/tests/ui/specialization/specialization-default-types.current.stderr
index 67477f9a6d5..09689681740 100644
--- a/tests/ui/specialization/specialization-default-types.current.stderr
+++ b/tests/ui/specialization/specialization-default-types.current.stderr
@@ -12,7 +12,7 @@ error[E0308]: mismatched types
   --> $DIR/specialization-default-types.rs:19:9
    |
 LL |     default type Output = Box<T>;
-   |     ----------------------------- associated type is `default` and may be overridden
+   |     ------------------- associated type is `default` and may be overridden
 LL |     default fn generate(self) -> Self::Output {
    |                                  ------------ expected `<T as Example>::Output` because of return type
 LL |         Box::new(self)
diff --git a/tests/ui/specialization/specialization-default-types.next.stderr b/tests/ui/specialization/specialization-default-types.next.stderr
index 4f7c4765446..1535c6473bd 100644
--- a/tests/ui/specialization/specialization-default-types.next.stderr
+++ b/tests/ui/specialization/specialization-default-types.next.stderr
@@ -12,7 +12,7 @@ error[E0308]: mismatched types
   --> $DIR/specialization-default-types.rs:19:9
    |
 LL |     default type Output = Box<T>;
-   |     ----------------------------- associated type is `default` and may be overridden
+   |     ------------------- associated type is `default` and may be overridden
 LL |     default fn generate(self) -> Self::Output {
    |                                  ------------ expected `<T as Example>::Output` because of return type
 LL |         Box::new(self)