rust/compiler/rustc_middle/src/ty
bors 0692db1a90 Auto merge of #115865 - RalfJung:mir-mod, r=oli-obk
move things out of mir/mod.rs

This moves a bunch of things out of `mir/mod.rs`:
- all const-related stuff to a new file consts.rs
- all statement/place/operand-related stuff to a new file statement.rs
- all pretty-printing related stuff to pretty.rs

`mod.rs` started out with 3100 lines and ends up with 1600. :)

Also there was some pretty-printing stuff in terminator.rs, that also got moved to pretty.rs, and I reordered things in pretty.rs so that it can be grouped by functionality.

Only the commit "use pretty_print_const_value from MIR constant 'extra' printing" has any behavior changes; it resolves the issue of having a fancy and a very crude pretty-printer for `ConstValue`.

r? `@oli-obk`
2023-09-19 13:22:48 +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 use pretty_print_const_value from MIR constant 'extra' printing 2023-09-19 11:06:32 +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 move required_consts check to general post-mono-check function 2023-09-14 22:30:42 +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 Don't ICE on layout computation failure 2023-08-28 12:40:39 -07:00
list.rs Add a new trait to Debug things with an infcx available 2023-07-06 11:36:39 +01:00
mod.rs Remove unused Lift derives. 2023-09-18 09:37:10 +10: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 Use u64 for incr comp allocation offsets 2023-07-14 17:03:34 -04: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 Remove more unused Lift impls. 2023-09-18 09:37:10 +10:00
sty.rs Don't resolve generic instances if they may be shadowed by dyn 2023-09-19 05:42:23 +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