This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 4af886f
committed
Auto merge of rust-lang#116731 - Alexendoo:hash-untracked-state, r=oli-obk
Add `Config::hash_untracked_state` callback
For context, I'm looking to use [late module passes](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/context/struct.LintStore.html#structfield.late_module_passes) in Clippy which unlike regular late passes run incrementally per module
However we have a config file which can change between runs, we need changes to that to invalidate the `lint_mod` query. This PR adds a side channel for us to hash some extra state into `Options` in order to do that
This does not make any changes to Clippy, I plan to do that in a PR to the Clippy repo along with some other required changes
An alternative implementation would be to add a new query to track this state and override the `lint_mod` query in Clippy to first call that
cc `@rust-lang/clippy`File tree
7 files changed
+28
-7
lines changed- compiler
- rustc_driver_impl/src
- rustc_interface/src
- rustc_session/src
- src/librustdoc
- tests/run-make-fulldeps/issue-19371
7 files changed
+28
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
263 | 270 | | |
264 | 271 | | |
265 | 272 | | |
| |||
269 | 276 | | |
270 | 277 | | |
271 | 278 | | |
272 | | - | |
273 | | - | |
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
| |||
330 | 335 | | |
331 | 336 | | |
332 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
333 | 344 | | |
334 | 345 | | |
335 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
| 1050 | + | |
1050 | 1051 | | |
1051 | 1052 | | |
1052 | 1053 | | |
| |||
2889 | 2890 | | |
2890 | 2891 | | |
2891 | 2892 | | |
| 2893 | + | |
2892 | 2894 | | |
2893 | 2895 | | |
2894 | 2896 | | |
| |||
3167 | 3169 | | |
3168 | 3170 | | |
3169 | 3171 | | |
3170 | | - | |
3171 | 3172 | | |
3172 | 3173 | | |
3173 | 3174 | | |
3174 | | - | |
| 3175 | + | |
3175 | 3176 | | |
3176 | 3177 | | |
3177 | 3178 | | |
3178 | 3179 | | |
3179 | 3180 | | |
3180 | | - | |
| 3181 | + | |
| 3182 | + | |
3181 | 3183 | | |
3182 | 3184 | | |
3183 | 3185 | | |
| |||
3233 | 3235 | | |
3234 | 3236 | | |
3235 | 3237 | | |
| 3238 | + | |
3236 | 3239 | | |
3237 | 3240 | | |
3238 | 3241 | | |
| |||
3247 | 3250 | | |
3248 | 3251 | | |
3249 | 3252 | | |
3250 | | - | |
3251 | 3253 | | |
3252 | 3254 | | |
3253 | 3255 | | |
3254 | 3256 | | |
3255 | 3257 | | |
3256 | 3258 | | |
3257 | | - | |
3258 | 3259 | | |
3259 | 3260 | | |
3260 | 3261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments