Add help suggestion for inline
attribute with invalid argument
#101712
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: link
The current output is:
Since attributes like
repr
already have a help suggestion that states the list of valid arguments when an invalid argument is passed in, I think we should be able to extend this to theinline
attribute as well.Hence, the ideal output will have a help suggestion stating the list of valid arguments (for
inline
), just like howrepr
does this (e.g. help: valid reprs areC
,align
,packed
,transparent
,simd
,i8
,u8
,i16
,u16
,i32
,u32
,i64
,u64
,i128
,u128
,isize
,usize
). Thanks.The text was updated successfully, but these errors were encountered: