mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-23 21:54:16 +00:00
remove `Ty::is_copy_modulo_regions` Using these functions is likely incorrect if an `InferCtxt` is available, I moved this function to `TyCtxt` (and added it to `LateContext`) and added a note to the documentation that one should prefer `Infer::type_is_copy_modulo_regions` instead. I didn't yet move `is_sized` and `is_freeze`, though I think we should move these as well. r? `@compiler-errors` cc #132279
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.