Skip to content

Commit 58614b7

Browse files
committed
enable default bounds to check Move
1 parent aceeb51 commit 58614b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2241,7 +2241,7 @@ options! {
22412241
"Use WebAssembly error handling for wasm32-unknown-emscripten"),
22422242
enforce_type_length_limit: bool = (false, parse_bool, [TRACKED],
22432243
"enforce the type length limit when monomorphizing instances in codegen"),
2244-
experimental_default_bounds: bool = (false, parse_bool, [TRACKED],
2244+
experimental_default_bounds: bool = (true, parse_bool, [TRACKED],
22452245
"enable default bounds for experimental group of auto traits"),
22462246
export_executable_symbols: bool = (false, parse_bool, [TRACKED],
22472247
"export symbols from executables, as if they were dynamic libraries"),

library/core/src/marker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,7 @@ pub trait CoercePointeeValidated {
13691369

13701370
/// Types that do not require a stable memory address, and so can be freely
13711371
/// `move`d.
1372+
#[lang = "default_trait1"]
13721373
#[unstable(feature = "move_trait", issue = "none")]
13731374
pub unsafe auto trait Move {
13741375
// empty.

0 commit comments

Comments
 (0)