rust/compiler/rustc_lint
Matthias Krüger 931d9f099a
Rollup merge of #113811 - jieyouxu:fix-unused-qualifications-suggestion, r=oli-obk
Fix removal span calculation of `unused_qualifications` suggestion

Given a path such as `std::ops::Index<str>`, calculate the unnecessary qualification removal span by computing the beginning of the entire span until the ident span of the last path segment, which handles generic arguments and lifetime arguments in the last path segment. Previous logic only kept the ident span of the last path segment which is incorrect.

Closes #113808.
2023-07-18 19:06:02 +02:00
..
src Rollup merge of #113811 - jieyouxu:fix-unused-qualifications-suggestion, r=oli-obk 2023-07-18 19:06:02 +02:00
Cargo.toml Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
messages.ftl Uplift clippy::fn_null_check to rustc 2023-07-10 18:12:41 +02:00