]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/util.rs
Auto merge of #54743 - ljedrz:cleanup_ty_p2, r=zackmdavis
[rust.git] / src / librustc / ty / util.rs
index e4141211a4fe521bde857592de08ca0d80d327ef..dfe42e0c6610904e579161e2cc5e6b2d27c0bcc3 100644 (file)
@@ -954,6 +954,8 @@ fn needs_drop_raw<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
         ty::Dynamic(..) | ty::Projection(..) | ty::Param(_) |
         ty::Opaque(..) | ty::Infer(_) | ty::Error => true,
 
+        ty::UnnormalizedProjection(..) => bug!("only used with chalk-engine"),
+
         // Structural recursion.
         ty::Array(ty, _) | ty::Slice(ty) => needs_drop(ty),