about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-20 13:24:52 +0200
committerGitHub <noreply@github.com>2024-07-20 13:24:52 +0200
commit9a6f8ccf3aad197b5724e6ba78b30b0d8c98dcc2 (patch)
tree36f15a164394fa4ca44da989730f6b125bdb8e76 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent3a9bfa397dd59eddebb87dba7dc0142bf88184b7 (diff)
parent9b80250abb8ebf9f49f51593aee6a7308e0ac3b4 (diff)
downloadrust-9a6f8ccf3aad197b5724e6ba78b30b0d8c98dcc2.tar.gz
rust-9a6f8ccf3aad197b5724e6ba78b30b0d8c98dcc2.zip
Rollup merge of #127779 - momvart:should_codegen_hook, r=cjgillot
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.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions