about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-02-08 17:13:56 +0000
committerbors <bors@rust-lang.org>2019-02-08 17:13:56 +0000
commita2ec156a5b5d58f2a73bf21b1fe037b6ac1cf5cc (patch)
tree29a60d54848218c387047656d2529aee28f97ca3 /src/rustllvm/RustWrapper.cpp
parent0710c2026f257b9560f7f84539bc57183c3a02d3 (diff)
parent6717727fcbc8e07f471b4a6d8fecd600230a5616 (diff)
downloadrust-a2ec156a5b5d58f2a73bf21b1fe037b6ac1cf5cc.tar.gz
rust-a2ec156a5b5d58f2a73bf21b1fe037b6ac1cf5cc.zip
Auto merge of #58161 - davidtwco:issue-57960, r=arielb1
Lower constant patterns with ascribed types.

Fixes #57960.

This PR 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 PR unwraps that to
access the constant pattern inside and behaves as before.

r? @pnkfelix
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions