rust/compiler/rustc_middle/src/ty
Matthias Krüger cb140dcb00
Rollup merge of #131473 - workingjubilee:move-that-abi-up, r=saethlin
compiler: `{TyAnd,}Layout` comes home

The `Layout` and `TyAndLayout` types are heavily abstract and have no particular target-specific qualities, though we do use them to answer questions particular to targets. We can keep it that way if we simply move them out of `rustc_target` and into `rustc_abi`. They bring a small entourage of connected types with them, but that's fine.

This will allow us to strengthen a few abstraction barriers over time and thus make the notoriously gnarly layout code easier to refactor. For now, we don't need to worry about that and deliberately use reexports to minimize this particular diff.
2024-10-14 06:04:28 +02:00
..
consts Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
context Reformat use declarations. 2024-07-29 08:26:52 +10:00
inhabitedness Non-exhaustive structs may be empty 2024-09-02 21:16:37 +02:00
print Improve const traits diagnostics for new desugaring 2024-10-02 19:45:17 +08:00
abstract_const.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
adjustment.rs Use wide pointers consistenly across the compiler 2024-10-04 14:06:48 +02:00
adt.rs Remove unnamed field feature 2024-10-01 13:55:46 -04:00
assoc.rs Differentiate between methods and associated functions 2024-08-10 00:54:16 +00:00
cast.rs unify dyn* coercions with other pointer coercions 2024-09-24 22:17:55 +02:00
closure.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
codec.rs const-eval interning: accpt interior mutable pointers in final value (but keep rejecting mutable references) 2024-09-10 10:26:16 +02:00
consts.rs make InterpResult a dedicated type to avoid accidentally discarding the error 2024-10-01 21:45:35 +02:00
context.rs compiler: Wire {TyAnd,}Layout into rustc_abi 2024-10-11 17:41:52 -07:00
diagnostics.rs remove a couple of redundant String to String conversion 2024-10-12 22:07:46 +02:00
elaborate_impl.rs Uplift elaboration 2024-07-07 11:28:01 -04:00
erase_regions.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
error.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
fast_reject.rs Use DeepRejectCtxt to quickly reject ParamEnv candidates 2024-09-02 19:59:18 +03:00
flags.rs Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
fold.rs review 2024-10-02 14:49:36 +02:00
generic_args.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
generics.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
impls_ty.rs const-eval interning: accpt interior mutable pointers in final value (but keep rejecting mutable references) 2024-09-10 10:26:16 +02:00
instance.rs Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
intrinsic.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
layout.rs compiler: Factor rustc_target::abi::* out of middle::ty::layout 2024-10-08 18:14:48 -07:00
list.rs Use &raw in the compiler 2024-09-26 20:33:26 -07:00
mod.rs Auto merge of #131045 - compiler-errors:remove-unnamed_fields, r=wesleywiser 2024-10-11 13:11:13 +00:00
normalize_erasing_regions.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
opaque_types.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
parameterized.rs Revert "Auto merge of #127537 - veluca93:struct_tf, r=BoxyUwU" 2024-09-01 16:35:53 +02:00
pattern.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
predicate.rs Elaborate supertrait span correctly to label the error better 2024-10-04 17:15:28 -04:00
region.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
relate.rs Simplify two matches. 2024-10-07 09:50:51 +11:00
rvalue_scopes.rs rescope temp lifetime in let-chain into IfElse 2024-09-11 04:10:00 +08:00
structural_impls.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
sty.rs Auto merge of #129244 - cjgillot:opaque-hir, r=compiler-errors 2024-10-05 06:19:35 +00:00
trait_def.rs Separate collection of crate-local inherent impls from error reporting 2024-09-24 10:12:05 -04:00
typeck_results.rs Remove unnamed field feature 2024-10-01 13:55:46 -04:00
util.rs Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
visit.rs Handle rustc-hir-analysis cases of rustc::potential_query_instability lint 2024-10-02 08:28:45 +03:00
vtable.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
walk.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00