From 6a16a7c05b2fc65e28f87f1859323b4be6d5f95f Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 31 Oct 2017 21:46:05 +0100 Subject: [PATCH] Also support macro generated atomic types This is kind of a hack but it works... --- src/tools/tidy/src/features.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index 671798b28e1..9736c039930 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -351,7 +351,7 @@ fn map_lib_features(base_src_path: &Path, } } 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,