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
Currently, Ascii implements to_str() such that 'c'.to_ascii().to_str() == ~"'c'".
I guess that should better be changed to also return ~"c" to be consistent with this implementation, and because there is a repr module whose job it is to return ~"'c'" here.
clippy_lints: Do not warn against Box parameter in C FFI
changelog: [`boxed_local`]: don't lint in `extern fn` arguments
Fixesrust-lang#5542.
When using C FFI, to handle pointers in parameters it is needed to
declare them as `Box` in its Rust-side signature. However, the current
linter warns against the usage of Box stating that "local variable
doesn't need to be boxed here".
This commit fixes it by ignoring functions whose Abi is C.
This should print "a".
The text was updated successfully, but these errors were encountered: