Make hir::PathSegment::hir_id non-optional.
This commit is contained in:
@@ -649,7 +649,7 @@ impl<'tcx> SaveContext<'tcx> {
|
||||
}
|
||||
|
||||
pub fn get_path_segment_data(&self, path_seg: &hir::PathSegment<'_>) -> Option<Ref> {
|
||||
self.get_path_segment_data_with_id(path_seg, path_seg.hir_id?)
|
||||
self.get_path_segment_data_with_id(path_seg, path_seg.hir_id)
|
||||
}
|
||||
|
||||
pub fn get_path_segment_data_with_id(
|
||||
|
||||
Reference in New Issue
Block a user