Closed Luminoth closed 4 years ago
I reduced it to
use amethyst::core::deferred_dispatcher_operation::DispatcherOperation;
fn foo<'a, 'b>(
_bar: Vec<Box<dyn DispatcherOperation<'a, 'b>>>,
) {}
I will try to reduce it more to not depend on amethyst
later.
Minimal example:
trait T<'a> {}
fn foo(
_: Vec<Box<dyn T<'_>>>,
// ^^^^ removing this LT prevents the ICE
) {}
fn main() {
foo(vec![]);
}
The ICE is caused by this is_sized
call:https://github.com/rust-lang/rust-clippy/blob/fcf22d90bb9087f03e60c03ccccdc2f95668bf88/clippy_lints/src/types.rs#L543-L544
boxed_ty
is dyn T<'_> + 'static
(after the conversion to ty::Ty
)
Code
Unfortunately I don't have a minimal example for this, I honestly have no idea what's triggering it so I'm not sure what would be safe to remove or not. The repo that's doing it however is here: https://github.com/Luminoth/amethyst-hello and it's occurring at the very end of the clippy process, after checking all of the dependencies.
Meta
cargo clippy -V
: clippy 0.0.212 (18bf6b4 2020-10-07)rustc -Vv
:Error output
Backtrace