Skip to content

Commit

Permalink
Wording changes
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Dec 13, 2018
1 parent c7f1b97 commit 33a34b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/libcore/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,9 @@ pub trait Debug {
#[rustc_on_unimplemented(
on(
_Self="std::path::Path",
label="`{Self}` cannot be formatted with the default formatter, call `.display()` on it",
note="you need to call `.display()` or `.to_string_lossy()` for safely printing paths as \
they may contain non-Unicode data"
label="`{Self}` cannot be formatted with the default formatter; call `.display()` on it",
note="call `.display()` or `.to_string_lossy()` to safely print paths, \
as they may contain non-Unicode data"
),
message="`{Self}` doesn't implement `{Display}`",
label="`{Self}` cannot be formatted with the default formatter",
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/suggestions/path-display.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ error[E0277]: `std::path::Path` doesn't implement `std::fmt::Display`
--> $DIR/path-display.rs:5:20
|
LL | println!("{}", path);
| ^^^^ `std::path::Path` cannot be formatted with the default formatter, call `.display()` on it
| ^^^^ `std::path::Path` cannot be formatted with the default formatter; call `.display()` on it
|
= help: the trait `std::fmt::Display` is not implemented for `std::path::Path`
= note: you need to call `.display()` or `.to_string_lossy()` for safely printing paths as they may contain non-Unicode data
= note: call `.display()` or `.to_string_lossy()` to safely print paths, as they may contain non-Unicode data
= note: required because of the requirements on the impl of `std::fmt::Display` for `&std::path::Path`
= note: required by `std::fmt::Display::fmt`

Expand Down

0 comments on commit 33a34b0

Please sign in to comment.