From 49987faf873790c39f981275708fa4dca8836ef3 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Thu, 19 Oct 2023 13:20:25 +0000 Subject: [PATCH] Fix rustc test suite --- scripts/test_rustc_tests.sh | 1 - src/driver/aot.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/test_rustc_tests.sh b/scripts/test_rustc_tests.sh index 4b6d5bd97b8..68d4a29bab4 100755 --- a/scripts/test_rustc_tests.sh +++ b/scripts/test_rustc_tests.sh @@ -122,7 +122,6 @@ rm tests/ui/typeck/issue-46112.rs # same rm tests/ui/consts/const_cmp_type_id.rs # same rm tests/ui/consts/issue-73976-monomorphic.rs # same rm tests/ui/rfcs/rfc-3348-c-string-literals/non-ascii.rs # same -rm tests/ui/consts/const-eval/nonnull_as_ref_ub.rs # same rm tests/ui/consts/issue-94675.rs # same rm tests/ui/associated-types/issue-85103-layout-debug.rs # same diff --git a/src/driver/aot.rs b/src/driver/aot.rs index 6aabc40e4a6..d3a7decc543 100644 --- a/src/driver/aot.rs +++ b/src/driver/aot.rs @@ -415,8 +415,7 @@ pub(crate) fn run_aot( ) .0 } - CguReuse::PreLto => unreachable!("LTO not yet supported"), - CguReuse::PostLto => { + CguReuse::PreLto | CguReuse::PostLto => { concurrency_limiter.job_already_done(); OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, cgu)) }