From 9670302115e1b31ba833d5b2625a4e2feab50897 Mon Sep 17 00:00:00 2001 From: "Guillem L. Jara" <4lon3ly0@tutanota.com> Date: Sat, 2 May 2026 15:34:32 +0200 Subject: [PATCH] parser: forbid unsafe code This way, can avoid relying on a sanitizer when fuzzing. For now, we only allow unsafe code in a few specific cases in the lexer. --- parser/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/parser/src/lib.rs b/parser/src/lib.rs index 41a0b3e..a338390 100644 --- a/parser/src/lib.rs +++ b/parser/src/lib.rs @@ -2,6 +2,7 @@ // // For the full copyright and license information, please view the LICENSE // files that was distributed with this source code. +#![forbid(unsafe_code)] mod ast; mod diagnostics;