diff options
| author | Rejyr <jerrylwang123@gmail.com> | 2022-08-19 15:50:38 -0400 |
|---|---|---|
| committer | Rejyr <jerrylwang123@gmail.com> | 2022-08-22 08:24:14 -0400 |
| commit | d197c1eb5bee2d4c2c27c895f5e496df935ccbd0 (patch) | |
| tree | 636ddf3309e14e8693a7d5e51e9842c75da39382 /compiler/rustc_lint/src/errors.rs | |
| parent | ee8c31e64d229cac4eba6d8f03bb70e16f34a14b (diff) | |
| download | rust-d197c1eb5bee2d4c2c27c895f5e496df935ccbd0.tar.gz rust-d197c1eb5bee2d4c2c27c895f5e496df935ccbd0.zip | |
migrate: `UnknownTool` error to `SessionDiagnostic`
Diffstat (limited to 'compiler/rustc_lint/src/errors.rs')
| -rw-r--r-- | compiler/rustc_lint/src/errors.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/errors.rs b/compiler/rustc_lint/src/errors.rs new file mode 100644 index 00000000000..3f4d856a1cc --- /dev/null +++ b/compiler/rustc_lint/src/errors.rs @@ -0,0 +1,13 @@ +use rustc_macros::SessionDiagnostic; +use rustc_span::Span; + +#[derive(SessionDiagnostic)] +#[error(lint::unknown_tool, code = "E0710")] +pub struct UnknownTool { + #[primary_span] + pub span: Option<Span>, + pub tool_name: String, + pub lint_name: String, + #[help] + pub is_nightly_build: Option<()>, +} |
