@@ -23,7 +23,7 @@ pub(super) fn check_item(tcx: TyCtxt<'_>, def_id: LocalDefId) {
23
23
tcx. def_span( def_id) ,
24
24
E0199 ,
25
25
"implementing the trait `{}` is not unsafe" ,
26
- trait_ref. print_only_trait_path ( )
26
+ trait_ref. print_trait_sugared ( )
27
27
)
28
28
. span_suggestion_verbose (
29
29
item. span . with_hi ( item. span . lo ( ) + rustc_span:: BytePos ( 7 ) ) ,
@@ -40,13 +40,13 @@ pub(super) fn check_item(tcx: TyCtxt<'_>, def_id: LocalDefId) {
40
40
tcx. def_span( def_id) ,
41
41
E0200 ,
42
42
"the trait `{}` requires an `unsafe impl` declaration" ,
43
- trait_ref. print_only_trait_path ( )
43
+ trait_ref. print_trait_sugared ( )
44
44
)
45
45
. note ( format ! (
46
46
"the trait `{}` enforces invariants that the compiler can't check. \
47
47
Review the trait documentation and make sure this implementation \
48
48
upholds those invariants before adding the `unsafe` keyword",
49
- trait_ref. print_only_trait_path ( )
49
+ trait_ref. print_trait_sugared ( )
50
50
) )
51
51
. span_suggestion_verbose (
52
52
item. span . shrink_to_lo ( ) ,
@@ -69,7 +69,7 @@ pub(super) fn check_item(tcx: TyCtxt<'_>, def_id: LocalDefId) {
69
69
"the trait `{}` enforces invariants that the compiler can't check. \
70
70
Review the trait documentation and make sure this implementation \
71
71
upholds those invariants before adding the `unsafe` keyword",
72
- trait_ref. print_only_trait_path ( )
72
+ trait_ref. print_trait_sugared ( )
73
73
) )
74
74
. span_suggestion_verbose (
75
75
item. span . shrink_to_lo ( ) ,
0 commit comments