diff options
| author | bors <bors@rust-lang.org> | 2019-06-07 09:41:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-06-07 09:41:06 +0000 |
| commit | c1c60d292e2dd2deff7084208274f9a02f750d43 (patch) | |
| tree | 314fbfbd0ef2dc81db3674186d122b582b6cc7a6 /src/libsyntax | |
| parent | ca1bcfdde3f19afd68ef808cecf2ce56d08d5df4 (diff) | |
| parent | bcf836567560c2f31dac79aa0379c0f0e2740081 (diff) | |
| download | rust-c1c60d292e2dd2deff7084208274f9a02f750d43.tar.gz rust-c1c60d292e2dd2deff7084208274f9a02f750d43.zip | |
Auto merge of #61209 - matthewjasper:const-tuple-constructors, r=oli-obk
Make tuple constructors real const fns
Mir construction special cases `Ctor(...)` to be lowered as `Ctor { 0: ... }`, which means this doesn't come up much in practice, but it seems inconsistent not to allow this.
r? @oli-obk
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 64415204047..b41b91c7631 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -560,6 +560,10 @@ declare_features! ( // Allows the user of associated type bounds. (active, associated_type_bounds, "1.34.0", Some(52662), None), + // Allows calling constructor functions in `const fn` + // FIXME Create issue + (active, const_constructor, "1.37.0", Some(61456), None), + // ------------------------------------------------------------------------- // feature-group-end: actual feature gates // ------------------------------------------------------------------------- |
