Adopt let else in more places
This commit is contained in:
parent
b8c56fa8c3
commit
2ef8af6619
132 changed files with 539 additions and 881 deletions
|
@ -72,9 +72,8 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
|
|||
) -> Arc<chalk_solve::rust_ir::AssociatedTyDatum<RustInterner<'tcx>>> {
|
||||
let def_id = assoc_type_id.0;
|
||||
let assoc_item = self.interner.tcx.associated_item(def_id);
|
||||
let trait_def_id = match assoc_item.container {
|
||||
AssocItemContainer::TraitContainer(def_id) => def_id,
|
||||
_ => unimplemented!("Not possible??"),
|
||||
let AssocItemContainer::TraitContainer(trait_def_id) = assoc_item.container else {
|
||||
unimplemented!("Not possible??");
|
||||
};
|
||||
match assoc_item.kind {
|
||||
AssocKind::Type => {}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
//! the guts are broken up into modules; see the comments in those modules.
|
||||
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(let_else)]
|
||||
#![feature(nll)]
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue