mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-26 15:36:39 +00:00
559c01931b
Make def names and HIR names consistent. The name in the `DefKey` is interned to create the `DefId`, so it does not require any query to access. This can be leveraged to avoid a few useless HIR accesses for names. ~In order to achieve that, generic parameters created from universal impl-trait are given the pretty-printed ast as a name, instead of `{{opaque}}`.~ ~Drive-by: the `TyCtxt::opt_item_name` used a dummy span for non-local definitions. We have access to `def_ident_span`, so we use it.~ |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |