-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Minor improvements to bootstrap #52729
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ rollup Thanks! |
📌 Commit db303c1 has been approved by |
…hton Minor improvements to bootstrap - prefer `Path`-specific methods to `String` ones - don't add file extensions if they are removed right afterwards
@bors r-
|
I investigated this and it appears that adding extensions with the
But this... less so:
In the second case I would either expect |
@ljedrz use std::path::{Path, PathBuf};
let path = Path::new("foo.rs");
assert_eq!(path.with_extension("txt"), PathBuf::from("foo.txt")); Therefore |
In that case it seems too risky to use it in case the path might contain any dots; the added value isn't too high, as it's just the bootstrap; I'll close the PR, then. |
Path
-specific methods toString
ones