Rewrite and rename issue-38237
to rmake
This commit is contained in:
parent
d4e5426256
commit
1f17e27ae3
@ -107,7 +107,6 @@ run-make/issue-35164/Makefile
|
|||||||
run-make/issue-36710/Makefile
|
run-make/issue-36710/Makefile
|
||||||
run-make/issue-37839/Makefile
|
run-make/issue-37839/Makefile
|
||||||
run-make/issue-37893/Makefile
|
run-make/issue-37893/Makefile
|
||||||
run-make/issue-38237/Makefile
|
|
||||||
run-make/issue-40535/Makefile
|
run-make/issue-40535/Makefile
|
||||||
run-make/issue-46239/Makefile
|
run-make/issue-46239/Makefile
|
||||||
run-make/issue-47384/Makefile
|
run-make/issue-47384/Makefile
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// This test checks that alloc can still compile correctly
|
// This test checks that alloc can still compile successfully
|
||||||
// when the unstable no_global_oom_handling feature is turned on.
|
// when the unstable no_global_oom_handling feature is turned on.
|
||||||
// See https://github.com/rust-lang/rust/pull/84266
|
// See https://github.com/rust-lang/rust/pull/84266
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// This test checks that alloc can still compile correctly
|
// This test checks that alloc can still compile successfully
|
||||||
// when the unstable no_rc feature is turned on.
|
// when the unstable no_rc feature is turned on.
|
||||||
// See https://github.com/rust-lang/rust/pull/84266
|
// See https://github.com/rust-lang/rust/pull/84266
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// This test checks that alloc can still compile correctly
|
// This test checks that alloc can still compile successfully
|
||||||
// when the unstable no_sync feature is turned on.
|
// when the unstable no_sync feature is turned on.
|
||||||
// See https://github.com/rust-lang/rust/pull/84266
|
// See https://github.com/rust-lang/rust/pull/84266
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// This test checks that the core library can still compile correctly
|
// This test checks that the core library can still compile successfully
|
||||||
// when the no_global_oom_handling feature is turned on.
|
// when the no_global_oom_handling feature is turned on.
|
||||||
// See https://github.com/rust-lang/rust/pull/110649
|
// See https://github.com/rust-lang/rust/pull/110649
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ fn main() {
|
|||||||
.arg("-Dwarnings")
|
.arg("-Dwarnings")
|
||||||
.crate_type("rlib")
|
.crate_type("rlib")
|
||||||
.input("../../../library/core/src/lib.rs")
|
.input("../../../library/core/src/lib.rs")
|
||||||
.sysroot(tmp_dir().join("fakeroot"));
|
.sysroot(tmp_dir().join("fakeroot"))
|
||||||
.cfg("no_global_oom_handling")
|
.cfg("no_global_oom_handling")
|
||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
16
tests/run-make/deref-impl-rustdoc-ice/rmake.rs
Normal file
16
tests/run-make/deref-impl-rustdoc-ice/rmake.rs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// A very specific set of circumstances (mainly, implementing Deref, and
|
||||||
|
// having a procedural macro and a Debug derivation in external crates) caused
|
||||||
|
// an internal compiler error (ICE) when trying to use rustdoc. This test
|
||||||
|
// reproduces the exact circumstances which caused the bug and checks
|
||||||
|
// that it does not happen again.
|
||||||
|
// See https://github.com/rust-lang/rust/issues/38237
|
||||||
|
|
||||||
|
//@ ignore-cross-compile
|
||||||
|
|
||||||
|
use run_make_support::{rustc, rustdoc, tmp_dir};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
rustc().input("foo.rs").run();
|
||||||
|
rustc().input("bar.rs").run();
|
||||||
|
rustdoc().input("baz.rs").library_search_path(tmp_dir()).output(tmp_dir()).run();
|
||||||
|
}
|
@ -1,6 +0,0 @@
|
|||||||
# ignore-cross-compile
|
|
||||||
include ../tools.mk
|
|
||||||
|
|
||||||
all:
|
|
||||||
$(RUSTC) foo.rs; $(RUSTC) bar.rs
|
|
||||||
$(RUSTDOC) baz.rs -L $(TMPDIR) -o $(TMPDIR)
|
|
@ -4,7 +4,7 @@
|
|||||||
// build to see if this bug makes a resurgence.
|
// build to see if this bug makes a resurgence.
|
||||||
// See https://github.com/rust-lang/rust/pull/24448
|
// See https://github.com/rust-lang/rust/pull/24448
|
||||||
|
|
||||||
//@ ignore-cross compile
|
//@ ignore-cross-compile
|
||||||
//@ only-linux
|
//@ only-linux
|
||||||
|
|
||||||
use run_make_support::{cc, run, rustc, tmp_dir};
|
use run_make_support::{cc, run, rustc, tmp_dir};
|
||||||
@ -14,23 +14,21 @@ fn main() {
|
|||||||
cc().input("foo.c")
|
cc().input("foo.c")
|
||||||
.arg("-lfoo")
|
.arg("-lfoo")
|
||||||
.library_search_path(tmp_dir())
|
.library_search_path(tmp_dir())
|
||||||
.arg("-Wl")
|
.arg("-Wl,--gc-sections")
|
||||||
.arg("--gc-sections")
|
|
||||||
.arg("-lpthread")
|
.arg("-lpthread")
|
||||||
.arg("-ldl")
|
.arg("-ldl")
|
||||||
.out_exe(tmp_dir().join("foo"))
|
.out_exe("foo")
|
||||||
.run();
|
.run();
|
||||||
run("foo");
|
run("foo");
|
||||||
cc().input("foo.c")
|
cc().input("foo.c")
|
||||||
.arg("-lfoo")
|
.arg("-lfoo")
|
||||||
.library_search_path(tmp_dir())
|
.library_search_path(tmp_dir())
|
||||||
.arg("-Wl")
|
.arg("-Wl,--gc-sections")
|
||||||
.arg("--gc-sections")
|
|
||||||
.arg("-lpthread")
|
.arg("-lpthread")
|
||||||
.arg("-ldl")
|
.arg("-ldl")
|
||||||
.arg("-pie")
|
.arg("-pie")
|
||||||
.arg("-fPIC")
|
.arg("-fPIC")
|
||||||
.out_exe(tmp_dir().join("foo"))
|
.out_exe("foo")
|
||||||
.run();
|
.run();
|
||||||
run("foo");
|
run("foo");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user