File tree 2 files changed +18
-0
lines changed
test-project/tests/nightly
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,10 @@ impl TestProps {
297
297
. map ( |s| s. to_owned ( ) ) ) ;
298
298
}
299
299
300
+ if let Some ( edition) = config. parse_edition ( ln) {
301
+ self . compile_flags . push ( format ! ( "--edition={}" , edition) ) ;
302
+ }
303
+
300
304
if let Some ( r) = config. parse_revisions ( ln) {
301
305
self . revisions . extend ( r) ;
302
306
}
@@ -609,6 +613,10 @@ impl Config {
609
613
fn parse_rustfix_only_machine_applicable ( & self , line : & str ) -> bool {
610
614
self . parse_name_directive ( line, "rustfix-only-machine-applicable" )
611
615
}
616
+
617
+ fn parse_edition ( & self , line : & str ) -> Option < String > {
618
+ self . parse_name_value_directive ( line, "edition" )
619
+ }
612
620
}
613
621
614
622
pub fn lldb_version_to_int ( version_string : & str ) -> isize {
Original file line number Diff line number Diff line change
1
+ // edition:2018
2
+ // compile-pass
3
+
4
+ pub struct Foo ;
5
+ impl Foo {
6
+ pub async fn foo ( & mut self ) {
7
+ }
8
+ }
9
+
10
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments