about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/callbacks.rs
AgeCommit message (Collapse)AuthorLines
2025-03-14Represent diagnostic side effects as dep nodesJohn Kåre Alsaker-3/+2
2024-08-24Do not call source_span when not tracking dependencies.Camille GILLOT-5/+13
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-03-01Give `TRACK_DIAGNOSTIC` a return value.Nicholas Nethercote-5/+5
This means `DiagCtxtInner::emit_diagnostic` can return its result directly, rather than having to modify a local variable.
2024-02-28Rename `Diagnostic` as `DiagInner`.Nicholas Nethercote-2/+2
I started by changing it to `DiagData`, but that didn't feel right. `DiagInner` felt much better.
2024-01-11Rename `TRACK_DIAGNOSTICS` as `TRACK_DIAGNOSTIC`.Nicholas Nethercote-2/+2
Because the values put into it are functions named `track_diagnostic` and `default_track_diagnostic`.
2024-01-08Remove `{DiagCtxt,DiagCtxtInner}::emit_diagnostic_without_consuming`.Nicholas Nethercote-1/+1
They are no longer used, because `{DiagCtxt,DiagCtxtInner}::emit_diagnostic` are used everywhere instead. This also means `track_diagnostic` can become consuming.
2023-10-30Remove an unnecessary `drop`.Nicholas Nethercote-3/+1
2023-10-28Fix a comment.Nicholas Nethercote-1/+1
2023-09-21Move `DepKind` to `rustc_query_system` and define it as `u16`John Kåre Alsaker-1/+42
2023-02-09Simplify `tls::enter_context`.Nicholas Nethercote-1/+1
2022-12-25Ignore span references from diagnostics.Camille GILLOT-2/+11
The diagnostics are replayed at the correct place anyway.
2022-05-23typoTshepang Lekhonkhobe-1/+1
2022-02-12Remove SPAN_DEBUG globalbjorn3-14/+1
The only difference between the default and rustc_interface set version is that the default accesses the source map from SESSION_GLOBALS while the rustc_interface version accesses the source map from the global TyCtxt. SESSION_GLOBALS is always set while running the compiler while the global TyCtxt is not always set. If the global TyCtxt is set, it's source map is identical to the one in SESSION_GLOBALS
2021-10-01Fix clippy lintsGuillaume Gomez-1/+1
2021-09-10Add sanity check.Camille GILLOT-1/+3
We force the relative span's parent to be absolute. This avoids having to handle long dependency chains.
2021-09-10Track span dependency using a callback.Camille GILLOT-0/+9
2021-04-07Fix outdated crate names in `rustc_interface::callbacks`pierwill-7/+7
2020-08-30mv compiler to compiler/mark-0/+61