]> git.lizzy.rs Git - rust.git/commit
Override rustc version in ui and mir-opt tests to get stable hashes
authorThe 8472 <git@infinite-source.de>
Tue, 28 Dec 2021 18:05:03 +0000 (19:05 +0100)
committerThe 8472 <git@infinite-source.de>
Thu, 20 Jan 2022 23:28:07 +0000 (00:28 +0100)
commit8985e5ee825a2fb1e5eb2050f0b3fd8e2913d322
tree11e0fd38503696d5f20d8bfaa089a49f7d228dee
parent74fbbefea8d13683cca5eee62e4740706cb3144a
Override rustc version in ui and mir-opt tests to get stable hashes

Building a dozen separate regexps for each test in compiletest consumes significant amounts of CPU cycles.
Using `RUSTC_FORCE_INCR_COMP_ARTIFACT_HEADER` stabilizes hashes calcuated for the individual tests so
no test-dependent normalization is needed. Hashes for the standard library still change so some
normalizations are still needed.
37 files changed:
src/bootstrap/test.rs
src/test/mir-opt/const_promotion_extern_static.BAR.PromoteTemps.diff
src/test/mir-opt/const_promotion_extern_static.FOO.PromoteTemps.diff
src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff
src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff
src/test/mir-opt/const_prop/const_prop_fails_gracefully.main.ConstProp.diff
src/test/mir-opt/const_prop/ref_deref.main.ConstProp.diff
src/test/mir-opt/const_prop/ref_deref.main.PromoteTemps.diff
src/test/mir-opt/const_prop/ref_deref_project.main.ConstProp.diff
src/test/mir-opt/const_prop/ref_deref_project.main.PromoteTemps.diff
src/test/mir-opt/const_prop/slice_len.main.ConstProp.32bit.diff
src/test/mir-opt/const_prop/slice_len.main.ConstProp.64bit.diff
src/test/mir-opt/inline/inline_retag.bar.Inline.after.mir
src/test/mir-opt/issue_73223.main.PreCodegen.32bit.diff
src/test/mir-opt/issue_73223.main.PreCodegen.64bit.diff
src/test/mir-opt/issue_73223.main.SimplifyArmIdentity.32bit.diff
src/test/mir-opt/issue_73223.main.SimplifyArmIdentity.64bit.diff
src/test/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.diff
src/test/mir-opt/match_false_edges.full_tested_match.PromoteTemps.after.mir
src/test/mir-opt/retag.array_casts.SimplifyCfg-elaborate-drops.after.mir
src/test/mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir
src/test/ui/consts/miri_unleashed/tls.stderr
src/test/ui/generator/print/generator-print-verbose-1.stderr
src/test/ui/nll/ty-outlives/impl-trait-captures.stderr
src/test/ui/specialization/min_specialization/repeated_projection_type.stderr
src/test/ui/symbol-names/basic.legacy.stderr
src/test/ui/symbol-names/basic.v0.stderr
src/test/ui/symbol-names/foreign-types.stderr
src/test/ui/symbol-names/impl1.legacy.stderr
src/test/ui/symbol-names/impl1.v0.stderr
src/test/ui/symbol-names/issue-60925.legacy.stderr
src/test/ui/symbol-names/issue-60925.v0.stderr
src/test/ui/symbol-names/issue-75326.legacy.stderr
src/test/ui/symbol-names/issue-75326.v0.stderr
src/test/ui/symbol-names/trait-objects.v0.stderr
src/test/ui/thir-tree.stdout
src/tools/compiletest/src/runtest.rs