about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-11-20 23:31:36 +0100
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-11-20 23:31:36 +0100
commitc85af74fcd5434e22790047b067120b8aba179d5 (patch)
tree188dad6eceb32705aaf563a4a6dd506581917adc /compiler/rustc_resolve/src
parent34ea5d02ddaacfedd2d60460bf080b988b941d94 (diff)
downloadrust-c85af74fcd5434e22790047b067120b8aba179d5.tar.gz
rust-c85af74fcd5434e22790047b067120b8aba179d5.zip
update bug message for cg
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
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"
                         );
                     }
                 }