about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-01-13 04:44:58 +0000
committerTrevor Gross <tmgross@umich.edu>2025-01-14 08:51:19 +0000
commit2da9accab989b8640c7b345371b08886e9332f7e (patch)
tree6289be7e4938a35f59ebf5381d2657366295c829 /compiler/rustc_interface/src/errors.rs
parent9c3425376243966476d07d4a35a87ff228fb890b (diff)
downloadrust-2da9accab989b8640c7b345371b08886e9332f7e.tar.gz
rust-2da9accab989b8640c7b345371b08886e9332f7e.zip
Add `tcx.visible_traits()` and use it for producing diagnostics
Add an alternative to `tcx.all_traits()` that only shows traits that the
user might be able to use, for diagnostic purposes. With this available,
make use of it for diagnostics including associated type errors, which
is part of the problem with [1].

Includes a few comment updates for related API.

[1]: https://github.com/rust-lang/rust/issues/135232
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions