🚨 Breaking News: "Safe" Rust isn't so safe after all! 🐞 Turns out, the Bun codebase is so full of #bugs that even miri can't bear to look at it without bursting into tears. But don't worry, GitHub Copilot is here to help you write better code, just maybe not this one. πŸ€–
https://github.com/oven-sh/bun/issues/30719 #SafeRust #BunCodebase #GitHubCopilot #ProgrammingIssues #HackerNews #ngated
all of rust codebase: This codebase fails even the most basic miri checks, allows for UB in safe rust Β· Issue #30719 Β· oven-sh/bun

error: Undefined Behavior: constructing invalid value of type &[u8]: encountered a dangling reference (0x20933[noalloc] has no provenance) --> src/main.rs:97:18 | 97 | unsafe { core::slice::from_ra...

GitHub