]> git.lizzy.rs Git - rust.git/commit
Auto merge of #92080 - Aaron1011:pattern-ice, r=cjgillot
authorbors <bors@rust-lang.org>
Mon, 3 Jan 2022 06:59:52 +0000 (06:59 +0000)
committerbors <bors@rust-lang.org>
Mon, 3 Jan 2022 06:59:52 +0000 (06:59 +0000)
commitd367c349ef2dd04ebc876a0cd0b0efa46c18ff12
treec913d0f552ce1238351ab99815804418c4bae229
parentb5da80871d5e22401e03ce5ed73200ece8bdc7a6
parent137c374c414e26f50fdfe54cfd3d6a672ff25533
Auto merge of #92080 - Aaron1011:pattern-ice, r=cjgillot

Move `PatKind::Lit` checking from ast_validation to ast lowering

Fixes #92074

This allows us to insert an `ExprKind::Err` when an invalid expression
is used in a literal pattern, preventing later stages of compilation
from seeing an unexpected literal pattern.