about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-23 19:28:10 +0100
committerGitHub <noreply@github.com>2021-11-23 19:28:10 +0100
commita26c2c7495b6a6d4df49d6dabe3453057804e98e (patch)
tree69b568250bf8a7df78247950b7a99483c3044a31 /compiler/rustc_codegen_gcc/example/example.rs
parent448422471020d80a2fe6f9732d16ca19c93a12c4 (diff)
parent6f38568decbab94e06e1df740b8b7a140be88e54 (diff)
downloadrust-a26c2c7495b6a6d4df49d6dabe3453057804e98e.tar.gz
rust-a26c2c7495b6a6d4df49d6dabe3453057804e98e.zip
Rollup merge of #91140 - nbdd0121:const_typeck, r=oli-obk
Split inline const to two feature gates and mark expression position inline const complete

This PR splits inline const in pattern position into its own `#![feature(inline_const_pat)]` feature gate, and make the usage in expression position complete.

I think I have resolved most outstanding issues related to `inline_const` with #89561 and other PRs. The only thing left that I am aware of is #90150 and the lack of lifetime checks when inline const is used in pattern position (FIXME in #89561). Implementation-wise when used in pattern position it has to be lowered during MIR building while in expression position it's evaluated only when monomorphizing (just like normal consts), so it makes some sense to separate it into two feature gates so one can progress without being blocked by another.

``@rustbot`` label: T-compiler F-inline_const
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/example.rs')
0 files changed, 0 insertions, 0 deletions