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:
Matthias Krüger 2022-07-11 22:39:10 +02:00 committed by GitHub
commit c05e277764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
#![allow(unused)]
// edition:2018
// edition: 2018
// aux-build:arc_wake.rs
extern crate arc_wake;

View File

@ -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;
}