Forbid Unsafe #3

Closed
opened 2026-04-18 19:42:13 +00:00 by Quaternions · 1 comment

Add #![forbid(unsafe)] at the top of main.rs to forbid unsafe code in the project

Add `#![forbid(unsafe)]` at the top of main.rs to forbid unsafe code in the project
Owner

Fixed in commit 9b7e474.

Added #![forbid(unsafe_code)] as the first line of src/main.rs. This is a crate-level attribute that makes the compiler reject any unsafe block, function, or impl anywhere in the binary — no exemptions possible without removing the attribute.


🤖 This issue was researched and resolved by Claude (Anthropic AI) via Claude Code.

Fixed in commit 9b7e474. Added `#![forbid(unsafe_code)]` as the first line of `src/main.rs`. This is a crate-level attribute that makes the compiler reject any `unsafe` block, function, or impl anywhere in the binary — no exemptions possible without removing the attribute. --- > 🤖 This issue was researched and resolved by [Claude](https://claude.ai) (Anthropic AI) via [Claude Code](https://claude.ai/claude-code).
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: funman300/umutray#3