diff options
| author | bors <bors@rust-lang.org> | 2023-01-31 10:20:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-31 10:20:58 +0000 |
| commit | a64ef7d07d0411315be85a646586cb85eeb9c136 (patch) | |
| tree | e4b006e2f97095541ee5ff8b1beab16675e5eb86 /compiler/rustc_passes/src/errors.rs | |
| parent | 7c4a9a971ca6962533bed01ffbd0c1f6b5250abc (diff) | |
| parent | 2ff46641a92c27a32db3e0dc94ae86295e6c3277 (diff) | |
Auto merge of #100754 - davidtwco:translation-incremental, r=compiler-errors
incremental: migrate diagnostics - Apply the diagnostic migration lints to more functions on `Session`, namely: `span_warn`, `span_warn_with_code`, `warn` `note_without_error`, `span_note_without_error`, `struct_note_without_error`. - Add impls of `IntoDiagnosticArg` for `std::io::Error`, `std::path::Path` and `std::path::PathBuf`. - Migrate the `rustc_incremental` crate's diagnostics to translatable diagnostic structs. r? `@compiler-errors` cc #100717
Diffstat (limited to 'compiler/rustc_passes/src/errors.rs')
| -rw-r--r-- | compiler/rustc_passes/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/errors.rs b/compiler/rustc_passes/src/errors.rs index 9e05ad22e62..97169a6367c 100644 --- a/compiler/rustc_passes/src/errors.rs +++ b/compiler/rustc_passes/src/errors.rs @@ -1565,3 +1565,10 @@ pub(crate) struct ProcMacroUnsafe { #[primary_span] pub span: Span, } + +#[derive(Diagnostic)] +#[diag(passes_skipping_const_checks)] +pub struct SkippingConstChecks { + #[primary_span] + pub span: Span, +} |
