[PATCH] Fix UI tests with dist-vendored dependencies
authorJosh Stone <jistone@redhat.com>
Mon, 8 Apr 2024 22:04:44 +0000 (15:04 -0700)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 19 Jun 2024 05:51:49 +0000 (07:51 +0200)
commitf34745f435e782577d9e4c5e021331354991a966
tree703a6e5e73d161ab23adf71be9b48ff48de09533
parent9f915dff6ff3f5f6bc11efa480171eb3d8ff20ce
[PATCH] Fix UI tests with dist-vendored dependencies

There is already a workaround in `compiletest` to deal with custom
`CARGO_HOME` using `-Zignore-directory-in-diagnostics-source-blocks={}`.
A similar need exists when dependencies come from the local `vendor`
directory, which distro builds often use, so now we ignore that too.

Also, `issue-21763.rs` was normalizing `hashbrown-` paths, presumably
expecting a version suffix, but the vendored path doesn't include the
version. Now that matches `[\\/]hashbrown` instead.

Forwarded: yes

Gbp-Pq: Topic upstream
Gbp-Pq: Name u-avoid-blessing-cargo-deps-s-source-code-in-ui-tests.patch
src/tools/compiletest/src/runtest.rs
tests/ui/issues/issue-21763.rs