Forbid Unsafe #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
#![forbid(unsafe)]at the top of main.rs to forbid unsafe code in the projectFixed in commit
9b7e474.Added
#![forbid(unsafe_code)]as the first line ofsrc/main.rs. This is a crate-level attribute that makes the compiler reject anyunsafeblock, function, or impl anywhere in the binary — no exemptions possible without removing the attribute.