about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-06-07 09:41:06 +0000
committerbors <bors@rust-lang.org>2019-06-07 09:41:06 +0000
commitc1c60d292e2dd2deff7084208274f9a02f750d43 (patch)
tree314fbfbd0ef2dc81db3674186d122b582b6cc7a6 /src/libsyntax_pos
parentca1bcfdde3f19afd68ef808cecf2ce56d08d5df4 (diff)
parentbcf836567560c2f31dac79aa0379c0f0e2740081 (diff)
downloadrust-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_pos')
-rw-r--r--src/libsyntax_pos/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs
index 5dd4d6566ed..49123e4cc30 100644
--- a/src/libsyntax_pos/symbol.rs
+++ b/src/libsyntax_pos/symbol.rs
@@ -185,6 +185,7 @@ symbols! {
         conservative_impl_trait,
         console,
         const_compare_raw_pointers,
+        const_constructor,
         const_fn,
         const_fn_union,
         const_generics,