]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #100754 - davidtwco:translation-incremental, r=compiler-errors
authorbors <bors@rust-lang.org>
Tue, 31 Jan 2023 10:20:58 +0000 (10:20 +0000)
committerbors <bors@rust-lang.org>
Tue, 31 Jan 2023 10:20:58 +0000 (10:20 +0000)
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

1  2 
compiler/rustc_monomorphize/src/partitioning/mod.rs