rust/tests/ui-fulldeps/stable-mir
Celina G. Val 9aace67235 Ensure internal function is safe
The internal function was unsound, it could cause UB in rare cases where
the user inadvertly stored the returned object in a location that could
outlive the TyCtxt.

In order to make it safe, we now take a type context as an argument to
the internal fn, and we ensure that interned items are lifted using the
provided context.

Thus, this change ensures that the compiler can properly enforce
that the object does not outlive the type context it was lifted to.
2024-01-19 10:00:32 +00:00
..
check_abi.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00
check_allocation.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00
check_defs.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00
check_instance.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00
check_item_kind.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00
check_trait_queries.rs Remove tcx function and make internal fn safer 2024-01-16 14:35:18 -08:00
check_ty_fold.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00
compilation-result.rs Remove tcx function and make internal fn safer 2024-01-16 14:35:18 -08:00
crate-info.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00
projections.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00
smir_internal.rs Ensure internal function is safe 2024-01-19 10:00:32 +00:00
smir_visitor.rs Remove tcx from SMIR run macro and accept closures 2024-01-16 11:17:51 -08:00