-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std::path::Path does not implement Show #13009
Comments
Closing as working as intended. This was done in an attempt to make let p: Path = ...;
println!("{}", p.display()); |
I really think we should consider converting some of these cases (especially in paths) into UTF-8, instead of treating them as binary and therefore unrepresentable as Rust strings. As far as I know, the main case of lossy round-tripping through Unicode is in SHIFT-JIS, and I don't even know if that lossy scenario affects real-world paths that happen to be encoded in SHIFT-JIS (the lossiness is because a MS extension created duplicates of conceptually the same character, which were then unified in Unicode. I don't know if that problem will end up mattering for paths). |
Paths aren't Unicode though. Most *nix filesystems allow any bytes other than |
(e.g. |
@huonw: depends on the file system if it's valid of course :) |
…blyxyas [`missing_const_for_fn`]: fix FP when arg ty is impl trait alias ty closes: rust-lang#13009 --- changelog: [`missing_const_for_fn`]: fix FP when arg ty is impl trait alias ty
A Show implementation could use the string representation.
The text was updated successfully, but these errors were encountered: