diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-25 17:05:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-25 17:05:33 +0100 |
| commit | e9ec44251c32dfe2a8e0b82a72b402df615bbd8b (patch) | |
| tree | c405692cef9241f9742b3889bcc00d2c6f48c78c /compiler/rustc_interface/src | |
| parent | ccc5310922807e168d3be5c22b77cf3d76ce4f09 (diff) | |
| parent | 08235b1603f77f39468e7b2e552945501c0cc048 (diff) | |
| download | rust-e9ec44251c32dfe2a8e0b82a72b402df615bbd8b.tar.gz rust-e9ec44251c32dfe2a8e0b82a72b402df615bbd8b.zip | |
Rollup merge of #122910 - compiler-errors:unit-struct-in-path-pat-only, r=petrochenkov
Validate that we're only matching on unit struct for path pattern Resolution doesn't validate that we only really take `CtorKind::Unit` in path patterns, since all it sees is `Res::SelfCtor(def_id)`. Check this instead during pattern typeck. r? petrochenkov Fixes #122809
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
