We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c367983 commit 0213c87Copy full SHA for 0213c87
compiler/rustc_lint/src/context/diagnostics.rs
@@ -279,7 +279,7 @@ pub(super) fn builtin(
279
280
is_feature_cfg |= best_match == sym::feature;
281
} else {
282
- if !names_possibilities.is_empty() {
+ if !names_possibilities.is_empty() && names_possibilities.len() <= 3 {
283
names_possibilities.sort();
284
for cfg_name in names_possibilities.iter() {
285
db.span_suggestion(
0 commit comments