diff options
| author | Rejyr <jerrylwang123@gmail.com> | 2022-08-20 12:11:07 -0400 |
|---|---|---|
| committer | Rejyr <jerrylwang123@gmail.com> | 2022-08-22 08:24:14 -0400 |
| commit | 5d302d11483a7313742d24e024928a37268ed4bd (patch) | |
| tree | 2c2a7592b2e25bebd1c057dc8279d0eaedf1e7c2 /compiler/rustc_lint/src/errors.rs | |
| parent | 7a6ae2367d3b3442a7ae36e53551b58a9ece7155 (diff) | |
| download | rust-5d302d11483a7313742d24e024928a37268ed4bd.tar.gz rust-5d302d11483a7313742d24e024928a37268ed4bd.zip | |
migrate: `BuiltinEllipsisInclusiveRangePatterns`
Diffstat (limited to 'compiler/rustc_lint/src/errors.rs')
| -rw-r--r-- | compiler/rustc_lint/src/errors.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/errors.rs b/compiler/rustc_lint/src/errors.rs index bb4e23e29e7..569f68bd5e5 100644 --- a/compiler/rustc_lint/src/errors.rs +++ b/compiler/rustc_lint/src/errors.rs @@ -70,3 +70,13 @@ pub struct UnknownTool { #[help] pub is_nightly_build: Option<()>, } + +#[derive(SessionDiagnostic)] +#[error(lint::builtin_ellipsis_inclusive_range_patterns, code = "E0783")] +pub struct BuiltinEllpisisInclusiveRangePatterns { + #[primary_span] + pub span: Span, + #[suggestion_short(code = "{replace}", applicability = "machine-applicable")] + pub suggestion: Span, + pub replace: String, +} |
