From 5242dce01db3fc42d5ec91eb166cce83194149cb Mon Sep 17 00:00:00 2001 From: varkor Date: Mon, 23 Jul 2018 01:20:33 +0100 Subject: Add lint for unknown feature attributes --- src/libsyntax/diagnostic_list.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/libsyntax') 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! { -- cgit 1.4.1-3-g733a5