rust/src/librustc_resolve
bors 0c835b0cca Auto merge of #70909 - marmeladema:issue70853/librustc_hir-local-def-id, r=eddyb
librustc_hir: return LocalDefId instead of DefId in local_def_id

Its a first try to remove a few calls to `expect_local` and use `LocalDefId` instead of `DefId` where possible for #70853

This adds some calls to `.to_def_id()` to get a `DefId` back when needed. I don't know if I should push `LocalDefId` even further and change, for example, `Res::Def` to accept a `LocalDefId` instead of a `DefId` as second argument.

cc @ecstatic-morse
2020-04-09 23:22:23 +00:00
..
late rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00
build_reduced_graph.rs librustc_resolve: fixup nit in previous commit 2020-04-08 09:23:58 +01:00
Cargo.toml rustc -> rustc_middle part 1 2020-03-30 07:02:56 +02:00
check_unused.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00
def_collector.rs def_collector, visit_fn: account for no body 2020-04-03 17:01:21 +02:00
diagnostics.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00
imports.rs rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00
late.rs librustc_hir: return LocalDefId instead of DefId in local_def_id 2020-04-08 00:43:56 +01:00
lib.rs Auto merge of #70909 - marmeladema:issue70853/librustc_hir-local-def-id, r=eddyb 2020-04-09 23:22:23 +00:00
macros.rs librustc_hir: return LocalDefId instead of DefId in local_def_id 2020-04-08 00:43:56 +01:00