Include kind in bug!
Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com>
This commit is contained in:
parent
fd76d236e4
commit
56f87efa2c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user