File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -611,9 +611,9 @@ pub trait Debug {
611
611
#[ rustc_on_unimplemented(
612
612
on(
613
613
_Self="std::path::Path" ,
614
- label="`{Self}` cannot be formatted with the default formatter, call `.display()` on it" ,
615
- note="you need to call `.display()` or `.to_string_lossy()` for safely printing paths as \
616
- they may contain non-Unicode data"
614
+ label="`{Self}` cannot be formatted with the default formatter; call `.display()` on it" ,
615
+ note="call `.display()` or `.to_string_lossy()` to safely print paths, \
616
+ as they may contain non-Unicode data"
617
617
) ,
618
618
message="`{Self}` doesn't implement `{Display}`" ,
619
619
label="`{Self}` cannot be formatted with the default formatter" ,
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ error[E0277]: `std::path::Path` doesn't implement `std::fmt::Display`
2
2
--> $DIR/path-display.rs:5:20
3
3
|
4
4
LL | println!("{}", path);
5
- | ^^^^ `std::path::Path` cannot be formatted with the default formatter, call `.display()` on it
5
+ | ^^^^ `std::path::Path` cannot be formatted with the default formatter; call `.display()` on it
6
6
|
7
7
= help: the trait `std::fmt::Display` is not implemented for `std::path::Path`
8
- = note: you need to call `.display()` or `.to_string_lossy()` for safely printing paths as they may contain non-Unicode data
8
+ = note: call `.display()` or `.to_string_lossy()` to safely print paths, as they may contain non-Unicode data
9
9
= note: required because of the requirements on the impl of `std::fmt::Display` for `&std::path::Path`
10
10
= note: required by `std::fmt::Display::fmt`
11
11
You can’t perform that action at this time.
0 commit comments