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
Our strings are utf8, which allow interior nulls. Embedding a null can be, for example, useful for preparing string constants to be used in C fii, assuming no interior nulls exist.
Right now embedding a null is possible as this: "Foo\x00", but I think \0 would deserve to be it's own escape sequence: "Foo\0"
The text was updated successfully, but these errors were encountered:
`explicit_auto_deref` changes
fixesrust-lang#9123fixesrust-lang#9109fixesrust-lang#9143fixesrust-lang#9101
This avoid suggesting code which hits a rustc bug. Basically `&{x}` won't use auto-deref if the target type is `Sized`.
changelog: Don't suggest using auto deref for block expressions when the target type is `Sized`
changelog: Include the borrow in the suggestion for `explicit_auto_deref`
changelog: Don't lint `explicit_auto_deref` on `dyn Trait` return
changelog: Don't lint `explicit_auto_deref` when other adjustments are required
changelog: Lint `explicit_auto_deref` in implicit return positions for closures
Our strings are utf8, which allow interior nulls. Embedding a null can be, for example, useful for preparing string constants to be used in C fii, assuming no interior nulls exist.
Right now embedding a null is possible as this:
"Foo\x00"
, but I think\0
would deserve to be it's own escape sequence:"Foo\0"
The text was updated successfully, but these errors were encountered: