]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/mod.rs
Move generic arg / param validation to `create_substs_for_generic_args`
[rust.git] / src / librustc_typeck / check / mod.rs
index 4f6eb20e6ebbd77e0f4702f3cb8ea27426adc603..989f98682f93e31d16205d43217afce3686054ef 100644 (file)
@@ -5520,6 +5520,7 @@ pub fn instantiate_value_path(
                 &[][..],
                 has_self,
                 self_ty,
+                !infer_args_for_err.is_empty(),
                 // Provide the generic args, and whether types should be inferred.
                 |def_id| {
                     if let Some(&PathSeg(_, index)) =