We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bug!
1 parent fd76d23 commit 56f87efCopy full SHA for 56f87ef
src/librustc_typeck/astconv.rs
@@ -491,7 +491,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
491
"constant" => ParamKindOrd::Const,
492
// It's more concise to match on the string representation, though it means
493
// the match is non-exhaustive.
494
- _ => bug!("invalid generic parameter kind"),
+ _ => bug!("invalid generic parameter kind {}", kind),
495
};
496
let arg_ord = match arg {
497
GenericArg::Lifetime(_) => ParamKindOrd::Lifetime,
0 commit comments