]> git.lizzy.rs Git - rust.git/commitdiff
Also support macro generated atomic types
authorest31 <MTest31@outlook.com>
Tue, 31 Oct 2017 20:46:05 +0000 (21:46 +0100)
committerest31 <MTest31@outlook.com>
Tue, 31 Oct 2017 20:46:05 +0000 (21:46 +0100)
This is kind of a hack but it works...

src/tools/tidy/src/features.rs

index 671798b28e19a27952a762fd00e0233093e86c5f..9736c0399308149033fd99fe7c4d4f538e3d3bc6 100644 (file)
@@ -351,7 +351,7 @@ macro_rules! err {
                 }
             }
             becoming_feature = None;
-            if line.contains("rustc_const_unstable(") && line.contains("#[") {
+            if line.contains("rustc_const_unstable(") {
                 // const fn features are handled specially
                 let feature_name = match find_attr_val(line, "feature") {
                     Some(name) => name,