mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
0c835b0cca
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 |
||
---|---|---|
.. | ||
late | ||
build_reduced_graph.rs | ||
Cargo.toml | ||
check_unused.rs | ||
def_collector.rs | ||
diagnostics.rs | ||
imports.rs | ||
late.rs | ||
lib.rs | ||
macros.rs |