| Age | Commit message (Collapse) | Author | Lines |
|
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
|
|
This means `DiagCtxtInner::emit_diagnostic` can return its result
directly, rather than having to modify a local variable.
|
|
I started by changing it to `DiagData`, but that didn't feel right.
`DiagInner` felt much better.
|
|
Because the values put into it are functions named `track_diagnostic`
and `default_track_diagnostic`.
|
|
They are no longer used, because
`{DiagCtxt,DiagCtxtInner}::emit_diagnostic` are used everywhere instead.
This also means `track_diagnostic` can become consuming.
|
|
|
|
|
|
|
|
|
|
The diagnostics are replayed at the correct place anyway.
|
|
|
|
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
|
|
|
|
We force the relative span's parent to be absolute. This avoids having to
handle long dependency chains.
|
|
|
|
|
|
|