diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-07-03 17:49:13 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-08-30 19:05:42 +0200 |
| commit | d330dc8c115f375eb99f33261cdcba581b5a89a9 (patch) | |
| tree | ae3a520ae154f3ab2216d75f903a0c5e8165db2f | |
| parent | 30ae64e51fae5bfbe93199dd1795207444d9931f (diff) | |
| download | rust-d330dc8c115f375eb99f33261cdcba581b5a89a9.tar.gz rust-d330dc8c115f375eb99f33261cdcba581b5a89a9.zip | |
Fix the panic message.
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/table.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/table.rs b/compiler/rustc_metadata/src/rmeta/table.rs index 9f88aeec921..4e95561cfc0 100644 --- a/compiler/rustc_metadata/src/rmeta/table.rs +++ b/compiler/rustc_metadata/src/rmeta/table.rs @@ -51,7 +51,7 @@ macro_rules! fixed_size_enum { } match b[0] - 1 { $(${index()} => Some($($pat)*),)* - _ => panic!("Unexpected ImplPolarity code: {:?}", b[0]), + _ => panic!("Unexpected {} code: {:?}", stringify!($ty), b[0]), } } |
