about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorEmil Gardström <emil.gardstrom@gmail.com>2022-04-24 14:42:30 +0200
committerEmil Gardström <emil.gardstrom@gmail.com>2022-04-24 18:33:07 +0200
commit2e47271cb8db0d19c5930ca724ecdbb3be3463aa (patch)
treead46812ee4e20ab172d3c125a8f8f1d49bc1692c /compiler/rustc_mir_transform/src
parent8b8f6653cfd54525714f02efe7af0a0f830e185c (diff)
downloadrust-2e47271cb8db0d19c5930ca724ecdbb3be3463aa.tar.gz
rust-2e47271cb8db0d19c5930ca724ecdbb3be3463aa.zip
only show a simple description in E0133 span label
Diffstat (limited to 'compiler/rustc_mir_transform/src')
-rw-r--r--compiler/rustc_mir_transform/src/check_unsafety.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/check_unsafety.rs b/compiler/rustc_mir_transform/src/check_unsafety.rs
index 33b83d90e0f..34093eb29eb 100644
--- a/compiler/rustc_mir_transform/src/check_unsafety.rs
+++ b/compiler/rustc_mir_transform/src/check_unsafety.rs
@@ -598,7 +598,7 @@ pub fn check_unsafety(tcx: TyCtxt<'_>, def_id: LocalDefId) {
                     description,
                     unsafe_fn_msg,
                 )
-                .span_label(source_info.span, description)
+                .span_label(source_info.span, details.simple_description())
                 .note(note)
                 .emit();
             }