Closed
Description
At some point in the recent past, something in one or more of our tools has broken so that the paths printed during compilation errors/warnings are not presented relative to the current directory.
E.g., when I am building with current directory ~/Dev/Mozilla/rust-mirborrowck/objdir-dbgopt/
, via the command ../x.py build --incremental --keep-stage 0 --stage 1 src/libstd
, I now get output with errors like this:
Copying stage0 test from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Compiling rustc_mir v0.0.0 (file:///home/pnkfelix/Dev/Mozilla/rust-mirborrowck/src/librustc_mir)
error: expected one of `=>`, `if`, or `|`, found `{`
--> librustc_mir/borrow_check/mod.rs:949:36
|
949 | Rvalue::Len(ref place) {
| ^ expected one of `=>`, `if`, or `|` here
error: aborting due to previous error
error: Could not compile `rustc_mir`.
but the provided path, librustc_mir/borrow_check/mod.rs
is meaningless in the context of my current directory; I need it to either be an absolute path, or a relative path like ../src/librustc_mir/borrow_check/mod.rs