We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 596b219 commit dd95fbeCopy full SHA for dd95fbe
core/src/fmt/mod.rs
@@ -728,7 +728,7 @@ pub use macros::Debug;
728
/// ```
729
#[rustc_on_unimplemented(
730
on(
731
- _Self = "std::path::Path",
+ any(_Self = "std::path::Path", _Self = "std::path::PathBuf"),
732
label = "`{Self}` cannot be formatted with the default formatter; call `.display()` on it",
733
note = "call `.display()` or `.to_string_lossy()` to safely print paths, \
734
as they may contain non-Unicode data"
0 commit comments