diff options
| author | bors <bors@rust-lang.org> | 2021-08-07 23:24:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-07 23:24:15 +0000 |
| commit | 798446fe0612dd83a151e99c201b87dd649d4eb3 (patch) | |
| tree | 6e71618e2083ebcfaf354a90db0ba81873082df3 /compiler/rustc_query_impl/src | |
| parent | 574d37568029f5c637557a87426ade54770d9a14 (diff) | |
| parent | 49685377805e9c87d00aa1d8b8cece3de2dc8319 (diff) | |
| download | rust-798446fe0612dd83a151e99c201b87dd649d4eb3.tar.gz rust-798446fe0612dd83a151e99c201b87dd649d4eb3.zip | |
Auto merge of #87772 - npmccallum:naked_abi, r=Amanieu
Move naked function ABI check to its own lint This check was previously categorized under the lint named `UNSUPPORTED_NAKED_FUNCTIONS`. That lint is future incompatible and will be turned into an error in a future release. However, as defined in the Constrained Naked Functions RFC, this check should only be a warning. This is because it is possible for a naked function to be implemented in such a way that it does not break even the undefined ABI. For example, a `jmp` to a `const`. Therefore, this patch defines a new lint named `UNDEFINED_NAKED_FUNCTION_ABI` which contains just this single check. Unlike `UNSUPPORTED_NAKED_FUNCTIONS`, `UNDEFINED_NAKED_FUNCTION_ABI` will not be converted to an error in the future. rust-lang/rfcs#2774 rust-lang/rfcs#2972
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions
