mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Move hir_trait_id to extension trait
This commit is contained in:
parent
86feac18e8
commit
6777a4975d
11 changed files with 27 additions and 19 deletions
|
@ -41,7 +41,7 @@ use crate::{db::HirDatabase, display::HirDisplay, utils::generics};
|
|||
|
||||
pub use autoderef::autoderef;
|
||||
pub use builder::TyBuilder;
|
||||
pub use chalk_ext::{ProjectionTyExt, TyExt};
|
||||
pub use chalk_ext::*;
|
||||
pub use infer::{could_unify, InferenceResult};
|
||||
pub use lower::{
|
||||
associated_type_shorthand_candidates, callable_item_sig, CallableDefId, ImplTraitLoweringMode,
|
||||
|
@ -107,12 +107,6 @@ pub fn make_only_type_binders<T>(num_vars: usize, value: T) -> Binders<T> {
|
|||
)
|
||||
}
|
||||
|
||||
impl TraitRef {
|
||||
pub fn hir_trait_id(&self) -> TraitId {
|
||||
from_chalk_trait_id(self.trait_id)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Canonical<T> {
|
||||
pub fn new(value: T, kinds: impl IntoIterator<Item = TyVariableKind>) -> Self {
|
||||
let kinds = kinds.into_iter().map(|tk| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue