]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/constrained_generic_params.rs
Rollup merge of #64818 - Wind-River:master, r=alexcrichton
[rust.git] / src / librustc_typeck / constrained_generic_params.rs
index dd44f86717fe5fd1fe472261ca6a99ee4fa14957..31476eb73179857bb866fa6f7c5009535eab26bb 100644 (file)
@@ -55,7 +55,7 @@ struct ParameterCollector {
 
 impl<'tcx> TypeVisitor<'tcx> for ParameterCollector {
     fn visit_ty(&mut self, t: Ty<'tcx>) -> bool {
-        match t.sty {
+        match t.kind {
             ty::Projection(..) | ty::Opaque(..) if !self.include_nonconstraining => {
                 // projections are not injective
                 return false;