Skip to content

Rollup of 10 pull requests #129141

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

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b18c7d8
Docs for Waker and LocalWaker: Add cross-refs in comment
ijackson Jul 22, 2024
c404406
LocalWaker docs: Make long-ago omitted but probably intended changes
ijackson Jul 22, 2024
0a77709
Avoid matching on `PatKind::Wild` in `write_struct_like`
Zalathar Aug 3, 2024
f53eb27
Add `print::PatKind::Print`
Zalathar Aug 3, 2024
92eb159
Remove `PatKind::Wild`
Zalathar Aug 3, 2024
ed3e38f
Remove `PatKind::StructLike`
Zalathar Aug 3, 2024
15cc0e1
Remove `PatKind::Box`
Zalathar Aug 3, 2024
283243a
Remove `PatKind::Ref`
Zalathar Aug 3, 2024
9952e4d
Remove `PatKind::Constant`
Zalathar Aug 3, 2024
2b6f438
Remove `PatKind::Range`
Zalathar Aug 3, 2024
ec1483b
Remove `PatKind::Slice`
Zalathar Aug 3, 2024
bfe88a3
Remove `PatKind::Never`
Zalathar Aug 3, 2024
fc55129
Remove `print::Pat` entirely, replacing it with `String`
Zalathar Aug 3, 2024
2e7e619
bootstrap: fix trying to modify file times on read-only file on Windows
jieyouxu Aug 11, 2024
c4aa7a7
Port `run-make/libtest-json` to rmake
Zalathar Aug 13, 2024
fc733a6
Port `run-make/libtest-junit` to rmake
Zalathar Aug 13, 2024
bb84372
rust-analyzer: use in-tree pattern_analysis crate
Nadrieril Aug 10, 2024
99aad72
Add a comment explaining the return type of `Ty::kind`.
nnethercote Aug 14, 2024
8b990e3
Port the `sysroot-crates-are-unstable` Python script to rmake
Zalathar Aug 14, 2024
2e4d5bb
rewrite rlib-format-packed-bundled-libs to rmake
Oneirical Aug 12, 2024
51628fb
rewrite native-link-modifier-bundle to rmake
Oneirical Aug 12, 2024
9a95573
Add cautionary paragraph about noop wakers.
ijackson Aug 5, 2024
7d99549
crashes: more tests
matthiaskrgr Aug 15, 2024
1e2ae36
Rollup merge of #128064 - ijackson:noop-waker-doc, r=workingjubilee
workingjubilee Aug 16, 2024
bb839d2
Rollup merge of #128922 - Nadrieril:r-a-use-upstream-pat-ana, r=Veykril
workingjubilee Aug 16, 2024
8071bed
Rollup merge of #128965 - Zalathar:no-pat, r=Nadrieril
workingjubilee Aug 16, 2024
72f657a
Rollup merge of #128977 - jieyouxu:writable-file, r=Kobzol
workingjubilee Aug 16, 2024
4f33fd2
Rollup merge of #129018 - Oneirical:nmemonic-artifice, r=jieyouxu
workingjubilee Aug 16, 2024
8fd4899
Rollup merge of #129037 - Zalathar:rmake-libtest, r=jieyouxu
workingjubilee Aug 16, 2024
bdd592a
Rollup merge of #129110 - nnethercote:Ty-kind-ret-ty-comment, r=jieyouxu
workingjubilee Aug 16, 2024
ec97c5a
Rollup merge of #129111 - Zalathar:python-sysroot, r=jieyouxu
workingjubilee Aug 16, 2024
9371859
Rollup merge of #129135 - matthiaskrgr:ITKEEPSCRASHINGAAAAAAAAHH, r=c…
workingjubilee Aug 16, 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
rewrite rlib-format-packed-bundled-libs to rmake
  • Loading branch information
Oneirical committed Aug 15, 2024
commit 2e4d5bbba7b4efe27b8afca47fef98a2254e684b
6 changes: 6 additions & 0 deletions src/tools/run-make-support/src/external_deps/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ impl LlvmAr {
self
}

/// Print the table of contents.
pub fn table_of_contents(&mut self) -> &mut Self {
self.cmd.arg("t");
self
}

