Closed
Description
it seems like the source directory in the printout for ui tests uses "fake-test-src-base" rn, e.g.
---- [ui] tests/ui/traits/new-solver/prefer-param-env-on-ambiguity.rs stdout ----
error: test compilation failed although it shouldn't!
status: exit status: 1
command: "/home/lcnr/rust6/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/home/lcnr/rust6/tests/ui/traits/new-solver/prefer-param-env-on-ambiguity.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--remap-path-prefix=/home/lcnr/rust6/tests/ui=fake-test-src-base" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/home/lcnr/rust6/build/x86_64-unknown-linux-gnu/test/ui/traits/new-solver/prefer-param-env-on-ambiguity" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/home/lcnr/rust6/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/lcnr/rust6/build/x86_64-unknown-linux-gnu/test/ui/traits/new-solver/prefer-param-env-on-ambiguity/auxiliary" "-Ztrait-solver=next"
stdout: none
--- stderr -------------------------------
error[E0283]: type annotations needed: cannot satisfy `T: Foo<'a>`
--> fake-test-src-base/traits/new-solver/prefer-param-env-on-ambiguity.rs:7:34
|
LL | impl<'a, T: Bar<'a>> Foo<'a> for T {}
| ^
|
= note: cannot satisfy `T: Foo<'a>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0283`.
------------------------------------------
this prevents ctrl+leftclick in vscode to take me directly to the relevant point in the source of the failing test.
it would be nice to somehowo keep the actual path in the output for ui tests and only normalize it when writing into the stderr file?
see https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/ui.20tests.20.22fake-test-src-base.22 for more details
Metadata
Metadata
Assignees
Labels
Area: Makes things more difficult for new or seasoned contributors to RustArea: The testsuite used to check the correctness of rustcCategory: PRs that clean code up or issues documenting cleanup.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the compiler team, which will review and decide on the PR/issue.