Florian Diebold f1f45f9191 Fix handling of const patterns
E.g. in `match x { None => ... }`, `None` is a path pattern (resolving to the
option variant), not a binding. To determine this, we need to try to resolve the
name during lowering. This isn't too hard since we already need to resolve names
for macro expansion anyway (though maybe a bit hacky).

Fixes #1618.
2020-02-21 17:01:19 +01:00
..
2020-02-19 12:44:54 +01:00
2020-02-18 16:12:40 +02:00
2020-02-18 16:12:40 +02:00
2020-02-18 16:12:40 +02:00
2020-02-18 16:12:40 +02:00
2020-02-21 17:01:19 +01:00
2020-02-18 16:12:40 +02:00
2020-02-21 17:01:19 +01:00
2020-02-20 11:24:47 +02:00
2020-02-19 13:36:59 +09:00
2020-02-18 16:12:37 +02:00
2020-02-19 16:28:25 +01:00
2020-02-18 16:12:40 +02:00
2020-02-18 16:12:40 +02:00
2020-02-18 16:12:40 +02:00
2020-02-21 18:33:45 +08:00
2020-02-18 16:12:40 +02:00