Changed lint to check for std::fmt::Pointer
and transmute
The lint checks arguments in calls to `transmute` or functions that have `Pointer` as a trait bound and displays a warning if the argument is a function reference. Also checks for `std::fmt::Pointer::fmt` to handle formatting macros although it doesn't depend on the exact expansion of the macro or formatting internals. `std::fmt::Pointer` and `std::fmt::Pointer::fmt` were also added as diagnostic items and symbols.
This commit is contained in:
parent
3214de7359
commit
511fe048b4
7 changed files with 355 additions and 199 deletions
|
@ -796,6 +796,8 @@ symbols! {
|
|||
plugin_registrar,
|
||||
plugins,
|
||||
pointer,
|
||||
pointer_trait,
|
||||
pointer_trait_fmt,
|
||||
poll,
|
||||
position,
|
||||
post_dash_lto: "post-lto",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue