From 56f87efa2c587539ea1e7f22e2feff5107429aae Mon Sep 17 00:00:00 2001 From: Camelid <37223377+camelid@users.noreply.github.com> Date: Mon, 1 Jun 2020 13:01:01 -0700 Subject: [PATCH] Include kind in `bug!` Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com> --- src/librustc_typeck/astconv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs index 7173ed3d24ec..f1dc7e539062 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,