about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2016-06-05 23:56:11 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2016-06-09 00:38:38 +0300
commit5af5f2675382ec01418f3fa7269836d2d29f47d8 (patch)
treed50d2c7ddba798e4c9cb0d412406ea15535f9eb5 /src/test/run-pass/thinlto
parent1a614f856885eecff09f509268efa1e6ee7a6128 (diff)
downloadrust-5af5f2675382ec01418f3fa7269836d2d29f47d8.tar.gz
rust-5af5f2675382ec01418f3fa7269836d2d29f47d8.zip
handle string literals correctly in match checking
The root of the problem is that a string literal pattern is essentially of
the form `&LITERAL`, in a single block, while match checking wants to
split that.

To fix that, I added a type field to the patterns in match checking,
which allows us to distinguish between a full and split pattern.

That file is ugly and needs to be cleaned. However, `trans::_match` calls
it, so I think we should delay the cleanup until we kill that.

Fixes #30240
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions