mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
9a6f8ccf3a
Add a hook for `should_codegen_locally` This PR lifts the module-local function `should_codegen_locally` to `TyCtxt` as a hook. In addition to monomorphization, this function is used for checking the dependency of `compiler_builtins` on other libraries. Moving this function to the hooks also makes overriding it possible for the tools that use the rustc interface.