1
Fork 0
rust/compiler/rustc_driver_impl/src
bors 4af886f8ab Auto merge of #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`
2023-10-16 16:33:42 +00:00
..
args.rs Provide more context for rustc +nightly -Zunstable-options on stable 2023-06-27 23:23:33 +08:00
lib.rs Auto merge of #116731 - Alexendoo:hash-untracked-state, r=oli-obk 2023-10-16 16:33:42 +00:00
pretty.rs Split and rename the annotation structs. 2023-10-13 06:35:19 +11:00
print.rs Fix ICE on --print=... i/o errors 2023-04-25 08:17:18 -07:00
session_diagnostics.rs rustc_driver: avoid fallible conversions 2023-10-06 08:54:14 -04:00
signal_handler.rs Clarify arbitrary constants 2023-07-19 00:22:04 -07:00