about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/context.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-04-30 15:04:08 +0200
committerGitHub <noreply@github.com>2024-04-30 15:04:08 +0200
commit784316eadca2c58f6d79343e1eac6a7b667c8ea3 (patch)
tree84c0ff52d026d87f322874cfdde1f04dd8470e62 /compiler/rustc_lint/src/context.rs
parent7427812261469c52f7093722746c26b134d39bd0 (diff)
parent2088de28896b7699154aecb31e0e2664a18432ba (diff)
downloadrust-784316eadca2c58f6d79343e1eac6a7b667c8ea3.tar.gz
rust-784316eadca2c58f6d79343e1eac6a7b667c8ea3.zip
Rollup merge of #124511 - nnethercote:rm-extern-crates, r=fee1-dead
Remove many `#[macro_use] extern crate foo` items

This requires the addition of more `use` items, which often make the code more verbose. But they also make the code easier to read, because `#[macro_use]` obscures where macros are defined.

r? `@fee1-dead`
Diffstat (limited to 'compiler/rustc_lint/src/context.rs')
-rw-r--r--compiler/rustc_lint/src/context.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs
index d56d616809a..0931bb29963 100644
--- a/compiler/rustc_lint/src/context.rs
+++ b/compiler/rustc_lint/src/context.rs
@@ -27,6 +27,7 @@ use rustc_hir as hir;
 use rustc_hir::def::Res;
 use rustc_hir::def_id::{CrateNum, DefId};
 use rustc_hir::definitions::{DefPathData, DisambiguatedDefPathData};
+use rustc_middle::bug;
 use rustc_middle::middle::privacy::EffectiveVisibilities;
 use rustc_middle::ty::layout::{LayoutError, LayoutOfHelpers, TyAndLayout};
 use rustc_middle::ty::print::{with_no_trimmed_paths, PrintError};