Rewrite fpic, simple-dylib and issue-37893 run-make tests in rmake.rs or ui test format#125662
Rewrite fpic, simple-dylib and issue-37893 run-make tests in rmake.rs or ui test format#125662bors merged 3 commits intorust-lang:masterfrom
fpic, simple-dylib and issue-37893 run-make tests in rmake.rs or ui test format#125662Conversation
|
Some changes occurred in run-make tests. cc @jieyouxu |
79dc40b to
4ccefec
Compare
| // a.rs is a procedural macro crate, on which b.rs and c.rs depend. A now | ||
| // patched bug caused a compilation failure if the proc-macro crate was | ||
| // initialized with its dependents in this exact order. This test checks | ||
| // that compilation succeeds even when initialization is done in this order. |
There was a problem hiding this comment.
Observation: that sure is some fun combination to diagnose and fix...
| @@ -0,0 +1,4 @@ | |||
| //@ compile-flags --crate-type=dylib -Cprefer-dynamic | |||
There was a problem hiding this comment.
Question: I think this needs to be
//@ compile-flags: --crate-type=dylib -Cprefer-dynamic
but then again I don't recall exactly what compiletest directive parsing accepts. The --crate-type=dylib is redundant though because of the in-source crate_type attribute.
tests/ui/errors/pic-linker.rs
Outdated
| //@ ignore-macos | ||
| //@ ignore-cross-compile | ||
|
|
||
| //@ compile-flags -Clink-args=-Wl,-z,text |
There was a problem hiding this comment.
Question: I think this might need to be //@ compile-flags:
|
The |
|
@bors author |
|
☔ The latest upstream changes (presumably #125691) made this pull request unmergeable. Please resolve the merge conflicts. |
4ccefec to
640126c
Compare
640126c to
8c8d0db
Compare
|
Revisions applied. |
|
Thanks! |
…ouxu Rewrite `fpic`, `simple-dylib` and `issue-37893` `run-make` tests in `rmake.rs` or ui test format Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
Rollup of 7 pull requests Successful merges: - rust-lang#125653 (Migrate `run-make/const-prop-lint` to `rmake.rs`) - rust-lang#125662 (Rewrite `fpic`, `simple-dylib` and `issue-37893` `run-make` tests in `rmake.rs` or ui test format) - rust-lang#125699 (Streamline `x fmt` and improve its output) - rust-lang#125701 ([ACP 362] genericize `ptr::from_raw_parts`) - rust-lang#125723 (Migrate `run-make/crate-data-smoke` to `rmake.rs`) - rust-lang#125733 (Add lang items for `AsyncFn*`, `Future`, `AsyncFnKindHelper`'s associated types) - rust-lang#125734 (ast: Revert a breaking attribute visiting order change) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#125662 - Oneirical:more-tests-again, r=jieyouxu Rewrite `fpic`, `simple-dylib` and `issue-37893` `run-make` tests in `rmake.rs` or ui test format Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
Part of #121876 and the associated Google Summer of Code project.