From eb09be43d35195c58fc1ef90a533183f02e28fe3 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Wed, 17 Jul 2024 13:10:12 -0700 Subject: [PATCH] std: forbid unwrapped unsafe in unsupported_backslash --- std/src/sys/path/unsupported_backslash.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/std/src/sys/path/unsupported_backslash.rs b/std/src/sys/path/unsupported_backslash.rs index 7045c9be25b08..855f443678c6c 100644 --- a/std/src/sys/path/unsupported_backslash.rs +++ b/std/src/sys/path/unsupported_backslash.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_op_in_unsafe_fn)] use crate::ffi::OsStr; use crate::io; use crate::path::{Path, PathBuf, Prefix};