From c85af74fcd5434e22790047b067120b8aba179d5 Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Fri, 20 Nov 2020 23:31:36 +0100 Subject: [PATCH] update bug message for cg --- compiler/rustc_resolve/src/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index 2cca1a6ee59..67491b5bf7e 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -143,7 +143,7 @@ impl<'a> Resolver<'a> { _ => { bug!( "GenericParamsFromOuterFunction should only be used with Res::SelfTy, \ - DefKind::TyParam" + DefKind::TyParam or DefKind::ConstParam" ); } } -- 2.44.0