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
With #11909, it only generates it to grab the destructor from it. This will involve a refactoring of the glue code. It may be a good idea to wait until procs and managed pointers are no longer using a TyDesc.
The text was updated successfully, but these errors were encountered:
new lint: `manual_c_str_literals`
With rust-lang#117472 merged and `c""` syntax stabilized, I think it'd be nice to have a lint for using `CStr::from_ptr` (and similar constructors) with a string literal as an argument.
We can probably also lint `"foo\0".as_ptr()` and suggest `c"foo".as_ptr()`. I might add that to this PR tomorrow if I find the time.
The byte string literal to c string literal rewriting is ugly but oh well.
changelog: new lint: `manual_c_str_literals`
[rust-lang#11919](rust-lang/rust-clippy#11919)
With #11909, it only generates it to grab the destructor from it. This will involve a refactoring of the glue code. It may be a good idea to wait until procs and managed pointers are no longer using a
TyDesc
.The text was updated successfully, but these errors were encountered: