run-make tests: use edition 2024
This commit is contained in:
parent
53efb3d4f3
commit
fd6466aea7
6 changed files with 9 additions and 9 deletions
|
|
@ -6,7 +6,7 @@ use run_make_support::{rustc, source_root};
|
|||
|
||||
fn main() {
|
||||
rustc()
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.arg("-Dwarnings")
|
||||
.crate_type("rlib")
|
||||
.input(source_root().join("library/alloc/src/lib.rs"))
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use run_make_support::{rustc, source_root};
|
|||
|
||||
fn main() {
|
||||
rustc()
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.arg("-Dwarnings")
|
||||
.crate_type("rlib")
|
||||
.input(source_root().join("library/alloc/src/lib.rs"))
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use run_make_support::{rustc, source_root};
|
|||
|
||||
fn main() {
|
||||
rustc()
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.arg("-Dwarnings")
|
||||
.crate_type("rlib")
|
||||
.input(source_root().join("library/alloc/src/lib.rs"))
|
||||
|
|
|
|||
|
|
@ -49,21 +49,21 @@ fn main() {
|
|||
rustc()
|
||||
.input("proc.rs")
|
||||
.crate_type("proc-macro")
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.arg("-Cdebuginfo=line-tables-only")
|
||||
.run();
|
||||
rustc()
|
||||
.extern_("proc", dynamic_lib_name("proc"))
|
||||
.input("other.rs")
|
||||
.crate_type("rlib")
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.opt_level("3")
|
||||
.arg("-Cdebuginfo=line-tables-only")
|
||||
.run();
|
||||
rustc()
|
||||
.extern_("other", rust_lib_name("other"))
|
||||
.input("main.rs")
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.opt_level("3")
|
||||
.arg("-Cdebuginfo=line-tables-only")
|
||||
.arg("-Clto=fat")
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ fn main() {
|
|||
.crate_type("lib")
|
||||
.emit("obj=foo.o")
|
||||
.panic("abort")
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.arg("-Zvalidate-mir")
|
||||
.arg("-Cforce-unwind-tables=no")
|
||||
.run();
|
||||
|
|
|
|||
|
|
@ -19,14 +19,14 @@ fn main() {
|
|||
rustc()
|
||||
.input("src/proc.rs")
|
||||
.crate_name(proc_crate_name)
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.crate_type("proc-macro")
|
||||
.emit("dep-info,link")
|
||||
.run();
|
||||
rustc()
|
||||
.input("src/lib.rs")
|
||||
.crate_name(crate_name)
|
||||
.edition("2021")
|
||||
.edition("2024")
|
||||
.crate_type("lib")
|
||||
.emit("dep-info,link")
|
||||
.run();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue