Rollup merge of #76973 - lzutao:unstably-const-assume, r=oli-obk
Unstably allow assume intrinsic in const contexts Not sure much about this usage because there are concerns about [blocking optimization][1] and [slowing down LLVM][2] when using `assme` intrinsic in inline functions. But since Oli suggested in https://github.com/rust-lang/rust/issues/76960#issuecomment-695772221, here we are. [1]: https://github.com/rust-lang/rust/pull/54995#issuecomment-429302709 [2]: https://github.com/rust-lang/rust/issues/49572#issuecomment-589615423
This commit is contained in:
commit
1b8c939a8d
10 changed files with 39 additions and 15 deletions
|
@ -12,8 +12,8 @@ extern "rust-intrinsic" {
|
|||
```
|
||||
|
||||
Please check you didn't make a mistake in the function's name. All intrinsic
|
||||
functions are defined in `librustc_codegen_llvm/intrinsic.rs` and in
|
||||
`libcore/intrinsics.rs` in the Rust source code. Example:
|
||||
functions are defined in `compiler/rustc_codegen_llvm/src/intrinsic.rs` and in
|
||||
`library/core/src/intrinsics.rs` in the Rust source code. Example:
|
||||
|
||||
```
|
||||
#![feature(intrinsics)]
|
||||
|
|
|
@ -17,8 +17,8 @@ fn main() {
|
|||
```
|
||||
|
||||
Please check you didn't make a mistake in the function's name. All intrinsic
|
||||
functions are defined in `librustc_codegen_llvm/intrinsic.rs` and in
|
||||
`libcore/intrinsics.rs` in the Rust source code. Example:
|
||||
functions are defined in `compiler/rustc_codegen_llvm/src/intrinsic.rs` and in
|
||||
`library/core/src/intrinsics.rs` in the Rust source code. Example:
|
||||
|
||||
```
|
||||
#![feature(intrinsics)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue