rust/compiler/rustc_const_eval/src/interpret
Eduardo Sánchez Muñoz b5fde0dae0 miri: fail when calling a function that requires an unavailable target feature
miri will report an UB when calling a function that has a `#[target_feature(enable = ...)]` attribute is called and the required feature is not available.

"Available features" are the same that `is_x86_feature_detected!` (or equivalent) reports to be available during miri execution (which can be enabled or disabled with the `-C target-feature` flag).
2023-07-16 00:23:17 +02:00
..
intrinsics refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
cast.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
discriminant.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
eval_context.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
intern.rs miri: protect Move() function arguments during the call 2023-07-11 21:59:01 +02:00
intrinsics.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
machine.rs miri: protect Move() function arguments during the call 2023-07-11 21:59:01 +02:00
memory.rs Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
mod.rs miri: protect Move() function arguments during the call 2023-07-11 21:59:01 +02:00
operand.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
operator.rs Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
place.rs Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
projection.rs Move TyCtxt::mk_x to Ty::new_x where applicable 2023-07-05 20:27:07 +01:00
step.rs Dedup some type checks in the MIR validator 2023-06-19 01:47:03 -07:00
terminator.rs miri: fail when calling a function that requires an unavailable target feature 2023-07-16 00:23:17 +02:00
traits.rs add is_sized method on Abi and Layout, and use it 2022-11-13 12:23:53 +01:00
util.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
validity.rs Use translatable diagnostics in rustc_const_eval 2023-06-01 14:45:18 +00:00
visitor.rs miri: protect Move() function arguments during the call 2023-07-11 21:59:01 +02:00