diff options
| author | Ellen <supbscripter@gmail.com> | 2022-02-09 11:03:27 +0000 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2022-02-12 11:23:53 +0000 |
| commit | e81e09a24e5e1862969aef9ba3a9e71519259eb8 (patch) | |
| tree | cb1b15a7c6cb33b3540aa3a66b663216343443ca /compiler/rustc_mir_build | |
| parent | 9cdefd763b910ffd1d42233a8c752ab5fd84ca4d (diff) | |
| download | rust-e81e09a24e5e1862969aef9ba3a9e71519259eb8.tar.gz rust-e81e09a24e5e1862969aef9ba3a9e71519259eb8.zip | |
change to a struct variant
Diffstat (limited to 'compiler/rustc_mir_build')
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/pattern/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/thir/pattern/mod.rs b/compiler/rustc_mir_build/src/thir/pattern/mod.rs index 55cf807172e..df5d2f30284 100644 --- a/compiler/rustc_mir_build/src/thir/pattern/mod.rs +++ b/compiler/rustc_mir_build/src/thir/pattern/mod.rs @@ -417,7 +417,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> { | DefKind::AssocTy, _, ) - | Res::SelfTy(..) + | Res::SelfTy { .. } | Res::SelfCtor(..) => PatKind::Leaf { subpatterns }, _ => { let pattern_error = match res { |
