Skip to content

Commit 6bb49ca

Browse files
committed
clean: remove unnecessary references
1 parent 3623d4d commit 6bb49ca

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

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
@@ -1674,7 +1674,7 @@ impl std::ops::BitOrAssign for Diverges {
16741674
///
16751675
/// E.g. when F is `|ty| matches!(ty.kind(Interer), TyKind::Unknown)`, the zipper
16761676
/// will skip over all mismatches that only differ in `{unknown}`.
1677-
pub struct UnknownMismatch<'db, F: Fn(&Ty) -> bool>(pub &'db dyn HirDatabase, pub F);
1677+
struct UnknownMismatch<'db, F: Fn(&Ty) -> bool>(&'db dyn HirDatabase, F);
16781678
impl<F: Fn(&Ty) -> bool> chalk_ir::zip::Zipper<Interner> for UnknownMismatch<'_, F> {
16791679
fn zip_tys(&mut self, variance: Variance, a: &Ty, b: &Ty) -> chalk_ir::Fallible<()> {
16801680
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: 0 additions & 3 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},
@@ -74,10 +73,8 @@ use hir_ty::{
7473
traits::FnTrait,
7574
AliasTy, CallableDefId, CallableSig, Canonical, CanonicalVarKinds, Cast, ClosureId, GenericArg,
7675
GenericArgData, Interner, ParamKind, QuantifiedWhereClause, Scalar, Substitution,
77-
TraitEnvironment, TraitRefExt, Ty, TyBuilder, TyDefId, TyExt, ValueTyDefId, WhereClause,
7876
TraitEnvironment, TraitRefExt, Ty, TyBuilder, TyDefId, TyExt, TyKind, ValueTyDefId,
7977
WhereClause,
80-
8178
};
8279
use itertools::Itertools;
8380
use nameres::diagnostics::DefDiagnosticKind;

0 commit comments

Comments
 (0)