mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
9aace67235
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. |
||
---|---|---|
.. | ||
check_abi.rs | ||
check_allocation.rs | ||
check_defs.rs | ||
check_instance.rs | ||
check_item_kind.rs | ||
check_trait_queries.rs | ||
check_ty_fold.rs | ||
compilation-result.rs | ||
crate-info.rs | ||
projections.rs | ||
smir_internal.rs | ||
smir_visitor.rs |