Skip to content

Commit 66043cf

Browse files
committed
clean: remove unnecessary references
1 parent 15cbe18 commit 66043cf

5 files changed

Lines changed: 3 additions & 18 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hir-ty/src/infer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ impl std::ops::BitOrAssign for Diverges {
16731673
///
16741674
/// E.g. when F is `|ty| matches!(ty.kind(Interer), TyKind::Unknown)`, the zipper
16751675
/// will skip over all mismatches that only differ in `{unknown}`.
1676-
pub struct UnknownMismatch<'db, F: Fn(&Ty) -> bool>(pub &'db dyn HirDatabase, pub F);
1676+
struct UnknownMismatch<'db, F: Fn(&Ty) -> bool>(&'db dyn HirDatabase, F);
16771677
impl<F: Fn(&Ty) -> bool> chalk_ir::zip::Zipper<Interner> for UnknownMismatch<'_, F> {
16781678
fn zip_tys(&mut self, variance: Variance, a: &Ty, b: &Ty) -> chalk_ir::Fallible<()> {
16791679
let zip_substs = |this: &mut Self,

crates/hir-ty/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub use chalk_ext::*;
8181
pub use infer::{
8282
closure::{CaptureKind, CapturedItem},
8383
could_coerce, could_unify, could_unify_deeply, Adjust, Adjustment, AutoBorrow, BindingMode,
84-
InferenceDiagnostic, InferenceResult, OverloadedDeref, PointerCast, UnknownMismatch,
84+
InferenceDiagnostic, InferenceResult, OverloadedDeref, PointerCast,
8585
};
8686
pub use interner::Interner;
8787
pub use lower::{

crates/hir/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ smallvec.workspace = true
2020
tracing.workspace = true
2121
triomphe.workspace = true
2222
once_cell = "1.17.1"
23-
chalk-ir.workspace = true
2423

2524
# local deps
2625
base-db.workspace = true

crates/hir/src/lib.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ use std::{iter, mem::discriminant, ops::ControlFlow};
3939

4040
use arrayvec::ArrayVec;
4141
use base_db::{CrateDisplayName, CrateId, CrateOrigin, FileId};
42-
use chalk_ir::TyKind;
4342
use either::Either;
4443
use hir_def::{
4544
body::{BodyDiagnostic, SyntheticSyntax},
@@ -62,19 +61,7 @@ use hir_def::{
6261
};
6362
use hir_expand::{attrs::collect_attrs, name::name, proc_macro::ProcMacroKind, MacroCallKind};
6463
use hir_ty::{
65-
all_super_traits, autoderef, check_orphan_rules,
66-
consteval::{try_const_usize, unknown_const_as_generic, ConstExt},
67-
db::InternedClosure,
68-
diagnostics::BodyValidationDiagnostic,
69-
error_lifetime, known_const_to_ast,
70-
layout::{Layout as TyLayout, RustcEnumVariantIdx, RustcFieldIdx, TagEncoding},
71-
method_resolution::{self, TyFingerprint},
72-
mir::{interpret_mir, MutBorrowKind},
73-
primitive::UintTy,
74-
traits::FnTrait,
75-
AliasTy, CallableDefId, CallableSig, Canonical, CanonicalVarKinds, Cast, ClosureId, GenericArg,
76-
GenericArgData, Interner, ParamKind, QuantifiedWhereClause, Scalar, Substitution,
77-
TraitEnvironment, TraitRefExt, Ty, TyBuilder, TyDefId, TyExt, ValueTyDefId, WhereClause,
64+
all_super_traits, autoderef, check_orphan_rules, consteval::{try_const_usize, unknown_const_as_generic, ConstExt}, db::InternedClosure, diagnostics::BodyValidationDiagnostic, error_lifetime, known_const_to_ast, layout::{Layout as TyLayout, RustcEnumVariantIdx, RustcFieldIdx, TagEncoding}, method_resolution::{self, TyFingerprint}, mir::{interpret_mir, MutBorrowKind}, primitive::UintTy, traits::FnTrait, AliasTy, CallableDefId, CallableSig, Canonical, CanonicalVarKinds, Cast, ClosureId, GenericArg, GenericArgData, Interner, ParamKind, QuantifiedWhereClause, Scalar, Substitution, TraitEnvironment, TraitRefExt, Ty, TyBuilder, TyDefId, TyExt, TyKind, ValueTyDefId, WhereClause
7865
};
7966
use itertools::Itertools;
8067
use nameres::diagnostics::DefDiagnosticKind;

0 commit comments

Comments
 (0)