rust/compiler/rustc_ty_utils/src
bors 99930ac7f8 Auto merge of #95880 - cjgillot:def-ident-span, r=petrochenkov
Handle `def_ident_span` like `def_span`.

`def_ident_span` had an ad-hoc status in the compiler.

This PR refactors it to be a first-class citizen like `def_span`:
- it gets encoded in the main metadata loop, instead of the visitor;
- its implementation is updated to mirror the one of `def_span`.

We do not remove the `Option` in the return type, since some items do not have an ident, AnonConsts for instance.
2022-06-11 20:08:48 +00:00
..
assoc.rs Store a Symbol instead of an Ident in AssocItem 2022-01-19 17:13:21 -05:00
common_traits.rs Don't consider !Unpin references as noalias 2021-03-21 20:10:53 +01:00
instance.rs Auto merge of #97860 - Dylan-DPC:rollup-t3vxos8, r=Dylan-DPC 2022-06-08 08:05:47 +00:00
lib.rs Fully stabilize NLL 2022-06-03 17:16:41 -04:00
needs_drop.rs Add bound_type_of 2022-05-13 18:27:18 -04:00
representability.rs Specialize suggestion for Option<T> 2022-03-31 08:04:53 -07:00
ty.rs Implement def_ident_span in rustc_middle. 2022-06-10 20:15:14 +02:00