Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #126974

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
f2ade37
Add `input_file` method on `LlvmFileCheck`
GuillaumeGomez Jun 25, 2024
221dd30
Migrate `run-make/llvm-ident` to `rmake.rs`
GuillaumeGomez Jun 25, 2024
9156251
Make `Span` optional in `BufferedEarlyLint`
Urgau Jun 22, 2024
4fc8318
Disallow setting built-in cfgs via set the command-line
Urgau Jun 8, 2024
b6074ff
resolve: Tweak some naming around import ambiguities
petrochenkov Jun 25, 2024
6402909
delay bug in RPITIT refinement checking with resolution errors
lqd Jun 25, 2024
133e7b1
fix Drop items getting leaked in Filter::next_chunk
the8472 Jun 23, 2024
2be2d77
add comments explaining optimizations for Filter::next_chunk
the8472 Jun 24, 2024
0d7aef9
regression test for leaks in the the Filter::next_chunk implementation
the8472 Jun 25, 2024
275d922
Rename tcx to cx
compiler-errors Jun 21, 2024
cf0251d
Fix a span in `parse_ty_bare_fn`.
nnethercote Jun 17, 2024
0addda6
Fix bad replacement for unsafe extern block suggestion
chenyukang Jun 26, 2024
af11efc
Rollup merge of #126158 - Urgau:disallow-cfgs, r=petrochenkov
matthiaskrgr Jun 26, 2024
6207e6d
Rollup merge of #126724 - nnethercote:fix-parse_ty_bare_fn-span, r=co…
matthiaskrgr Jun 26, 2024
62d689c
Rollup merge of #126812 - compiler-errors:tcx-cx, r=lcnr
matthiaskrgr Jun 26, 2024
4abb0e7
Rollup merge of #126879 - the8472:next-chunk-filter-drop, r=cuviper
matthiaskrgr Jun 26, 2024
6f9b0af
Rollup merge of #126941 - GuillaumeGomez:migrate-run-make-llvm-ident,…
matthiaskrgr Jun 26, 2024
f926c0a
Rollup merge of #126954 - petrochenkov:globamb, r=compiler-errors
matthiaskrgr Jun 26, 2024
54d49eb
Rollup merge of #126968 - lqd:issue-126670, r=compiler-errors
matthiaskrgr Jun 26, 2024
6b33843
Rollup merge of #126973 - chenyukang:yukang-fix-126756-unsafe-suggest…
matthiaskrgr Jun 26, 2024
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
Migrate run-make/llvm-ident to rmake.rs
GuillaumeGomez committed Jun 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 221dd303566f16d4982d1c128e94089e342c194b
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
@@ -92,7 +92,6 @@ run-make/link-cfg/Makefile
run-make/link-framework/Makefile
run-make/link-path-order/Makefile
run-make/linkage-attr-on-static/Makefile
run-make/llvm-ident/Makefile
run-make/long-linker-command-lines-cmd-exe/Makefile
run-make/long-linker-command-lines/Makefile
run-make/longjmp-across-rust/Makefile
19 changes: 0 additions & 19 deletions tests/run-make/llvm-ident/Makefile

This file was deleted.

40 changes: 40 additions & 0 deletions tests/run-make/llvm-ident/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//@ only-linux

use run_make_support::llvm::llvm_bin_dir;
use run_make_support::{cmd, env_var, llvm_filecheck, read_dir, rustc, source_root};

use std::ffi::OsStr;

fn main() {
// `-Ccodegen-units=16 -Copt-level=2` is used here to trigger thin LTO
// across codegen units to test deduplication of the named metadata
// (see `LLVMRustPrepareThinLTOImport` for details).
rustc()
.emit("link,obj")
.arg("-Csave-temps")
.codegen_units(16)
.opt_level("2")
.target(&env_var("TARGET"))
.arg("-")
.stdin("fn main(){}")
.run();

// `llvm-dis` is used here since `--emit=llvm-ir` does not emit LLVM IR
// for temporary outputs.
let mut files = Vec::new();
read_dir(".", |path| {
if path.is_file() && path.extension().is_some_and(|ext| ext == OsStr::new("bc")) {
files.push(path.to_path_buf());
}
});
cmd(llvm_bin_dir().join("llvm-dis")).args(&files).run();

// Check LLVM IR files (including temporary outputs) have `!llvm.ident`
// named metadata, reusing the related codegen test.
let llvm_ident_path = source_root().join("tests/codegen/llvm-ident.rs");
read_dir(".", |path| {
if path.is_file() && path.extension().is_some_and(|ext| ext == OsStr::new("ll")) {
llvm_filecheck().input_file(path).arg(&llvm_ident_path).run();
}
});
}