diff options
| author | Camelid <37223377+camelid@users.noreply.github.com> | 2020-06-01 13:01:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-01 13:01:01 -0700 |
| commit | 56f87efa2c587539ea1e7f22e2feff5107429aae (patch) | |
| tree | 48522d269990f970a9e4b085aca0a8bccb08e456 /src | |
| parent | fd76d236e42378d0feaf5df6dbdbd2db89ba0f1f (diff) | |
| download | rust-56f87efa2c587539ea1e7f22e2feff5107429aae.tar.gz rust-56f87efa2c587539ea1e7f22e2feff5107429aae.zip | |
Include kind in `bug!`
Co-authored-by: hafiz <20735482+ayazhafiz@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/astconv.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs index 7173ed3d24e..f1dc7e53906 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, |
