diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-05-04 11:37:27 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-05-04 13:51:12 -0700 |
| commit | 9d34e8dd21264a0e23d87e12b6c0ec9bef835af3 (patch) | |
| tree | 3a64e3a155daa1cbded55f7d0cd2d15d2a27dd2c /src/libsyntax | |
| parent | b1951f450ae5ed34c3a14cda74036fe63a3abe91 (diff) | |
| download | rust-9d34e8dd21264a0e23d87e12b6c0ec9bef835af3.tar.gz rust-9d34e8dd21264a0e23d87e12b6c0ec9bef835af3.zip | |
Make extern_absolute_paths only work on the new edition
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 4c6d0282c2a..5155408ba63 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -1849,8 +1849,10 @@ pub fn get_features(span_handler: &Handler, krate_attrs: &[ast::Attribute], let mut feature_checker = FeatureChecker::default(); for &(.., f_edition, set) in ACTIVE_FEATURES.iter() { - if f_edition <= crate_edition { - set(&mut features, DUMMY_SP); + if let Some(f_edition) = f_edition { + if f_edition <= crate_edition { + set(&mut features, DUMMY_SP); + } } } |
