mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 18:57:19 +00:00

rustc_metadata: Merge `get_ctor_def_id` and `get_ctor_kind` Also avoid decoding the whole `ty::AssocItem` to get a `has_self` flag. A small optimization and cleanup extracted from https://github.com/rust-lang/rust/pull/89059.