Rollup merge of #139232 - nnethercote:remove-Map-5, r=Zalathar
Move methods from `Map` to `TyCtxt`, part 5. This eliminates all methods on `Map`. Actually removing `Map` will occur in a follow-up PR. A follow-up to #137504. r? `@Zalathar`
This commit is contained in:
commit
bda2ea4d01
75 changed files with 175 additions and 208 deletions
|
@ -392,7 +392,7 @@ where
|
|||
}
|
||||
_ => {
|
||||
self.tcx.dcx().span_delayed_bug(
|
||||
self.tcx.hir().span(arg.hir_id()),
|
||||
self.tcx.hir_span(arg.hir_id()),
|
||||
"no valid for captured arg",
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1403,7 +1403,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
|
|||
CItemKind::Definition => "fn",
|
||||
};
|
||||
let span_note = if let ty::Adt(def, _) = ty.kind()
|
||||
&& let Some(sp) = self.cx.tcx.hir().span_if_local(def.did())
|
||||
&& let Some(sp) = self.cx.tcx.hir_span_if_local(def.did())
|
||||
{
|
||||
Some(sp)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue