Skip to content

false negative for disallowed-methods #9558

Closed
@xxchan

Description

@xxchan

Summary

use futures::stream::{empty, select_all};

fn main() {
    let _ = select_all(vec![empty::<()>()]);
}

with clippy.toml

disallowed-methods = [{ path = "futures::stream::select_all" }]

produces no warnings.

Since futures::stream is re-export of futures_util::stream, I also tried that but clippy didn't work neither.

Lint Name

disallowed-methods

Reproducer

No response

Version

rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: aarch64-apple-darwin
release: 1.64.0
LLVM version: 14.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn't

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions