rust/compiler/rustc_middle/src/ty
Arpad Borsos 3a75f10af1
Improve pretty-printing of HirIdValidator errors
This now uses `node_to_string` for both missing and seen Ids, which includes
the snippet of code for which the Id was allocated.
Also removes the duplicated printing of `HirId`, as `node_to_string` includes that already.
Similarly, changes all other users of `node_to_string` that do so, and changes the output of `node_to_string`, which is now "$hirid ($what `$span` in $path)".
2023-02-01 20:09:22 +01:00
..
consts rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
context Use strict provenance APIs in ty::tls 2023-01-21 11:25:21 +01:00
inhabitedness Combine projection and opaque into alias 2022-12-13 17:48:55 +00:00
print Rollup merge of #107486 - compiler-errors:bound-ty-keep-name, r=oli-obk 2023-01-31 23:38:52 +01:00
_match.rs Reuse ErrorGuaranteed during relation 2023-01-11 20:02:43 +00:00
abstract_const.rs Make expand_abstract_consts infallible 2022-11-25 09:28:44 +00:00
adjustment.rs Let mk_fn_def take an iterator instead to simplify some call sites 2022-12-14 15:36:39 +00:00
adt.rs Impl HashStable/Encodable/Decodable for ObligationCause. 2023-01-27 18:56:32 +00:00
assoc.rs change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata 2023-01-26 20:28:25 -07:00
binding.rs Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
cast.rs Remove mir::CastKind::Misc 2022-10-06 15:32:41 +03:00
closure.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
codec.rs Impl HashStable/Encodable/Decodable for ObligationCause. 2023-01-27 18:56:32 +00:00
consts.rs change const_param_default query to return EarlyBinder; remove bound_const_param_default query; add EarlyBinder to const_param_default in metadata 2023-01-14 00:13:07 -07:00
context.rs Improve pretty-printing of HirIdValidator errors 2023-02-01 20:09:22 +01:00
diagnostics.rs Rollup merge of #106753 - compiler-errors:rpitit-not-suggestable, r=spastorino 2023-01-18 18:00:28 -05:00
erase_regions.rs Add type flags support for Ty and Const late-bound regions 2023-01-08 03:37:20 +00:00
error.rs Fix unquoted projection types in label 2023-01-30 22:02:30 +00:00
fast_reject.rs Introduce GeneratorWitnessMIR. 2023-01-27 18:58:44 +00:00
flags.rs Introduce GeneratorWitnessMIR. 2023-01-27 18:58:44 +00:00
fold.rs Track bound types like bound regions 2023-01-30 22:18:20 +00:00
generics.rs instantiate_own doesn't need to return a pair of vectors 2023-01-15 15:29:53 +00:00
impls_ty.rs interpret: support for per-byte provenance 2022-11-06 14:17:10 +01:00
instance.rs change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata 2023-01-26 20:28:25 -07:00
layout.rs Introduce GeneratorWitnessMIR. 2023-01-27 18:58:44 +00:00
list.rs add List::as_slice 2022-08-17 11:22:47 +02:00
mod.rs Track bound types like bound regions 2023-01-30 22:18:20 +00:00
normalize_erasing_regions.rs mir constants: type traversing bye bye 2022-10-17 10:54:01 +02:00
opaque_types.rs Introduce GeneratorWitnessMIR. 2023-01-27 18:58:44 +00:00
parameterized.rs Separate witness type computation from the generator transform. 2023-01-27 19:00:26 +00:00
query.rs Remove HirId -> LocalDefId map from HIR. 2023-01-28 09:55:26 +00:00
relate.rs Rollup merge of #107339 - aliemjay:covariant, r=lcnr 2023-01-28 05:20:18 +01:00
rvalue_scopes.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
structural_impls.rs Track bound types like bound regions 2023-01-30 22:18:20 +00:00
sty.rs Track bound types like bound regions 2023-01-30 22:18:20 +00:00
subst.rs add EarlyBinder::no_bound_vars 2023-01-26 20:28:31 -07:00
trait_def.rs Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
typeck_results.rs Improve pretty-printing of HirIdValidator errors 2023-02-01 20:09:22 +01:00
util.rs Restrict amount of ignored locals. 2023-01-27 22:01:12 +00:00
visit.rs Introduce GeneratorWitnessMIR. 2023-01-27 18:58:44 +00:00
vtable.rs avoid .into() conversion to identical types 2022-12-18 16:20:32 +01:00
walk.rs Introduce GeneratorWitnessMIR. 2023-01-27 18:58:44 +00:00