Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/85447.rs: fixed with no errors #1084

Merged
merged 1 commit into from
Jan 11, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#85447

#![crate_type="lib"]
use std::{collections::HashMap, hash::Hash};

struct C;

trait Ctx {
    type BindGroupId;
}

impl Ctx for C {
    type BindGroupId = u32;
}

pub struct BindGroup {
    _id: <C as Ctx>::BindGroupId,
}

pub fn insert(map: &mut HashMap<*const BindGroup, u32>, bind_group: *const BindGroup) {
    map.insert(bind_group, 1);
}
=== stdout ===
=== stderr ===
warning: unused import: `hash::Hash`
 --> /home/runner/work/glacier/glacier/ices/85447.rs:2:33
  |
2 | use std::{collections::HashMap, hash::Hash};
  |                                 ^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: unused import: `hash::Hash`
 --> /home/runner/work/glacier/glacier/ices/85447.rs:2:33
  |
2 | use std::{collections::HashMap, hash::Hash};
  |                                 ^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: 1 warning emitted

==============
@Alexendoo Alexendoo merged commit a104ace into master Jan 11, 2022
@Alexendoo Alexendoo deleted the autofix/ices/85447.rs branch January 11, 2022 17:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants