You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding #[inline] above arbitrary statements does not issue a warning or error.
I found this confusing. I was guessing at a loop unrolling attribute when I discovered this, and thought the lack of warnings/errors meant it might actually unroll the loop, but checking the ASM output proves it does not: https://godbolt.org/g/sNEnfa
#[inline]fnfoo(){}// okfnbar(){#[inline]// pointless, but no warning/error()}
The text was updated successfully, but these errors were encountered:
mtak-
changed the title
#[inline] should be a warning or error if used for above non-functions
#[inline] should be a warning or error if used above non-functions
Oct 27, 2017
Adding
#[inline]
above arbitrary statements does not issue a warning or error.I found this confusing. I was guessing at a loop unrolling attribute when I discovered this, and thought the lack of warnings/errors meant it might actually unroll the loop, but checking the ASM output proves it does not: https://godbolt.org/g/sNEnfa
The text was updated successfully, but these errors were encountered: