about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2019-02-04 19:12:46 +0100
committerDavid Wood <david@davidtw.co>2019-02-06 21:10:43 +0100
commit6717727fcbc8e07f471b4a6d8fecd600230a5616 (patch)
tree74a4860ffa0319a181aaf5de2d148f2cb5d207a5 /src/rustllvm/RustWrapper.cpp
parent8ae730a442cc8af6a487a137ae9ba78f89edbba6 (diff)
downloadrust-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