Ignoring return value from Box::from_raw
does not cause warning
#99269
Labels
C-bug
Category: This is a bug.
Box::from_raw
does not cause warning
#99269
I tried this code:
I expected to see this happen: explanation
The same as
CString::from_raw
, I expected the following warning:Instead, this happened: explanation
No warning is reported.
Meta
rustc --version --verbose
:Note that
#[must_use]
was added toCString::from_raw
at #89753 following the activity tracked at #89692.I'm creating this issue after discussion at rust-lang/regex#882.
The text was updated successfully, but these errors were encountered: