diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-06-16 20:20:39 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-06-22 15:51:14 +0000 |
| commit | 30ff127036b685aca52d121807d13e8e1d2db684 (patch) | |
| tree | 0de2daf3d6f6e686a4f1e9e42eacad18ec8a038b /compiler/rustc_ty_utils/src | |
| parent | d6e1b206238d032a0d13fe66e316664a7c03ded3 (diff) | |
| download | rust-30ff127036b685aca52d121807d13e8e1d2db684.tar.gz rust-30ff127036b685aca52d121807d13e8e1d2db684.zip | |
Re-use error code for duplicate error
Diffstat (limited to 'compiler/rustc_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/errors.rs b/compiler/rustc_ty_utils/src/errors.rs index 553bf40ef3a..947d4bbe86e 100644 --- a/compiler/rustc_ty_utils/src/errors.rs +++ b/compiler/rustc_ty_utils/src/errors.rs @@ -113,7 +113,7 @@ pub struct DuplicateArg<'tcx> { } #[derive(Diagnostic)] -#[diag(ty_utils_impl_trait_not_param)] +#[diag(ty_utils_impl_trait_not_param, code = "E0792")] pub struct NotParam<'tcx> { pub arg: GenericArg<'tcx>, #[primary_span] |
