Skip to content

Commit a8bfcc8

Browse files
committed
fix: Interner trait import
It used to be re-exported in `rustc_middle::ty`, but no longer is.
1 parent 6d078d7 commit a8bfcc8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bevy_lint/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ extern crate rustc_lint_defs;
3939
extern crate rustc_middle;
4040
extern crate rustc_session;
4141
extern crate rustc_span;
42+
extern crate rustc_type_ir;
4243

4344
mod callback;
4445
mod config;

bevy_lint/src/lints/pedantic/borrowed_reborrowable.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ use clippy_utils::{
107107
use rustc_errors::Applicability;
108108
use rustc_hir::{Body, FnDecl, MutTy, Mutability, intravisit::FnKind};
109109
use rustc_lint::{LateContext, LateLintPass};
110-
use rustc_middle::ty::{Interner, Ty, TyKind, TypeVisitable, TypeVisitor};
110+
use rustc_middle::ty::{Ty, TyKind, TypeVisitable, TypeVisitor};
111111
use rustc_span::{Span, def_id::LocalDefId, symbol::kw};
112+
use rustc_type_ir::Interner;
112113

113114
declare_bevy_lint! {
114115
pub(crate) BORROWED_REBORROWABLE,

0 commit comments

Comments
 (0)