Closed
Description
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
ncollide-geometry - crater log
cc crate authors: @stevedonovan @elrnv @sebcrozet