Closed
Description
At the moment #[inline]
attributes are validated by the compiler during translation because that's the first time they are actually used. However, as the compiler gets more lazy, an inline function might be exported without the #[inline]
attribute ever being validate. This can lead to the case of getting an error message only when the function is used in a downstream crate.
To solve this issue, modify the compiler so that compile-fail/E0534.rs passes if the inline function is not called from anywhere.