Skip to content

Commit 1fcc440

Browse files
committed
Add FIXME.
1 parent fca0d8a commit 1fcc440

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_lint/src/levels.rs

+2
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,8 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
908908
/// Checks if the lint is gated on a feature that is not enabled.
909909
///
910910
/// Returns `true` if the lint's feature is enabled.
911+
// FIXME only emit this once for each attribute, instead of repeating it 4 times for
912+
// pre-expansion lints, post-expansion lints, `shallow_lint_levels_on` and `lint_expectations`.
911913
fn check_gated_lint(&self, lint_id: LintId, span: Span) -> bool {
912914
if let Some(feature) = lint_id.lint.feature_gate {
913915
if !self.sess.features_untracked().enabled(feature) {

0 commit comments

Comments
 (0)