]> git.lizzy.rs Git - rust.git/commitdiff
Fix subst error for consts in astconv
authorvarkor <github@varkor.com>
Fri, 3 May 2019 13:42:04 +0000 (14:42 +0100)
committervarkor <github@varkor.com>
Sat, 4 May 2019 13:39:43 +0000 (14:39 +0100)
src/librustc_typeck/astconv.rs

index 4932d77ef04772dad371e3835fb7c47e599fee55..16033c6c50fd0c91c143eac552b20aaeb20e5c5f 100644 (file)
@@ -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()
                     }
                 }
             },