Guillaume Gomez
d265538016
Rollup merge of #126823 - GuillaumeGomez:migrate-run-make-inline-always-many-cgu, r=Kobzol
...
Migrate `run-make/inline-always-many-cgu` to `rmake.rs`
Part of https://github.com/rust-lang/rust/issues/121876 .
r? `@jieyouxu`
2024-06-22 12:57:21 +02:00
Guillaume Gomez
e7dfd4a913
Migrate run-make/inline-always-many-cgu
to rmake.rs
2024-06-22 12:35:58 +02:00
Jubilee
84b0922565
Rollup merge of #126712 - Oneirical:bootest-constestllation, r=jieyouxu
...
Migrate `relocation-model`, `error-writing-dependencies` and `crate-name-priority` `run-make` tests to rmake
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
Needs MSVC try-job due to #28026 , almost guaranteed to fail, but let's see anyways.
try-job: aarch64-gnu
`/* try-job: x86_64-msvc */`
try-job: x86_64-apple-1
try-job: armhf-gnu
try-job: test-various
2024-06-21 21:02:26 -07:00
Matthias Krüger
520118b4f8
Rollup merge of #126707 - ferrocene:hoverbear/fix-inaccessible-temp-dir, r=jieyouxu
...
Pass target to inaccessible-temp-dir rmake test
This PR circles back to do the target specific changes in `inaccessible-temp-dir` from https://github.com/rust-lang/rust/pull/126355 . Specifically, this repairs the test on `riscv64gc-unknown-linux-gnu`. (The failure can be viewed in https://github.com/rust-lang/rust/pull/126641 -> https://github.com/rust-lang/rust/actions/runs/9571149616/job/26387537888?pr=126641 )
We removed this change from https://github.com/rust-lang/rust/pull/126355 to avoid a merge conflict with https://github.com/rust-lang/rust/pull/126279 . (...and, because I hoped that would fix the test instead, but it did not.)
## Testing
> [!NOTE]
> `riscv64gc-unknown-linux-gnu` is a [**Tier 2 with Host Tools** platform](https://doc.rust-lang.org/beta/rustc/platform-support.html ), all tests may not necessarily pass! This PR is specifically about the `inaccessible-temp-dir` rmake test.
You can test out the job locally:
```sh
DEPLOY=1 ./src/ci/docker/run.sh riscv64gc-gnu
```
`DEPLOY=1` helps reproduce the CI's environment and also avoids the chance of a `llvm-c/BitReader.h` error (detailed in https://github.com/rust-lang/rust/issues/85424 and https://github.com/rust-lang/rust/issues/56650 ).
<details>
<summary>tests/run-make/inaccessible-temp-dir failure</summary>
```bash
---- [run-make] tests/run-make/inaccessible-temp-dir stdout ----
---- [run-make] tests/run-make/inaccessible-temp-dir stdout ----
error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/inaccessible-temp-dir/inaccessible-temp-dir/rmake_out" && env -u RUSTFLAGS AR="riscv64-linux-gnu-ar" CC="riscv64-linux-gnu-gcc" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=rv64gc -mabi=lp64d" CXX="riscv64-linux-gnu-g++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=rv64gc -mabi=lp64d" HOST_RPATH_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools-bin:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build/bin/FileCheck" PYTHON="/usr/bin/python3" REMOTE_TEST_CLIENT="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/remote-test-client" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTC_LINKER="riscv64-linux-gnu-gcc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" RUST_BUILD_STAGE="stage2-riscv64gc-unknown-linux-gnu" SOURCE_ROOT="/checkout" TARGET="riscv64gc-unknown-linux-gnu" TARGET_RPATH_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/riscv64gc-unknown-linux-gnu/lib" TARGET_RPATH_ENV="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/inaccessible-temp-dir/inaccessible-temp-dir/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/inaccessible-temp-dir/inaccessible-temp-dir/rmake"
stdout: none
--- stderr -------------------------------
command unexpectedly succeeded at line 33
Command { cmd: LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/inaccessible-temp-dir/inaccessible-temp-dir/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools-bin:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/inaccessible-temp-dir/inaccessible-temp-dir/rmake_out" "program.rs" "-Ztemps-dir=inaccessible/tmp", stdin: None, drop_bomb: DropBomb { command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc", defused: true, armed_line: 30 } }
output status: `exit status: 0`
=== STDOUT ===
=== STDERR ===
```
</details>
2024-06-21 09:12:36 +02:00
Oneirical
3c0a4bc915
rewrite crate-name-priority to rmake
2024-06-20 16:09:39 -04:00
bors
433355166d
Auto merge of #126745 - matthiaskrgr:rollup-xagplef, r=matthiaskrgr
...
Rollup of 6 pull requests
Successful merges:
- #126095 (Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake`)
- #126629 (Migrate `run-make/compressed-debuginfo` to `rmake.rs`)
- #126644 (Rewrite `extern-flag-rename-transitive`. `debugger-visualizer-dep-info`, `metadata-flag-frobs-symbols`, `extern-overrides-distribution` and `forced-unwind-terminate-pof` `run-make` tests to rmake)
- #126735 (collect attrs in const block expr)
- #126737 (Remove `feature(const_closures)` from libcore)
- #126740 (add `needs-unwind` to UI test)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-06-20 18:21:01 +00:00
Matthias Krüger
bbf94b29fb
Rollup merge of #126644 - Oneirical:testla-coil, r=jieyouxu
...
Rewrite `extern-flag-rename-transitive`. `debugger-visualizer-dep-info`, `metadata-flag-frobs-symbols`, `extern-overrides-distribution` and `forced-unwind-terminate-pof` `run-make` tests to rmake
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
try-job: dist-x86_64-apple
2024-06-20 18:20:12 +02:00
Matthias Krüger
54e097d5ef
Rollup merge of #126629 - GuillaumeGomez:migrate-run-make-compressed-debuginfo, r=jieyouxu
...
Migrate `run-make/compressed-debuginfo` to `rmake.rs`
Part of https://github.com/rust-lang/rust/issues/121876 .
r? ````@jieyouxu````
2024-06-20 18:20:11 +02:00
Matthias Krüger
440504726c
Rollup merge of #126095 - Oneirical:final-testination, r=jieyouxu
...
Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake`
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
Guaranteed to fail CI until #125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module.
try-job: x86_64-msvc
2024-06-20 18:20:11 +02:00
bors
cb8a7ea0ed
Auto merge of #124807 - GuillaumeGomez:migrate-rustdoc-io-error, r=jieyouxu
...
Migrate `run-make/rustdoc-io-error` to `rmake.rs`
Part of https://github.com/rust-lang/rust/issues/121876 .
r? `@jieyouxu`
try-job: armhf-gnu
2024-06-20 16:09:14 +00:00
Ana Hobden
a656bb6eb2
Specify target for inaccessible-temp-dir rmake test
2024-06-20 06:44:47 -07:00
bors
1ca578e68e
Auto merge of #126736 - matthiaskrgr:rollup-rb20oe3, r=matthiaskrgr
...
Rollup of 7 pull requests
Successful merges:
- #126380 (Add std Xtensa targets support)
- #126636 (Resolve Clippy `f16` and `f128` `unimplemented!`/`FIXME`s )
- #126659 (More status-quo tests for the `#[coverage(..)]` attribute)
- #126711 (Make Option::as_[mut_]slice const)
- #126717 (Clean up some comments near `use` declarations)
- #126719 (Fix assertion failure for some `Expect` diagnostics.)
- #126730 (Add opaque type corner case test)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-06-20 13:36:42 +00:00
Matthias Krüger
ef2e8bfcbf
Rollup merge of #126717 - nnethercote:rustfmt-use-pre-cleanups, r=jieyouxu
...
Clean up some comments near `use` declarations
#125443 will reformat all `use` declarations in the repository. There are a few edge cases involving comments on `use` declarations that require care. This PR cleans up some clumsy comment cases, taking us a step closer to #125443 being able to merge.
r? ``@lqd``
2024-06-20 14:07:04 +02:00
Guillaume Gomez
b30ef41833
Ignore arm targets as well for run-make/rustdoc-io-error
tests
2024-06-20 14:06:37 +02:00
bors
1aaab8b9f8
Auto merge of #116088 - nbdd0121:unwind, r=Amanieu,RalfJung
...
Stabilise `c_unwind`
Fix #74990
Fix #115285 (that's also where FCP is happening)
Marking as draft PR for now due to `compiler_builtins` issues
r? `@Amanieu`
2024-06-20 11:22:59 +00:00
Nicholas Nethercote
b104fbec85
Add blank lines after module-level //
comments.
...
Similar to the previous commit.
2024-06-20 09:23:20 +10:00
Oneirical
f22b5afa6a
rewrite error-writing-dependencies to rmake
2024-06-19 16:43:22 -04:00
Oneirical
75ee1d74a9
rewrite relocation-model to rmake
2024-06-19 16:18:33 -04:00
Jerry Wang
f44494cb3a
Migrate run-make/comment-section
to rmake.rs
2024-06-19 15:55:57 -04:00
Oneirical
e7ea063622
rewrite forced-unwind-terminate-pof to rmake
2024-06-19 14:39:09 -04:00
Oneirical
b3c51323b5
make assert_stderr_contains print its contents on panic
2024-06-19 11:50:22 -04:00
fee1-dead
9e8a7a87e4
Rollup merge of #126684 - GuillaumeGomez:migrate-run-make-glibc-staticlib-args, r=Kobzol
...
Migrate `run-make/glibc-staticlib-args` to `rmake.rs`
Part of https://github.com/rust-lang/rust/issues/121876 .
r? ``@jieyouxu``
2024-06-19 22:51:06 +08:00
Gary Guo
5812b1fd12
Remove c_unwind from tests and fix tests
2024-06-19 13:54:55 +01:00
Guillaume Gomez
0c2bfd913e
Migrate run-make/glibc-staticlib-args
to rmake.rs
2024-06-19 13:57:55 +02:00
León Orell Valerian Liehr
11391115cc
Rollup merge of #125787 - Oneirical:infinite-test-a-novel, r=jieyouxu
...
Migrate `bin-emit-no-symbols` `run-make` test to `rmake`
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
try-job: x86_64-msvc
try-job: armhf-gnu
2024-06-19 09:52:00 +02:00
bors
4e63822fc4
Auto merge of #126607 - Oneirical:the-testern-world, r=jieyouxu
...
Rewrite `separate-link`, `separate-link-fail` and `allocator-shim-circular-deps` `run-make` tests to `ui` or `rmake`
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
2024-06-18 23:38:09 +00:00
Guillaume Gomez
1ba5c9808c
Migrate run-make/rustdoc-io-error
to rmake.rs
2024-06-18 23:28:55 +02:00
Oneirical
d1e8c6bc7e
rewrite extern-overrides-distribution to rmake
2024-06-18 16:30:26 -04:00
Oneirical
dff354e57f
rewrite metadata-flag-frobs-symbols to rmake
2024-06-18 16:20:32 -04:00
Oneirical
9e2ace85f9
rewrite debugger-visualizer-dep-info to rmake
2024-06-18 16:05:56 -04:00
Oneirical
060a13e9fd
rewrite extern-flag-rename-transitive to rmake
2024-06-18 15:59:33 -04:00
Guillaume Gomez
62431b73e0
Migrate run-make/compressed-debuginfo
to rmake.rs
2024-06-18 21:32:24 +02:00
Oneirical
977d3f6f96
use llvm_readobj in run-make test instead of nm
2024-06-18 14:57:00 -04:00
Oneirical
83cb760e2c
run_make_support nm implementation + bin-emit-no-symbols rmake rewrite
2024-06-18 14:38:33 -04:00
Oneirical
78998f3fea
rewrite allocator-shim-circular-deps to ui test
2024-06-18 14:25:59 -04:00
Oneirical
03a4259c8b
Rewrite lto-readonly-lib to rmake
2024-06-18 12:55:44 -04:00
Oneirical
594135ea37
Rewrite ls-metadata to rmake
2024-06-18 12:54:55 -04:00
Oneirical
fa2b612213
Rewrite link-args-order to rmake
2024-06-18 12:54:53 -04:00
bors
8814b926f4
Auto merge of #126630 - GuillaumeGomez:rollup-hlwbpa2, r=GuillaumeGomez
...
Rollup of 5 pull requests
Successful merges:
- #125988 (Migrate `run-make/used` to `rmake.rs`)
- #126500 (Migrate `error-found-staticlib-instead-crate`, `output-filename-conflicts-with-directory`, `output-filename-overwrites-input`, `native-link-modifier-verbatim-rustc` and `native-link-verbatim-linker` `run-make` tests to `rmake.rs` format)
- #126583 (interpret: better error when we ran out of memory)
- #126587 (coverage: Add debugging flag `-Zcoverage-options=no-mir-spans`)
- #126621 (More thorough status-quo tests for `#[coverage(..)]`)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-06-18 14:20:38 +00:00
Guillaume Gomez
6b9bcdca35
Rollup merge of #126500 - Oneirical:test-for-the-holy-grail, r=jieyouxu
...
Migrate `error-found-staticlib-instead-crate`, `output-filename-conflicts-with-directory`, `output-filename-overwrites-input`, `native-link-modifier-verbatim-rustc` and `native-link-verbatim-linker` `run-make` tests to `rmake.rs` format
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
2024-06-18 15:30:45 +02:00
Guillaume Gomez
2d0ef75867
Rollup merge of #125988 - GuillaumeGomez:migrate-run-make-used, r=jieyouxu
...
Migrate `run-make/used` to `rmake.rs`
Part of https://github.com/rust-lang/rust/issues/121876 .
r? `@jieyouxu`
2024-06-18 15:30:44 +02:00
bors
af3d1004c7
Auto merge of #126437 - Oneirical:test-we-forget, r=jieyouxu
...
Migrate `issue-64153`, `invalid-staticlib` and `no-builtins-lto` `run-make` tests to `rmake`
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
try-job: x86_64-msvc
2024-06-18 11:47:34 +00:00
bors
67cfc3a558
Auto merge of #126490 - Oneirical:testicide, r=jieyouxu
...
Migrate `extern-flag-fun`, `incremental-debugger-visualiser` and `incremental-session-fail` `run-make` tests to `rmake.rs`
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
try-job: arm-android
try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc
try-job: dist-i686-mingw
2024-06-18 02:56:17 +00:00
bors
c2932aaf9d
Auto merge of #126279 - Oneirical:you-can-run-make-but-cannot-hide, r=jieyouxu
...
Migrate `inaccessible-temp-dir`, `output-with-hyphens` and `issue-10971-temps-dir` `run-make` tests to `rmake`
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
try-job: x86_64-msvc
2024-06-18 00:42:26 +00:00
bors
59e2c01c22
Auto merge of #125500 - Oneirical:bundle-them-up-why-not, r=jieyouxu
...
Migrate `link-arg`, `link-dedup` and `issue-26092` `run-make` tests to `rmake` format
Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html ).
All of these tests check if rustc's output contains (or does not) contain certain strings. Does that mean these could be better suited to becoming UI/codegen tests?
try-job: x86_64-msvc
2024-06-17 21:32:16 +00:00
Oneirical
dfba1b5cca
rewrite separate-link-fail to rmake.rs
2024-06-17 15:59:39 -04:00
Oneirical
df6d873ae8
rewrite no-builtins-lto to rmake
2024-06-17 15:18:23 -04:00
Oneirical
10db8c7bc2
rewrite separate-link to rmake.rs
2024-06-17 15:14:21 -04:00
Oneirical
6fffe848e3
rewrite native-link-modifier-linker to rmake
2024-06-17 14:45:19 -04:00
Oneirical
03f19d632a
Add new test_while_readonly helper function to run-make-support
2024-06-17 14:37:49 -04:00