Pretty print pattern type values with transmute if they don't satisfy their pattern

This commit is contained in:
Oli Scherer
2025-01-29 09:20:53 +00:00
parent 8df89d1cb0
commit ab3115990d
7 changed files with 51 additions and 16 deletions

View File

@@ -98,6 +98,10 @@ declare_hooks! {
hook save_dep_graph() -> ();
hook query_key_hash_verify_all() -> ();
/// Ensure the given scalar is valid for the given type.
/// This checks non-recursive runtime validity.
hook validate_scalar_in_layout(scalar: crate::ty::ScalarInt, ty: Ty<'tcx>) -> bool;
}
#[cold]