aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/traits.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2020-07-11 15:29:09 +0100
committerFlorian Diebold <[email protected]>2020-07-12 19:20:31 +0100
commit2a4166501d8990d3a489e89af3d92002540c288c (patch)
treef514e2c613df8f3a6569410bda37548e3f3d7e02 /crates/ra_hir_ty/src/traits.rs
parent71d645101db8f3674ba5be4c55ac3732336ee4ba (diff)
Remove built-in Unsize impls
They exist in Chalk now.
Diffstat (limited to 'crates/ra_hir_ty/src/traits.rs')
-rw-r--r--crates/ra_hir_ty/src/traits.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_hir_ty/src/traits.rs b/crates/ra_hir_ty/src/traits.rs
index 786f758e9..f7edb4c8b 100644
--- a/crates/ra_hir_ty/src/traits.rs
+++ b/crates/ra_hir_ty/src/traits.rs
@@ -295,13 +295,8 @@ pub enum Impl {
295 /// A normal impl from an impl block. 295 /// A normal impl from an impl block.
296 ImplDef(ImplId), 296 ImplDef(ImplId),
297 /// Closure types implement the Fn traits synthetically. 297 /// Closure types implement the Fn traits synthetically.
298 // FIXME: implement closure support from Chalk, remove this
298 ClosureFnTraitImpl(ClosureFnTraitImplData), 299 ClosureFnTraitImpl(ClosureFnTraitImplData),
299 /// [T; n]: Unsize<[T]>
300 UnsizeArray,
301 /// T: Unsize<dyn Trait> where T: Trait
302 UnsizeToTraitObject(TraitId),
303 /// dyn Trait: Unsize<dyn SuperTrait> if Trait: SuperTrait
304 UnsizeToSuperTraitObject(UnsizeToSuperTraitObjectData),
305} 300}
306/// This exists just for Chalk, because our ImplIds are only unique per module. 301/// This exists just for Chalk, because our ImplIds are only unique per module.
307#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] 302#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]