Rollup merge of #128038 - compiler-errors:inc-fat, r=oli-obk

Don't output incremental test artifacts into working directory

Currently tests can ICE when the test spits out `inc-fat` incremental artifacts directly into the top of the git checkout, and then the compiler version changes, and it reads nonsense incremental artifacts on a subsequent test run.

r? `@oli-obk`

cc `@Oneirical,` I think you added this -- I think the right flag to add when porting `-Cincremental` run-make tests is to use `//@ incremental` rather than manually specifying the `-Cincremental` rustflag.
This commit is contained in:
Jubilee 2024-07-21 17:44:30 -07:00 committed by GitHub
commit fdef1d9592
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View file

@ -50,7 +50,6 @@ build/
/target
/src/bootstrap/target
/src/tools/x/target
/inc-fat/
# Created by default with `src/ci/docker/run.sh`
/obj/
/rustc-ice*

View file

@ -9,7 +9,8 @@
// that compilation is successful.
//@ check-pass
//@ compile-flags: --test -C debuginfo=2 -C lto=fat -C incremental=inc-fat
//@ compile-flags: --test -C debuginfo=2 -C lto=fat
//@ incremental
extern crate alloc;