Skip to content

Commit 273b54d

Browse files
committed
Add FIXME.
1 parent af495f8 commit 273b54d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_lint/src/levels.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,8 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
911911
/// Checks if the lint is gated on a feature that is not enabled.
912912
///
913913
/// Returns `true` if the lint's feature is enabled.
914+
// FIXME only emit this once for each attribute, instead of repeating it 4 times for
915+
// pre-expansion lints, post-expansion lints, `shallow_lint_levels_on` and `lint_expectations`.
914916
fn check_gated_lint(&self, lint_id: LintId, span: Span) -> bool {
915917
if let Some(feature) = lint_id.lint.feature_gate {
916918
if !self.sess.features_untracked().enabled(feature) {

0 commit comments

Comments
 (0)