File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -570,6 +570,11 @@ pub fn to_real_manifest(
570
570
package. edition = Some ( manifest:: InheritableField :: Value ( edition. to_string ( ) ) ) ;
571
571
edition
572
572
} else {
573
+ warnings. push ( format ! (
574
+ "no edition set: defaulting to the {} edition while the latest is {}" ,
575
+ Edition :: Edition2015 ,
576
+ Edition :: LATEST_STABLE
577
+ ) ) ;
573
578
Edition :: Edition2015
574
579
} ;
575
580
// Add these lines if start a new unstable edition.
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ fn unset_edition_works_on_old_msrv() {
141
141
p. cargo ( "check -v" )
142
142
. with_stderr (
143
143
"\
144
+ [WARNING] no edition set: defaulting to the 2015 edition while the latest is 2021
144
145
[CHECKING] foo [..]
145
146
[RUNNING] `rustc [..] --edition=2015 [..]`
146
147
[FINISHED] [..]
You can’t perform that action at this time.
0 commit comments