Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d4b8fa9
remove `feature(inline_const_pat)`
lcnr Mar 14, 2025
7593562
fix pretty test
lcnr Mar 14, 2025
8b2daac
coretests stop relying on `inline_const_pat`
lcnr Mar 20, 2025
a3b7990
update rustfmt test
lcnr Mar 21, 2025
8524a7c
Fix UWP reparse point check
ChrisDenton Mar 25, 2025
af7359e
Add release notes for 1.86.0
cuviper Mar 26, 2025
beb8e9e
Make slice iterator constructors unstably const
Daniel-Aaron-Bloom Feb 24, 2025
8a3ee97
Apply suggestions from code review
cuviper Mar 30, 2025
dea9472
Add tests for LLVM 20 slice bounds check optimization
reez12g Mar 30, 2025
4564280
replace commit placeholder in vendor status with actual commit
Shourya742 Mar 28, 2025
b14a0ce
PassWrapper: adapt for llvm/llvm-project@94122d58fc77079a291a3d008914…
durin42 Mar 31, 2025
ad03581
replace extra_filename with strict version hash in metrics file names
yaahc Mar 25, 2025
7feac15
rustdoc-json: Add test for #[automatically_derived] attribute
aDotInTheVoid Apr 16, 2023
e2d5033
Feed HIR for by-move coroutine body def, since the inliner tries to r…
compiler-errors Mar 31, 2025
654b7b5
increment depth of nested obligations
lcnr Mar 27, 2025
e80a3e2
coverage: Tweak tests/coverage/assert-ne.rs
Zalathar Mar 29, 2025
577272e
coverage: Shrink call spans to just the function name
Zalathar Mar 29, 2025
62a533c
coverage: Instead of splitting, just discard any span that overlaps a…
Zalathar Mar 25, 2025
26cea8a
coverage: Don't split bang-macro spans, just truncate them
Zalathar Mar 25, 2025
919e612
Rollup merge of #110406 - aDotInTheVoid:rdj-derived-impl-attr, r=Guil…
Zalathar Apr 1, 2025
d609565
Rollup merge of #137738 - Daniel-Aaron-Bloom:const_slice_make_iter, r…
Zalathar Apr 1, 2025
4124924
Rollup merge of #138492 - lcnr:rm-inline_const_pat, r=oli-obk
Zalathar Apr 1, 2025
5d8a939
Rollup merge of #138928 - ChrisDenton:fix-uwp, r=tgross35
Zalathar Apr 1, 2025
a498ad4
Rollup merge of #138950 - yaahc:svh-metrics-name, r=bjorn3
Zalathar Apr 1, 2025
761fcdd
Rollup merge of #139002 - cuviper:relnotes-1.86.0, r=BoxyUwU
Zalathar Apr 1, 2025
d4991a0
Rollup merge of #139022 - lcnr:incr-obligation-depth, r=oli-obk
Zalathar Apr 1, 2025
2b187ff
Rollup merge of #139060 - Shourya742:2025-03-28-replace-commit-with-a…
Zalathar Apr 1, 2025
7468eea
Rollup merge of #139102 - Zalathar:no-split, r=oli-obk
Zalathar Apr 1, 2025
b22a776
Rollup merge of #139129 - reez12g:add-tests-for-slice-bounds-check-op…
Zalathar Apr 1, 2025
40a9ccc
Rollup merge of #139188 - durin42:llvm-21-LintPass, r=dianqk
Zalathar Apr 1, 2025
780fd74
Rollup merge of #139193 - compiler-errors:inline-synthetic, r=eholk
Zalathar Apr 1, 2025
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
PassWrapper: adapt for llvm/llvm-project@94122d5
We also have to remove the LLVM argument in cast-target-abi.rs for LLVM
21. I'm not really sure what the best approach here is since that test
already uses revisions. We could also fork the test into a copy for LLVM
19-20 and another for LLVM 21, but what I did for now was drop the
lint-abort-on-error flag to LLVM figuring that some coverage was better
than none, but I'm happy to change this if that was a bad direction.

The above also applies for ffi-out-of-bounds-loads.rs.

r? dianqk
@rustbot label llvm-main
  • Loading branch information
durin42 committed Mar 31, 2025
commit b14a0ce7f6b9b72d3495fc9b0d632fd14400dcec
13 changes: 9 additions & 4 deletions compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,10 +855,15 @@ extern "C" LLVMRustResult LLVMRustOptimize(
}

if (LintIR) {
PipelineStartEPCallbacks.push_back(
[](ModulePassManager &MPM, OptimizationLevel Level) {
MPM.addPass(createModuleToFunctionPassAdaptor(LintPass()));
});
PipelineStartEPCallbacks.push_back([](ModulePassManager &MPM,
OptimizationLevel Level) {
#if LLVM_VERSION_GE(21, 0)
MPM.addPass(
createModuleToFunctionPassAdaptor(LintPass(/*AbortOnError=*/true)));
#else
MPM.addPass(createModuleToFunctionPassAdaptor(LintPass()));
#endif
});
}

if (InstrumentCoverage) {
Expand Down
2 changes: 1 addition & 1 deletion tests/codegen/cast-target-abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//@ add-core-stubs
//@ revisions:aarch64 loongarch64 powerpc64 sparc64 x86_64
//@ min-llvm-version: 19
//@ compile-flags: -Copt-level=3 -Cno-prepopulate-passes -Zlint-llvm-ir -Cllvm-args=-lint-abort-on-error
//@ compile-flags: -Copt-level=3 -Cno-prepopulate-passes -Zlint-llvm-ir

//@[aarch64] compile-flags: --target aarch64-unknown-linux-gnu
//@[aarch64] needs-llvm-components: arm
Expand Down
2 changes: 1 addition & 1 deletion tests/codegen/cffi/ffi-out-of-bounds-loads.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@ add-core-stubs
//@ revisions: linux apple
//@ min-llvm-version: 19
//@ compile-flags: -Copt-level=0 -Cno-prepopulate-passes -Zlint-llvm-ir -Cllvm-args=-lint-abort-on-error
//@ compile-flags: -Copt-level=0 -Cno-prepopulate-passes -Zlint-llvm-ir

//@[linux] compile-flags: --target x86_64-unknown-linux-gnu
//@[linux] needs-llvm-components: x86
Expand Down
Loading