about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorWeihang Lo <weihanglo@users.noreply.github.com>2023-08-24 22:53:59 +0100
committerGitHub <noreply@github.com>2023-08-24 22:53:59 +0100
commit1d526692d4b5c3688a9ae9d613298e5160ed8fdb (patch)
tree0809886d0902171c7d9c72b5847d567e5a47bbdc /compiler/rustc_parse/src
parent351445ad4422e95e8569562bd34d9c5477236edc (diff)
parent73152a3efb29807dffeb12456f5aedf79dfb308a (diff)
downloadrust-1d526692d4b5c3688a9ae9d613298e5160ed8fdb.tar.gz
rust-1d526692d4b5c3688a9ae9d613298e5160ed8fdb.zip
Rollup merge of #115152 - weihanglo:lint-refactor, r=compiler-errors
refactor(lint): translate `RenamedOrRemovedLint`

I was trying to address <https://github.com/rust-lang/cargo/issues/12495> and found that maybe I should refactor relevant lints a bit.

This PR translates `RenamedOrRemovedLint` into fluent file. To make diagnostic types clearer and easier to organize, this PR splits it into two structs.

The second commit adds lifetime annotations for removing unnecessary clones. If people feel too noisy, we can revert such change.

### Possibly relevant UI tests:

* `tests/ui/lint-removed*`
* `tests/ui/lint-renamed*`
* `tests/ui/rustdoc-renamed.rs`
* `tests/rustdoc-ui/lints/unknown-renamed-lints.rs`
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions