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
I encountered an issue while testing with a slightly modified version of the test case from Rudra/tests/unsafe_destructor/normal2.rs. The issue is that Rudra does not report the UnsafeDestructor warning, even though it should.
Case
use std::ffi::CString;use std::os::raw::c_char;pubstructStrcCtx{pubptr:*mutc_char,}implDropforStrcCtx{fndrop(&mutself){let _ = self.to_cstring();}}implStrcCtx{fnto_cstring(&mutself) -> CString{unsafe{ std::ffi::CString::from_raw(self.ptras*mut std::os::raw::c_char)}}}
Expected Behavior:
Rudra should report an UnsafeDestructor warning for the modified test case.
Actual Behavior:
Rudra does not report any UnsafeDestructor warning.
The text was updated successfully, but these errors were encountered:
Description:
I encountered an issue while testing with a slightly modified version of the test case from
Rudra/tests/unsafe_destructor/normal2.rs
. The issue is that Rudra does not report theUnsafeDestructor
warning, even though it should.Case
Expected Behavior:
Rudra should report an
UnsafeDestructor
warning for the modified test case.Actual Behavior:
Rudra does not report any
UnsafeDestructor
warning.The text was updated successfully, but these errors were encountered: