rust/compiler/rustc_middle/src/ty
bors 959b2c703d Auto merge of #115696 - RalfJung:closure-ty-print, r=oli-obk
adjust how closure/generator types are printed

I saw `&[closure@$DIR/issue-20862.rs:2:5]` and I thought it is a slice type, because that's usually what `&[_]` is... it took me a while to realize that this is just a confusing printer and actually there's no slice. Let's use something that cannot be mistaken for a regular type.
2023-09-22 15:19:38 +00:00
..
consts Remove unused Lift derives. 2023-09-18 09:37:10 +10:00
context Don't leak the function that is called on drop 2023-05-23 14:53:36 +00:00
inhabitedness refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
print adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
_match.rs Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
abstract_const.rs Remove more unused Lift impls. 2023-09-18 09:37:10 +10:00
adjustment.rs Remove unused Lift derives. 2023-09-18 09:37:10 +10:00
adt.rs move required_consts check to general post-mono-check function 2023-09-14 22:30:42 +02:00
assoc.rs Rollup merge of #113698 - compiler-errors:rpitit-check, r=spastorino 2023-07-14 19:33:29 +02:00
binding.rs Remove more unused Lift impls. 2023-09-18 09:37:10 +10:00
cast.rs Remove mir::CastKind::Misc 2022-10-06 15:32:41 +03:00
closure.rs Migrate a trait selection error to use diagnostic translation 2023-08-07 05:26:38 +00:00
codec.rs Remove constness from ParamEnv 2023-07-27 15:50:42 +00:00
consts.rs the Const::eval_bits methods don't need to be given the Ty 2023-09-20 07:27:21 +02:00
context.rs make more pretty 2023-09-18 17:29:13 +01:00
diagnostics.rs treat host effect params as erased generics in codegen 2023-09-14 07:34:35 +00:00
erase_regions.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
error.rs Remove unused Lift derives. 2023-09-18 09:37:10 +10:00
fast_reject.rs add FIXME 2023-07-20 11:05:52 +02:00
flags.rs Properly consider binder vars in HasTypeFlagsVisitor 2023-09-14 03:49:59 +00:00
fold.rs Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
generic_args.rs Remove unused Lift derives. 2023-09-18 09:37:10 +10:00
generics.rs treat host effect params as erased generics in codegen 2023-09-14 07:34:35 +00:00
impls_ty.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
instance.rs Remove unused Lift derives. 2023-09-18 09:37:10 +10:00
layout.rs rustc_target/riscv: Fix passing of transparent unions with only one non-ZST member 2023-09-19 12:06:33 +02:00
list.rs Add a new trait to Debug things with an infcx available 2023-07-06 11:36:39 +01:00
mod.rs Record asyncness span in HIR 2023-09-21 19:18:14 +00:00
normalize_erasing_regions.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
opaque_types.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
parameterized.rs Record asyncness span in HIR 2023-09-21 19:18:14 +00:00
relate.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
rvalue_scopes.rs Enable potential_query_instability lint in rustc_hir_typeck. 2023-07-14 10:10:14 +02:00
structural_impls.rs coverage: Don't bother renumbering expressions on the Rust side 2023-09-21 18:32:49 +10:00
sty.rs Auto merge of #115696 - RalfJung:closure-ty-print, r=oli-obk 2023-09-22 15:19:38 +00:00
trait_def.rs Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
typeck_results.rs Remove unused Lift derives. 2023-09-18 09:37:10 +10:00
util.rs Store the laziness of type aliases in the DefKind 2023-08-07 15:54:31 +02:00
visit.rs Properly consider binder vars in HasTypeFlagsVisitor 2023-09-14 03:49:59 +00:00
vtable.rs make it more clear which functions create fresh AllocId 2023-09-14 07:27:31 +02:00
walk.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00