Skip to content

Commit

Permalink
Rollup merge of rust-lang#128038 - compiler-errors:inc-fat, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
workingjubilee authored Jul 22, 2024
2 parents d484654 + 6a9110a commit fdef1d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
3 changes: 2 additions & 1 deletion tests/ui/lto/debuginfo-lto-alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fdef1d9

Please sign in to comment.