]> git.lizzy.rs Git - rust.git/commit
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
authorbors <bors@rust-lang.org>
Fri, 13 Jan 2023 02:13:00 +0000 (02:13 +0000)
committerbors <bors@rust-lang.org>
Fri, 13 Jan 2023 02:13:00 +0000 (02:13 +0000)
commitbfffe406fbcabb37b95779f2d252c4a277191e0d
tree0bc3fd4dae36be369f19ca75aca3c1e45e2b748d
parent86ad69d4c63961b316fdbadd18bc35535f7b128b
parent88e5dd2530a48b046d35402807c4b3bb44775688
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco

Migrate `rustc_lint` lint diagnostics

Part 2 of [Migrate `rustc_lint` errors to `SessionDiagnostic`](https://github.com/rust-lang/rust/pull/100776)

r? `@davidtwco`

# TODO
- [x] Refactor some lints manually implementing `DecorateLint` to use `Option<Subdiagnostic>`.
- [x] Add `#[rustc_lint_diagnostics]` to lint functions in `context.rs`.
- [x] Migrate `hidden_unicode_codepoints.rs`.
- [x] Migrate `UnsafeCode` in `builtin.rs`.
- [x] Migrate the rest of `builtin.rs`.
compiler/rustc_lint/src/early.rs
compiler/rustc_lint/src/types.rs