Make hir::PathSegment::res
non-optional.
This commit is contained in:
parent
ee244bf196
commit
6d850d936b
20 changed files with 65 additions and 76 deletions
|
@ -2210,12 +2210,12 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
|
|||
&& let [
|
||||
..,
|
||||
trait_path_segment @ hir::PathSegment {
|
||||
res: Some(rustc_hir::def::Res::Def(rustc_hir::def::DefKind::Trait, trait_id)),
|
||||
res: rustc_hir::def::Res::Def(rustc_hir::def::DefKind::Trait, trait_id),
|
||||
..
|
||||
},
|
||||
hir::PathSegment {
|
||||
ident: assoc_item_name,
|
||||
res: Some(rustc_hir::def::Res::Def(_, item_id)),
|
||||
res: rustc_hir::def::Res::Def(_, item_id),
|
||||
..
|
||||
}
|
||||
] = path.segments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue