diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-12-16 01:52:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-16 01:52:23 +0800 |
| commit | 56545cae6938012c1a6bef9996395b6aa7222d05 (patch) | |
| tree | 6a8f51c9d5bd68d8804eec8a55bb0997c7e79402 /compiler/rustc_expand/src/errors.rs | |
| parent | b5602cff44997a094dce29d846f9917aaffbe75d (diff) | |
| parent | 291c519c6966bb18e13d66a4283380ced339c49f (diff) | |
| download | rust-56545cae6938012c1a6bef9996395b6aa7222d05.tar.gz rust-56545cae6938012c1a6bef9996395b6aa7222d05.zip | |
Rollup merge of #134339 - Urgau:tcx-in-early-diag, r=jieyouxu
Pass `TyCtxt` to early diagostics decoration This PR pass a `TyCtxt` to the early diagnostics decoration code so that diagnostics code that take advantage of (a very limited but still useful) `TyCtxt` in their note, help, suggestions, ... This is particulary useful for #133221 which wants to get the crate name of a `DefId`, which is possible with `tcx.crate_name(...)`. I highly recommend reviewing this PR commit by commit. r? `@jieyouxu`
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
