Make hir::PathSegment::hir_id
non-optional.
This commit is contained in:
parent
6d850d936b
commit
bb0ae3c446
16 changed files with 103 additions and 97 deletions
|
@ -250,15 +250,15 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||
}
|
||||
|
||||
let res = self.expect_full_res(segment.id);
|
||||
let id = self.lower_node_id(segment.id);
|
||||
let hir_id = self.lower_node_id(segment.id);
|
||||
debug!(
|
||||
"lower_path_segment: ident={:?} original-id={:?} new-id={:?}",
|
||||
segment.ident, segment.id, id,
|
||||
segment.ident, segment.id, hir_id,
|
||||
);
|
||||
|
||||
hir::PathSegment {
|
||||
ident: self.lower_ident(segment.ident),
|
||||
hir_id: Some(id),
|
||||
hir_id,
|
||||
res: self.lower_res(res),
|
||||
infer_args,
|
||||
args: if generic_args.is_empty() && generic_args.span.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue