diff options
| author | David Wood <david@davidtw.co> | 2019-02-04 19:12:46 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-02-06 21:10:43 +0100 |
| commit | 6717727fcbc8e07f471b4a6d8fecd600230a5616 (patch) | |
| tree | 74a4860ffa0319a181aaf5de2d148f2cb5d207a5 /src/rustllvm/RustWrapper.cpp | |
| parent | 8ae730a442cc8af6a487a137ae9ba78f89edbba6 (diff) | |
| download | rust-6717727fcbc8e07f471b4a6d8fecd600230a5616.tar.gz rust-6717727fcbc8e07f471b4a6d8fecd600230a5616.zip | |
Lower constant patterns with ascribed types.
This commit fixes a bug introduced by #55937 which started checking user type annotations for associated type patterns. Where lowering a associated constant expression would previously return a `PatternKind::Constant`, it now returns a `PatternKind::AscribeUserType` with a `PatternKind::Constant` inside, this commit unwraps that to access the constant pattern inside and behaves as before.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
