Commit 41d5aec
authored
Rollup merge of rust-lang#112612 - sginnett:issue-105150, r=compiler-errors
Fix explicit-outlives-requirements lint span
Fixes rust-lang#105150 which caused the span reported by the explicit-outlives-requirements lint to be incorrect when
1) the lint should suggest the entire where clause to be removed and
2) there are inline bounds present that are not inferable outlives requirements
In particular, this would cause rustfix to leave a dangling empty where clause.File tree
4 files changed
+36
-8
lines changed- compiler/rustc_lint/src
- tests/ui/rust-2018
4 files changed
+36
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2124 | 2124 | | |
2125 | 2125 | | |
2126 | 2126 | | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
2127 | 2132 | | |
2128 | 2133 | | |
2129 | 2134 | | |
2130 | 2135 | | |
2131 | | - | |
2132 | | - | |
| 2136 | + | |
2133 | 2137 | | |
2134 | 2138 | | |
2135 | 2139 | | |
| |||
2186 | 2190 | | |
2187 | 2191 | | |
2188 | 2192 | | |
2189 | | - | |
2190 | | - | |
| 2193 | + | |
| 2194 | + | |
2191 | 2195 | | |
2192 | 2196 | | |
2193 | 2197 | | |
| |||
2196 | 2200 | | |
2197 | 2201 | | |
2198 | 2202 | | |
2199 | | - | |
| 2203 | + | |
2200 | 2204 | | |
2201 | 2205 | | |
2202 | 2206 | | |
| |||
2224 | 2228 | | |
2225 | 2229 | | |
2226 | 2230 | | |
2227 | | - | |
| 2231 | + | |
2228 | 2232 | | |
2229 | | - | |
| 2233 | + | |
| 2234 | + | |
2230 | 2235 | | |
2231 | 2236 | | |
2232 | 2237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
804 | 810 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
804 | 812 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
15 | 24 | | |
| |||
922 | 931 | | |
923 | 932 | | |
924 | 933 | | |
925 | | - | |
| 934 | + | |
926 | 935 | | |
0 commit comments