Include kind in bug!

Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com>
This commit is contained in:
Camelid 2020-06-01 13:01:01 -07:00 committed by GitHub
parent fd76d236e4
commit 56f87efa2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,