about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/optimize/code_layout.rs
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-12-10 21:33:12 -0800
committerGitHub <noreply@github.com>2020-12-10 21:33:12 -0800
commit8709ac81d3047b42757ee616a5bb6662a3a20bff (patch)
treeb81548d25f5be9540b1683add59c97cab92c0dfb /compiler/rustc_codegen_cranelift/src/optimize/code_layout.rs
parentdc90573454775538702f27dedd458f7c7eb31124 (diff)
parentcaab16fa20c582f1c7e39f835286482eaa51710a (diff)
downloadrust-8709ac81d3047b42757ee616a5bb6662a3a20bff.tar.gz
rust-8709ac81d3047b42757ee616a5bb6662a3a20bff.zip
Rollup merge of #79858 - sasurau4:doc/update-unstable-book-const-fn, r=oli-obk
Update const-fn doc in unstable-book

Fix #79691

I couldn't find suitable examples. It seems that `const_fn` feature-gate used only following place. https://github.com/rust-lang/rust/blob/810324d1f31eb8d75e8f0044df720652986ef133/compiler/rustc_ast_passes/src/feature_gate.rs#L560-L562

And example like following emits [E0379](https://doc.rust-lang.org/error-index.html#E0379).

```rust
#![feature(const_fn)]

trait Foo {
    const fn bar() -> Self;
}
```

Any other suitable example exists, please let me know.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/optimize/code_layout.rs')
0 files changed, 0 insertions, 0 deletions