/// Provide an output, then an input file. Bundled in one function, as llvm-ar has
/// no "--output"-style flag.
pub fn output_input(&mut self, out: impl AsRef<Path>, input: impl AsRef<Path>) -> &mut Self {
Expand Down
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
Expand Up @@ -15,7 +15,6 @@ run-make/libtest-thread-limit/Makefile
run-make/macos-deployment-target/Makefile
run-make/native-link-modifier-bundle/Makefile
run-make/reproducible-build/Makefile
run-make/rlib-format-packed-bundled-libs/Makefile
run-make/split-debuginfo/Makefile
run-make/symbol-mangling-hashed/Makefile
run-make/translation/Makefile
Expand Down
39 changes: 0 additions & 39 deletions tests/run-make/rlib-format-packed-bundled-libs/Makefile

This file was deleted.

81 changes: 81 additions & 0 deletions tests/run-make/rlib-format-packed-bundled-libs/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// `-Z packed_bundled_libs` is an unstable rustc flag that makes the compiler
// only require a native library and no supplementary object files to compile.
// Output files compiled with this flag should still contain all expected symbols -
// that is what this test checks.
// See https://github.com/rust-lang/rust/pull/100101

// FIXME(Oneirical): MSVC and cross-compile

use run_make_support::{
bin_name, build_native_static_lib, cwd, filename_contains, llvm_ar, llvm_nm, rfs,
rust_lib_name, rustc, shallow_find_files,
};

fn main() {
build_native_static_lib("native_dep_1");
build_native_static_lib("native_dep_2");
build_native_static_lib("native_dep_3");
rustc().input("rust_dep_up.rs").crate_type("rlib").arg("-Zpacked_bundled_libs").run();
llvm_nm()
.input(rust_lib_name("rust_dep_up"))
.run()
.assert_stdout_contains_regex("U.*native_f2");
llvm_nm()
.input(rust_lib_name("rust_dep_up"))
.run()
.assert_stdout_contains_regex("U.*native_f3");
llvm_nm()
.input(rust_lib_name("rust_dep_up"))
.run()
.assert_stdout_contains_regex("T.*rust_dep_up");
llvm_ar()
.table_of_contents()
.arg(rust_lib_name("rust_dep_up"))
.run()
.assert_stdout_contains("native_dep_2");
llvm_ar()
.table_of_contents()
.arg(rust_lib_name("rust_dep_up"))
.run()
.assert_stdout_contains("native_dep_3");
rustc()
.input("rust_dep_local.rs")
.extern_("rlib", rust_lib_name("rust_dep_up"))
.arg("-Zpacked_bundled_libs")
.crate_type("rlib")
.run();
llvm_nm()
.input(rust_lib_name("rust_dep_local"))
.run()
.assert_stdout_contains_regex("U.*native_f1");
llvm_nm()
.input(rust_lib_name("rust_dep_local"))
.run()
.assert_stdout_contains_regex("T.*rust_dep_local");
llvm_ar()
.table_of_contents()
.arg(rust_lib_name("rust_dep_local"))
.run()
.assert_stdout_contains("native_dep_1");

// Ensure the compiler will not use files it should not know about.
for file in shallow_find_files(cwd(), |path| filename_contains(path, "native_dep_")) {
rfs::remove_file(file);
}

rustc()
.input("main.rs")
.extern_("lib", rust_lib_name("rust_dep_local"))
.output(bin_name("main"))
.arg("-Zpacked_bundled_libs")
.print("link-args")
.run()
.assert_stdout_contains_regex("native_dep_1.*native_dep_2.*native_dep_3");

//FIXME(Oneirical): This part will apparently fail on MSVC
llvm_nm().input(bin_name("main")).run().assert_stdout_contains_regex("T.*native_f1");
llvm_nm().input(bin_name("main")).run().assert_stdout_contains_regex("T.*native_f2");
llvm_nm().input(bin_name("main")).run().assert_stdout_contains_regex("T.*native_f3");
llvm_nm().input(bin_name("main")).run().assert_stdout_contains_regex("T.*rust_dep_local");
llvm_nm().input(bin_name("main")).run().assert_stdout_contains_regex("T.*rust_dep_up");
}