mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #99161 - fee1-dead-contrib:compile-test-edition-trim, r=jyn514
compiletest: trim edition before passing as flag This makes `edition: 2021` work instead of the ugly `edition:2021` one has to write.
This commit is contained in:
commit
c05e277764
@ -6,7 +6,7 @@
|
||||
|
||||
#![allow(unused)]
|
||||
|
||||
// edition:2018
|
||||
// edition: 2018
|
||||
// aux-build:arc_wake.rs
|
||||
|
||||
extern crate arc_wake;
|
||||
|
@ -294,7 +294,7 @@ impl TestProps {
|
||||
}
|
||||
|
||||
if let Some(edition) = config.parse_edition(ln) {
|
||||
self.compile_flags.push(format!("--edition={}", edition));
|
||||
self.compile_flags.push(format!("--edition={}", edition.trim()));
|
||||
has_edition = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user