Skip to content

Commit

Permalink
std: unwrapped unsafe is VERBOTEN!
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
  • Loading branch information
workingjubilee and joboet committed Jul 16, 2024
1 parent 8dafc5c commit 2499057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/personality/dwarf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct DwarfReader {
pub ptr: *const u8,
}

#[deny(unsafe_op_in_unsafe_fn)]
#[forbid(unsafe_op_in_unsafe_fn)]
impl DwarfReader {
pub fn new(ptr: *const u8) -> DwarfReader {
DwarfReader { ptr }
Expand Down

0 comments on commit 2499057

Please sign in to comment.