Skip to content

Commit

Permalink
rewrite and rename issue-37893 to rmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed May 29, 2024
1 parent 0697884 commit 8c8d0db
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ run-make/forced-unwind-terminate-pof/Makefile
run-make/foreign-double-unwind/Makefile
run-make/foreign-exceptions/Makefile
run-make/foreign-rust-exceptions/Makefile
run-make/fpic/Makefile
run-make/glibc-staticlib-args/Makefile
run-make/inaccessible-temp-dir/Makefile
run-make/include_bytes_deps/Makefile
Expand Down Expand Up @@ -103,7 +102,6 @@ run-make/issue-33329/Makefile
run-make/issue-35164/Makefile
run-make/issue-36710/Makefile
run-make/issue-37839/Makefile
run-make/issue-37893/Makefile
run-make/issue-40535/Makefile
run-make/issue-47384/Makefile
run-make/issue-47551/Makefile
Expand Down
5 changes: 0 additions & 5 deletions tests/run-make/issue-37893/Makefile

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions tests/run-make/proc-macro-init-order/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// 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.
// See https://github.com/rust-lang/rust/issues/37893

//@ ignore-cross-compile

use run_make_support::rustc;

fn main() {
rustc().input("a.rs").run();
rustc().input("b.rs").run();
rustc().input("c.rs").run();
}
2 changes: 1 addition & 1 deletion tests/ui/errors/pic-linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//@ ignore-macos
//@ ignore-cross-compile

//@ compile-flags -Clink-args=-Wl,-z,text
//@ compile-flags: -Clink-args=-Wl,-z,text
//@ run-pass

fn main() {}
2 changes: 1 addition & 1 deletion tests/ui/imports/auxiliary/simple-dylib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ compile-flags --crate-type=dylib -Cprefer-dynamic
//@ compile-flags: -Cprefer-dynamic

#![crate_type = "dylib"]
pub fn bar() {}
2 changes: 1 addition & 1 deletion tests/ui/imports/simple-dylib-import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// on the dynamic library simple-dylib.rs. If the test passes,
// dylibs can be built and linked into another file successfully..

//@ aux-crate: simple-dylib.rs
//@ aux-crate:bar=simple-dylib.rs
//@ run-pass

extern crate bar;
Expand Down

0 comments on commit 8c8d0db

Please sign in to comment.