]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/wf.rs
Prevent the creation of `TraitRef` without dedicated methods
[rust.git] / compiler / rustc_trait_selection / src / traits / wf.rs
index 74c4ae8854c34e4d9fb628808f5523a4f4707c65..a995eeb9a7afb8841b5539440c9df059dfd49484 100644 (file)
@@ -648,7 +648,7 @@ fn compute(&mut self, arg: GenericArg<'tcx>) {
                     // types appearing in the fn signature
                 }
 
-                ty::Alias(ty::Opaque, ty::AliasTy { def_id, substs }) => {
+                ty::Alias(ty::Opaque, ty::AliasTy { def_id, substs, .. }) => {
                     // All of the requirements on type parameters
                     // have already been checked for `impl Trait` in
                     // return position. We do need to check type-alias-impl-trait though.