]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc/ty/wf.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / librustc / ty / wf.rs
index 37ba936d2f42a73f71a6e3193cdfbf183345d6e5..bfc2e11d9fbcef7a56c49859ff3494f6be64fea8 100644 (file)
@@ -321,6 +321,7 @@ impl<'a, 'gcx, 'tcx> WfPredicates<'a, 'gcx, 'tcx> {
                 ty::TyFloat(..) |
                 ty::TyError |
                 ty::TyStr |
+                ty::TyNever |
                 ty::TyParam(_) => {
                     // WfScalar, WfParameter, etc
                 }
@@ -383,6 +384,12 @@ impl<'a, 'gcx, 'tcx> WfPredicates<'a, 'gcx, 'tcx> {
                     // types appearing in the fn signature
                 }
 
+                ty::TyAnon(..) => {
+                    // all of the requirements on type parameters
+                    // should've been checked by the instantiation
+                    // of whatever returned this exact `impl Trait`.
+                }
+
                 ty::TyTrait(ref data) => {
                     // WfObject
                     //