about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-01 17:47:06 +0200
committerGitHub <noreply@github.com>2025-07-01 17:47:06 +0200
commit189bfc1e63b394a7c0e9a75263f157347d03eb0b (patch)
treebfe3a5ae3d8a6b84ac9980ea7aa2d35f92d81ce0 /tests
parentd2463c9a60d952be923ff6340a4d69f28bdd6ffa (diff)
parent711c6166bc2ed7d3afb769ab24cee7a1ad436a32 (diff)
downloadrust-189bfc1e63b394a7c0e9a75263f157347d03eb0b.tar.gz
rust-189bfc1e63b394a7c0e9a75263f157347d03eb0b.zip
Rollup merge of #143279 - GuillaumeGomez:rm-itemkind-descr, r=oli-obk
Remove `ItemKind::descr` method

Follow-up of rust-lang/rust#143234.

After this PR is merged, it will remain two `descr` methods:

 * `hir::GenericArg::descr`
 * `hir::AssocItemConstraintKind::descr`

For both these enums, I don't think there is the right equivalent in `hir::DefKind` so unless I missed something, we can't remove these two methods because we can't convert these enums into `hir::DefKind`.

r? `@oli-obk`
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/lowering/issue-121108.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/lowering/issue-121108.stderr b/tests/ui/lowering/issue-121108.stderr
index e4942e8cb07..f68655a7002 100644
--- a/tests/ui/lowering/issue-121108.stderr
+++ b/tests/ui/lowering/issue-121108.stderr
@@ -5,7 +5,7 @@ LL | #![derive(Clone, Copy)]
    | ^^^^^^^^^^^^^^^^^^^^^^^
 LL |
 LL | use std::ptr::addr_of;
-   |               ------- the inner attribute doesn't annotate this `use` import
+   |               ------- the inner attribute doesn't annotate this import
    |
 help: perhaps you meant to use an outer attribute
    |