about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCamelid <37223377+camelid@users.noreply.github.com>2020-06-01 13:01:01 -0700
committerGitHub <noreply@github.com>2020-06-01 13:01:01 -0700
commit56f87efa2c587539ea1e7f22e2feff5107429aae (patch)
tree48522d269990f970a9e4b085aca0a8bccb08e456 /src
parentfd76d236e42378d0feaf5df6dbdbd2db89ba0f1f (diff)
downloadrust-56f87efa2c587539ea1e7f22e2feff5107429aae.tar.gz
rust-56f87efa2c587539ea1e7f22e2feff5107429aae.zip
Include kind in `bug!`
Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/astconv.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs
index 7173ed3d24e..f1dc7e53906 100644
--- a/src/librustc_typeck/astconv.rs
+++ b/src/librustc_typeck/astconv.rs
@@ -491,7 +491,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
             "constant" => ParamKindOrd::Const,
             // It's more concise to match on the string representation, though it means
             // the match is non-exhaustive.
-            _ => bug!("invalid generic parameter kind"),
+            _ => bug!("invalid generic parameter kind {}", kind),
         };
         let arg_ord = match arg {
             GenericArg::Lifetime(_) => ParamKindOrd::Lifetime,