@@ -23,7 +23,7 @@ pub(super) fn check_item(tcx: TyCtxt<'_>, def_id: LocalDefId) {
2323 tcx. def_span( def_id) ,
2424 E0199 ,
2525 "implementing the trait `{}` is not unsafe" ,
26- trait_ref. print_only_trait_path ( )
26+ trait_ref. print_trait_sugared ( )
2727 )
2828 . span_suggestion_verbose (
2929 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) {
4040 tcx. def_span( def_id) ,
4141 E0200 ,
4242 "the trait `{}` requires an `unsafe impl` declaration" ,
43- trait_ref. print_only_trait_path ( )
43+ trait_ref. print_trait_sugared ( )
4444 )
4545 . note ( format ! (
4646 "the trait `{}` enforces invariants that the compiler can't check. \
4747 Review the trait documentation and make sure this implementation \
4848 upholds those invariants before adding the `unsafe` keyword",
49- trait_ref. print_only_trait_path ( )
49+ trait_ref. print_trait_sugared ( )
5050 ) )
5151 . span_suggestion_verbose (
5252 item. span . shrink_to_lo ( ) ,
@@ -69,7 +69,7 @@ pub(super) fn check_item(tcx: TyCtxt<'_>, def_id: LocalDefId) {
6969 "the trait `{}` enforces invariants that the compiler can't check. \
7070 Review the trait documentation and make sure this implementation \
7171 upholds those invariants before adding the `unsafe` keyword",
72- trait_ref. print_only_trait_path ( )
72+ trait_ref. print_trait_sugared ( )
7373 ) )
7474 . span_suggestion_verbose (
7575 item. span . shrink_to_lo ( ) ,
0 commit comments