-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rewrite fpic
, simple-dylib
and issue-37893
run-make
tests in rmake.rs
or ui test format
#125662
Conversation
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc #123760
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.