From: varkor Date: Fri, 3 May 2019 13:42:04 +0000 (+0100) Subject: Fix subst error for consts in astconv X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c187f7112059d2ec182dc216c45581328977f097;p=rust.git Fix subst error for consts in astconv --- diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs index 4932d77ef04..16033c6c50f 100644 --- a/src/librustc_typeck/astconv.rs +++ b/src/librustc_typeck/astconv.rs @@ -553,7 +553,7 @@ pub fn create_substs_for_generic_args<'a, 'b>( tcx.intern_substs(&substs) } - /// Given the type/region arguments provided to some path (along with + /// Given the type/lifetime/const arguments provided to some path (along with /// an implicit `Self`, if this is a trait reference) returns the complete /// set of substitutions. This may involve applying defaulted type parameters. /// @@ -678,7 +678,7 @@ fn create_substs_for_ast_path(&self, GenericParamDefKind::Const => { // FIXME(const_generics:defaults) // We've already errored above about the mismatch. - tcx.types.err.into() + tcx.consts.err.into() } } },