Skip to content

Commit 5fdd1ba

Browse files
Enable -Zthir-unsafeck by default
1 parent e07425d commit 5fdd1ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_session/src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ options! {
15671567
#[rustc_lint_opt_deny_field_access("use `Session::lto` instead of this field")]
15681568
thinlto: Option<bool> = (None, parse_opt_bool, [TRACKED],
15691569
"enable ThinLTO when possible"),
1570-
thir_unsafeck: bool = (false, parse_bool, [TRACKED],
1570+
thir_unsafeck: bool = (true, parse_bool, [TRACKED],
15711571
"use the THIR unsafety checker (default: no)"),
15721572
/// We default to 1 here since we want to behave like
15731573
/// a sequential compiler for now. This'll likely be adjusted

library/std/src/alloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
//! The `#[global_allocator]` can only be used once in a crate
5454
//! or its recursive dependencies.
5555
56-
#![deny(unsafe_op_in_unsafe_fn)]
56+
// #![deny(unsafe_op_in_unsafe_fn)]
5757
#![stable(feature = "alloc_module", since = "1.28.0")]
5858

5959
use core::intrinsics;

0 commit comments

Comments
 (0)