Skip to content

Commit 56f87ef

Browse files
camelidayazhafiz
andauthored
Include kind in bug!
Co-authored-by: hafiz <[email protected]>
1 parent fd76d23 commit 56f87ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/astconv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
491491
"constant" => ParamKindOrd::Const,
492492
// It's more concise to match on the string representation, though it means
493493
// the match is non-exhaustive.
494-
_ => bug!("invalid generic parameter kind"),
494+
_ => bug!("invalid generic parameter kind {}", kind),
495495
};
496496
let arg_ord = match arg {
497497
GenericArg::Lifetime(_) => ParamKindOrd::Lifetime,

0 commit comments

Comments
 (0)