about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-01 15:15:44 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-07-01 17:27:48 +0200
commit711c6166bc2ed7d3afb769ab24cee7a1ad436a32 (patch)
tree9067e589e3da7e4ea5c0a77844c5b0bd58da85fd /src/tools/clippy/tests/ui
parent022c91465aad3688f38e75bdaba93aa2caf577c9 (diff)
downloadrust-711c6166bc2ed7d3afb769ab24cee7a1ad436a32.tar.gz
rust-711c6166bc2ed7d3afb769ab24cee7a1ad436a32.zip
Update clippy source code to make use of `TyCtxt::def_descr` instead of `ItemKind::descr`
Diffstat (limited to 'src/tools/clippy/tests/ui')
-rw-r--r--src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr b/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr
index b56e8b35493..732e6767c17 100644
--- a/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr
+++ b/src/tools/clippy/tests/ui/unnecessary_safety_comment.stderr
@@ -1,4 +1,4 @@
-error: constant item has unnecessary safety comment
+error: constant has unnecessary safety comment
   --> tests/ui/unnecessary_safety_comment.rs:6:5
    |
 LL |     const CONST: u32 = 0;
@@ -12,7 +12,7 @@ LL |     // SAFETY:
    = note: `-D clippy::unnecessary-safety-comment` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_comment)]`
 
-error: static item has unnecessary safety comment
+error: static has unnecessary safety comment
   --> tests/ui/unnecessary_safety_comment.rs:10:5
    |
 LL |     static STATIC: u32 = 0;