-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Slash (/) in diagnostic's path on Windows #40149
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
Comments
Is some code in rustc somewhere hardcoding |
@retep998, |
Seeing this myself. |
Could it be the fault of this line? https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/parser.rs#L5148 let secondary_path_str = format!("{}/mod.rs", mod_name); |
I suppose we need to add some tests to check it. |
@retep998 it's not just that, since I also see it for non-mod.rs cases. |
Looks like the issue @radix is seeing may be caused by https://github.com/rust-lang/rust/blob/master/src/libstd/sys_common/backtrace.rs#L265 |
So now someone just needs to write a PR to fix those two spots! |
@laumann Yes. |
@retep998 Included |
Replace hardcoded forward slash with path::MAIN_SEPARATOR Fixes #40149
src/lib.rs:
mod f;
src/f/mod.rs:
f
It must be src\f \ mod.rs, but it is src\f / mod.rs
src/f/mod.rs:
mod g;
src/f/g/mod.rs:
g
The text was updated successfully, but these errors were encountered: