Skip to content

multiple applicable items in scope - type_id #58922

@Dylan-DPC-zz

Description

@Dylan-DPC-zz

From a crater run:

[INFO] [stderr] Compiling downcast v0.9.2 (/opt/crater/workdir) [INFO] [stderr] error[E0034]: multiple applicable items in scope [INFO] [stderr] --> src/lib.rs:120:38 [INFO] [stderr] | [INFO] [stderr] 120 | fn is_type(&self) -> bool { self.type_id() == TypeId::of::<T>() } [INFO] [stderr] | ^^^^^^^ multiple `type_id` found [INFO] [stderr] | [INFO] [stderr] note: candidate #1 is defined in the trait `Any` [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | fn type_id(&self) -> TypeId { TypeId::of::<Self>() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: to disambiguate the method call, write `Any::type_id(&self)` instead [INFO] [stderr] note: candidate #2 is defined in the trait `std::any::Any` [INFO] [stderr] = help: to disambiguate the method call, write `std::any::Any::type_id(&self)` instead [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0034`. [INFO] [stderr] error: Could not compile `downcast`. 

Found this error in the following crates:
Downcast: crater log

Findr: crater log

ncollide - crater log

ncollide-geometry - crater log

cc crate authors: @stevedonovan @elrnv @sebcrozet

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions