Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
cae926b
Revert "Remove restrictions on small enum statements such as `Order`,…
dianqk Sep 14, 2025
23ec2cf
Revert "Add a workaround for the `TailDuplicator` compile time overhead"
dianqk Sep 14, 2025
72825b9
Mark code only used in nightly as nightly only
Hoverbear Mar 27, 2026
6ea175c
Remove unused code
jyn514 Mar 30, 2026
b7bd207
Avoid projection-only constraint suggestions for inherent associated …
cijiugechu Apr 13, 2026
e885842
Add issue 155204 regression test
cijiugechu Apr 13, 2026
28b0ef6
Add FIXME
cijiugechu Apr 14, 2026
eb6eed4
Make `//@ skip-filecheck` a normal compiletest directive
Zalathar Apr 21, 2026
1e8cd1f
Support `//@ skip-filecheck` in codegen and assembly tests
Zalathar Apr 21, 2026
8172f47
Remove non-working code for "running" mir-opt tests
Zalathar Apr 22, 2026
1a3c6b4
Don't pass `local_pm` to `compile_test_general`
Zalathar Apr 22, 2026
84cd23b
c-variadic: rename `VaList::arg` to `VaList::next_arg`
folkertdev Apr 21, 2026
f6b8f0b
rustc_llvm: update opt-level handling for LLVM 23
durin42 Apr 22, 2026
328d053
c-variadic: add mips assembly test
folkertdev Apr 22, 2026
e9ab558
va_arg: use `emit_ptr_va_arg` for mips
folkertdev Feb 13, 2026
603ee6f
Rollup merge of #146544 - dianqk:rm-workaround, r=wesleywiser
JonathanBrouwer Apr 23, 2026
506e31b
Rollup merge of #154819 - cijiugechu:fix-next-solver-inherent-iat-ice…
JonathanBrouwer Apr 23, 2026
1680a9e
Rollup merge of #152576 - folkertdev:mips-va-arg, r=tgross35
JonathanBrouwer Apr 23, 2026
aca2f60
Rollup merge of #154481 - ferrocene:hoverbear/flag-off-unused-code, r…
JonathanBrouwer Apr 23, 2026
ba0ca82
Rollup merge of #155614 - folkertdev:rename-next-arg, r=tgross35
JonathanBrouwer Apr 23, 2026
eaf2c3c
Rollup merge of #155630 - Zalathar:skip-filecheck, r=jieyouxu
JonathanBrouwer Apr 23, 2026
e33cc78
Rollup merge of #155641 - Zalathar:no-run-mir-opt, r=jieyouxu
JonathanBrouwer Apr 23, 2026
5cfe5b3
Rollup merge of #155656 - durin42:llvm-23-back-in-kansas, r=nikic
JonathanBrouwer Apr 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't pass local_pm to compile_test_general
This argument is only used to inhibit `#![allow(unused)]` for `//@ run-pass` UI
tests.

No callers actually need to override this value, even when doing unusual
things, so we can just look it up inside the method body instead.
  • Loading branch information
Zalathar committed Apr 22, 2026
commit 1a3c6b481c8ca063fe4bf95c931ccf7a76152de3
5 changes: 2 additions & 3 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -930,14 +930,13 @@ impl<'test> TestCx<'test> {
}

fn compile_test(&self, will_execute: WillExecute, emit: Emit) -> ProcRes {
self.compile_test_general(will_execute, emit, self.props.local_pass_mode(), Vec::new())
self.compile_test_general(will_execute, emit, Vec::new())
}

fn compile_test_general(
&self,
will_execute: WillExecute,
emit: Emit,
local_pm: Option<PassMode>,
passes: Vec<String>,
) -> ProcRes {
let compiler_kind = self.compiler_kind_for_non_aux();
Expand All @@ -961,7 +960,7 @@ impl<'test> TestCx<'test> {
// Note that we use the local pass mode here as we don't want
// to set unused to allow if we've overridden the pass mode
// via command line flags.
&& local_pm != Some(PassMode::Run)
&& self.props.local_pass_mode() != Some(PassMode::Run)
{
AllowUnused::Yes
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest/mir_opt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl TestCx<'_> {

let passes = std::mem::take(&mut test_info.passes);

let proc_res = self.compile_test_general(WillExecute::No, Emit::Mir, None, passes);
let proc_res = self.compile_test_general(WillExecute::No, Emit::Mir, passes);
if !proc_res.status.success() {
self.fatal_proc_rec("compilation failed!", &proc_res);
}
Expand Down
10 changes: 6 additions & 4 deletions src/tools/compiletest/src/runtest/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ impl TestCx<'_> {
pub(super) fn run_ui_test(&self) {
if let Some(FailMode::Build) = self.props.fail_mode {
// Make sure a build-fail test cannot fail due to failing analysis (e.g. typeck).
let pm = Some(PassMode::Check);
let proc_res =
self.compile_test_general(WillExecute::No, Emit::Metadata, pm, Vec::new());
self.check_if_test_should_compile(self.props.fail_mode, pm, &proc_res);
let proc_res = self.compile_test(WillExecute::No, Emit::Metadata);
self.check_if_test_should_compile(
self.props.fail_mode,
Some(PassMode::Check),
&proc_res,
);
}

let pm = self.pass_mode();
Expand Down
Loading