mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
Remove weird slice conversion
This commit is contained in:
parent
6f43af26e9
commit
8e548bf8d6
@ -547,7 +547,7 @@ impl DeadVisitor<'tcx> {
|
||||
let def_id = self.tcx.hir().local_def_id(id);
|
||||
let inherent_impls = self.tcx.inherent_impls(def_id);
|
||||
for &impl_did in inherent_impls.iter() {
|
||||
for &item_did in &self.tcx.associated_item_def_ids(impl_did)[..] {
|
||||
for item_did in self.tcx.associated_item_def_ids(impl_did) {
|
||||
if let Some(did) = item_did.as_local() {
|
||||
let item_hir_id = self.tcx.hir().local_def_id_to_hir_id(did);
|
||||
if self.live_symbols.contains(&item_hir_id) {
|
||||
|
Loading…
Reference in New Issue
Block a user