rust/library/core
bors 0fa3190394 Auto merge of #87916 - nbdd0121:black_box, r=nagisa
Implement `black_box` using intrinsic

Introduce `black_box` intrinsic, as suggested in https://github.com/rust-lang/rust/pull/87590#discussion_r680468700.

This is still codegenned as empty inline assembly for LLVM. For MIR interpretation and cranelift it's treated as identity.

cc `@Amanieu` as this is related to inline assembly
cc `@bjorn3` for rustc_codegen_cranelift changes
cc `@RalfJung` as this affects MIRI

r? `@nagisa` I suppose
2021-08-12 21:04:07 +00:00
..
benches Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
src Auto merge of #87916 - nbdd0121:black_box, r=nagisa 2021-08-12 21:04:07 +00:00
tests Rollup merge of #87876 - lcnr:windows_no_panic, r=m-ou-se 2021-08-11 04:18:43 +09:00
Cargo.toml rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00