diff options
| author | varkor <github@varkor.com> | 2018-07-23 01:20:33 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-08-05 15:54:49 +0100 |
| commit | 5242dce01db3fc42d5ec91eb166cce83194149cb (patch) | |
| tree | 69d2cc1a4ba38482d38d43dab4a557ed83839697 /src/libsyntax | |
| parent | a00ba4d71ea465c7e8074e1abb50970f0c767b28 (diff) | |
| download | rust-5242dce01db3fc42d5ec91eb166cce83194149cb.tar.gz rust-5242dce01db3fc42d5ec91eb166cce83194149cb.zip | |
Add lint for unknown feature attributes
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index 8534969c623..20be7f8361a 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -374,6 +374,18 @@ and likely to change in the future. "##, +E0635: r##" +The `#![feature]` attribute specified an unknown feature. + +Erroneous code example: + +```compile_fail,E0635 +#![feature(nonexistent_rust_feature)] // error: unknown feature +``` + +"##, + + } register_diagnostics! { |
