rust/compiler/rustc_middle/src/ty
Matthias Krüger a72d6c114b
Rollup merge of #120128 - oli-obk:smir_internal_lift, r=celinval
Make stable_mir::with_tables sound

See the first commit for the actual soundness fix. The rest is just fallout from that and is entirely safe code. Includes most of #120120

The major difference to #120120 is that we don't need an unsafe trait, as we can now rely on the type system (the only unsafe part, and the actual source of the unsoundness was in `with_tables`)

r? `@celinval`
2024-01-21 12:28:52 +01:00
..
consts Annotate some more bugs 2023-12-15 14:45:06 +00:00
context Don't leak the function that is called on drop 2023-05-23 14:53:36 +00:00
inhabitedness Reveal empty opaques in depth 2023-12-23 14:59:12 +01:00
print Use FnOnceOutput instead of FnOnce where expected 2024-01-17 14:23:41 +00:00
_match.rs Remove param env from relation altogether 2023-12-19 17:13:10 +00: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 Update to bitflags 2 in the compiler 2023-12-30 18:17:28 +01:00
assoc.rs use visibility to check unused imports and delete some stmts 2023-10-22 21:27:46 +08: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 is_coroutine -> is_coroutine_or_closure 2023-12-30 15:24:15 +00:00
codec.rs ctfe interpreter: extend provenance so that it can track whether a pointer is immutable 2023-12-07 17:46:36 +01:00
consts.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
context.rs Fix Stable trait and its impls to work with the new with_tables 2024-01-19 09:42:51 +00:00
diagnostics.rs Remove an unused diagnostic struct 2023-12-23 15:02:03 +00:00
erase_regions.rs rename ReLateBound to ReBound 2023-11-13 14:13:54 +00:00
error.rs Tweak short_ty_string to reduce number of files 2023-12-13 23:07:10 +00:00
fast_reject.rs Register even erroneous impls 2024-01-11 20:34:59 +00:00
flags.rs Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +00:00
fold.rs rename bound region instantiation 2023-11-17 09:29:48 +00:00
generic_args.rs remove redundant imports 2023-12-10 10:56:22 +08:00
generics.rs rename to verbose-internals 2023-12-19 13:35:37 -05:00
impls_ty.rs ctfe interpreter: extend provenance so that it can track whether a pointer is immutable 2023-12-07 17:46:36 +01:00
instance.rs fix OOM when ty::Instance is used in query description 2024-01-05 21:55:29 +01:00
layout.rs Add DiagCtxt::delayed_bug. 2024-01-10 07:33:07 +11:00
list.rs Remove redundant type parameter 2023-10-23 16:02:05 -04:00
mod.rs Improved collapse_debuginfo attribute, added command-line flag (no|external|yes) 2024-01-17 23:18:14 +07:00
normalize_erasing_regions.rs rename bound region instantiation 2023-11-17 09:29:48 +00:00
opaque_types.rs Rename consuming chaining methods on DiagnosticBuilder. 2024-01-10 07:40:00 +11:00
parameterized.rs Make iteration order of collect_return_position_impl_trait_in_trait_tys query stable 2024-01-04 13:48:57 +01:00
relate.rs Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +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 Implement TypeVisitable and TypeFoldable for Spanned 2024-01-15 19:07:11 +01:00
sty.rs Simplify some redundant names 2024-01-10 16:29:23 +00:00
trait_def.rs Make crate_inherent_impls fallible and stop using track_errors for it 2024-01-17 10:02:29 +00:00
typeck_results.rs Split StableCompare trait out of StableOrd trait. 2024-01-04 13:32:42 +01:00
util.rs Rollup merge of #119969 - compiler-errors:simplify-closure-env-ty, r=oli-obk 2024-01-16 17:55:23 +01:00
visit.rs Remove more Session methods that duplicate DiagCtxt methods. 2023-12-24 08:17:47 +11:00
vtable.rs make it more clear which functions create fresh AllocId 2023-09-14 07:27:31 +02:00
walk.rs Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +00:00