- Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveL-nurseryLint: Currently in the nursery groupLint: Currently in the nursery group
Description
Summary
Real code:
impl<'ctx, S> Hash for DependencyGraph<'ctx, S> { fn hash<H: Hasher>(&self, state: &mut H) { let mut ops = Vec::with_capacity(self.edges.len()); for (from, nodes) in self.edges.values() { ops.push(from.get_opcode()); for node in nodes { ops.push(node.get_opcode()); } } ops.sort_unstable_by_key(|&op| op as u32); ops.hash(state); } }
Lint Name
collection_is_never_read
Reproducer
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveL-nurseryLint: Currently in the nursery groupLint: Currently in the nursery group