Unsound Code Unsound 代码 任何会由于用户输入而导致 safe Rust 产生未定义行为的都是 unsound(不健全)的(尽管仅仅可能是理论上的). 比如unsafe 代码可能违反上述承诺而产生未定义行为. Unsound 代码对稳定性和安全性造成风险, 且违背了大部分 Rust 用户的基本假设. fn unsound_ref<T>(x: &T) -> &u128 ...
Unsound 代码 任何会由于用户输入而导致 safe Rust 产生未定义行为的都是 unsound(不健全)的(尽管仅仅可能是理论上的). 比如unsafe 代码可能违反上述承诺而产生未定义行为. Unsound 代码对稳定性和安全性造成风险, 且违背了大部分 Rust 用户的基本假设. fn unsound_ref<T>(x: &T) -> &u128 { // Signature...
Pin is unsound due to the literal constructor #139013 opened Mar 27, 2025 pointer::wrapping_offset should mention provenence #139008 opened Mar 27, 2025 buffer for stdout is heap-allocated #139006 opened Mar 26, 2025 Rustc panics at free_region_relations.rs:93:9: "can't find...
// unsound differences in evaluating the same constant at different instantiation sites. interp_ok(true) } #[inline(always)] fn adjust_global_allocation<'b>( _ecx: &InterpCx<$tcx, Self>,1 change: 1 addition & 0 deletions 1 compiler/rustc_const_eval/src/interpret/operator.rs Original fi...
The non_local_definitions lint now fires on less code and warns by default. Compiler: Deprecate unsound -Csoft-float flag. Add many new tier 3 targets: aarch64_unknown_nto_qnx700 arm64e-apple-tvos armv7-rtems-eabihf loongarch64-unknown-linux-ohos riscv32-wrs-vxworks and riscv64-wrs-vx...
rust-std GitHub issues/42789 GENERIC OOR SliceIndex is unsound for ZST, interation->random addr RalfJung-Rust No rust-std GitHub issues/43733 LOE UAF access static value without unsafe marker->CC(thread::local) eddyb-Rust No rust-std GitHub issues/44637 CASE OOR does not handle -1 prop...
format_in_format_args, recursive_format_impl, to_string_in_format_args, uninlined_format_args, unused_format_specs: Can now support 3rd party format macros if they're marked with the #[clippy::format_args] attribute #9948 ICE Fixes trait_duplication_in_bounds: fix ICE on duplicate type ...
Some of these are unsound, which means they can lead to Miri failing to detect cases of undefined behavior in a program. -Zmiri-disable-abi-check disables checking function ABI. Using this flag is unsound. -Zmiri-disable-alignment-check disables checking pointer alignment, so you can focus ...
Using this flag is unsound. -Zmiri-disable-weak-memory-emulation disables the emulation of some C++11 weak memory effects. -Zmiri-native-lib=<path to a shared object file> is an experimental flag for providing support for calling native functions from inside the interpreter via FFI. Functions...
rust-std GitHub issues/42789 GENERIC OOR SliceIndex is unsound for ZST, interation->random addr RalfJung-Rust No rust-std GitHub issues/43733 LOE UAF access static value without unsafe marker->CC(thread::local) eddyb-Rust No rust-std GitHub issues/44637 CASE OOR does not handle -1 prop...