about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/diagnostics.rs
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2019-11-06 07:09:16 -0800
committerDylan MacKenzie <ecstaticmorse@gmail.com>2019-11-06 07:09:16 -0800
commitec5ba54ed2f0db8dae06f0f89b183bbfd0306238 (patch)
treefbcb4ec6fd630e404cb2023d34fffcccaec77135 /src/libsyntax/parse/parser/diagnostics.rs
parenta9b1abe6ea96f77ea7fc1761b3cd39c309eb7fcd (diff)
downloadrust-ec5ba54ed2f0db8dae06f0f89b183bbfd0306238.tar.gz
rust-ec5ba54ed2f0db8dae06f0f89b183bbfd0306238.zip
Add test for promotability in `let`
The old const-checker conservatively reset qualifs when
`IsNotPromotable` was in the return place. Unfortunately, named
variables have `IsNotPromotable`, so this could cause promotion to fail.
This should work now.
Diffstat (limited to 'src/libsyntax/parse/parser/diagnostics.rs')
0 files changed, 0 insertions, 0 deletions