only show a simple description in E0133 span label
This commit is contained in:
parent
8b8f6653cf
commit
2e47271cb8
33 changed files with 126 additions and 87 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue