about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/hir.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-03-12 13:45:48 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-03-17 08:20:56 +1100
commit6698c26b3ab9ef90a31af1afc367bab3a359563c (patch)
tree310698ee546a736a51d4833ea129098fbef9f694 /compiler/rustc_hir/src/hir.rs
parent8b87fefd76665236a304d3c0998e1021710ce1b0 (diff)
downloadrust-6698c26b3ab9ef90a31af1afc367bab3a359563c.tar.gz
rust-6698c26b3ab9ef90a31af1afc367bab3a359563c.zip
Fix `is_relevant_impl`.
It determines if a function should have any `inline` attributes checked.
For `ItemKind::Fn` it returns true or false depending on the details of
the function; for anything other item kind it returns *true*. This
latter case should instead be *false*. (In the nearby and similar
functions `is_relevant_impl` and `is_relevant_trait` the non-function
cases return false.)

The effect of this is that non-functions are no longer checked. But
rustc already disallows `inline` on any non-function items. So if
anything its a tiny performance win, because that was useless anyway.
Diffstat (limited to 'compiler/rustc_hir/src/hir.rs')
0 files changed, 0 insertions, 0 deletions