rust/compiler/rustc_session/src
bors 1aeb99d248 Auto merge of #122156 - Zoxc:side-effect-dep-node, r=oli-obk
Represent diagnostic side effects as dep nodes

This changes diagnostic to be tracked as a special dep node (`SideEffect`) instead of having a list of side effects associated with each dep node. `SideEffect` is always red and when forced, it emits the diagnostic and marks itself green. Each emitted diagnostic generates a new `SideEffect` with an unique dep node index.

Some implications of this:

- Diagnostic may now be emitted more than once as they can be emitted once when the `SideEffect` gets marked green and again if the task it depends on needs to be re-executed due to another node being red. It relies on deduplicating of diagnostics to avoid that.

- Anon tasks which emits diagnostics will no longer *incorrectly* be merged with other anon tasks.

- Reusing a CGU will now emit diagnostics from the task generating it.
2025-03-19 15:51:54 +00:00
..
config Rollup merge of #137072 - Urgau:check-cfg-load-builtins-at-once, r=Noratrieb 2025-02-16 17:14:04 +01:00
code_stats.rs Remove print_vtable_sizes 2025-01-30 15:30:04 +00:00
config.rs Rename PrintKind::{AllTargetSpecs,TargetSpec} to {AllTargetSpecsJson,TargetSpecJson} 2025-03-16 21:56:02 +08:00
cstore.rs Update comments 2024-12-19 15:30:32 +00:00
errors.rs Reject macro calls inside of #![crate_name] 2025-02-15 16:47:30 +01:00
filesearch.rs Don't return an error from get_or_default_sysroot 2025-03-12 15:05:25 +00:00
lib.rs Remove #![warn(unreachable_pub)] from all compiler/ crates. 2025-03-11 13:14:21 +11:00
options.rs Auto merge of #122156 - Zoxc:side-effect-dep-node, r=oli-obk 2025-03-19 15:51:54 +00:00
output.rs Reject macro calls inside of #![crate_name] 2025-02-15 16:47:30 +01:00
parse.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
search_paths.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
session.rs Remove unused host_tlib_path field 2025-03-12 15:05:25 +00:00
utils.rs Support raw-dylib link kind on ELF 2025-02-26 19:09:51 +01:00