only show a simple description in E0133 span label

This commit is contained in:
Emil Gardström
2022-04-24 14:42:30 +02:00
parent 8b8f6653cf
commit 2e47271cb8
33 changed files with 126 additions and 87 deletions

View File

@@ -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();
}