From 1693993d8ff16b1a5d288bc858db052902126053 Mon Sep 17 00:00:00 2001 From: Rejyr Date: Tue, 23 Aug 2022 10:41:02 -0400 Subject: [PATCH] cleanup: commented lints --- compiler/rustc_lint/src/builtin.rs | 3 --- compiler/rustc_lint/src/context.rs | 3 --- compiler/rustc_lint/src/levels.rs | 3 --- compiler/rustc_lint/src/lib.rs | 2 -- 4 files changed, 11 deletions(-) diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 507abad0d5674..af7ef96e485b5 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -1,6 +1,3 @@ -// #![deny(rustc::diagnostic_outside_of_impl)] -// #![deny(rustc::untranslatable_diagnostic)] -// //! Lints in the Rust compiler. //! //! This contains lints which can feasibly be implemented as their own diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index a1fdc557f9298..e0679a6112a4c 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -1,6 +1,3 @@ -// #![deny(rustc::diagnostic_outside_of_impl)] -// #![deny(rustc::untranslatable_diagnostic)] -// //! Implementation of lint checking. //! //! The lint checking is mostly consolidated into one pass which runs diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs index 41d89229009ba..89409b58f88b9 100644 --- a/compiler/rustc_lint/src/levels.rs +++ b/compiler/rustc_lint/src/levels.rs @@ -1,6 +1,3 @@ -// #![deny(rustc::diagnostic_outside_of_impl)] -// #![deny(rustc::untranslatable_diagnostic)] -// use crate::context::{CheckLintNameResult, LintStore}; use crate::late::unerased_lint_store; use rustc_ast as ast; diff --git a/compiler/rustc_lint/src/lib.rs b/compiler/rustc_lint/src/lib.rs index 23fd5d5eea081..f34e062fd12a9 100644 --- a/compiler/rustc_lint/src/lib.rs +++ b/compiler/rustc_lint/src/lib.rs @@ -36,8 +36,6 @@ #![feature(let_else)] #![feature(never_type)] #![recursion_limit = "256"] -// #![deny(rustc::diagnostic_outside_of_impl)] -// #![deny(rustc::untranslatable_diagnostic)] #[macro_use] extern crate rustc_middle;