File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -611,9 +611,9 @@ pub trait Debug {
611611#[ rustc_on_unimplemented(
612612 on(
613613 _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"
617617 ) ,
618618 message="`{Self}` doesn't implement `{Display}`" ,
619619 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`
22 --> $DIR/path-display.rs:5:20
33 |
44LL | 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
66 |
77 = 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
99 = note: required because of the requirements on the impl of `std::fmt::Display` for `&std::path::Path`
1010 = note: required by `std::fmt::Display::fmt`
1111
You can’t perform that action at this time.
0 commit comments