Found in the wild: https://stackoverflow.com/questions/48406077/mutation-of-a-variable-inside-while-loop
List of types that make no sense that we should be linting about:
Box<&T>
Box::new(SomeT) where sizeof::<T>() <= sizeof::<usize>()
- unless there are
Box::into_raw calls within the function
Rc<Box<T>>
Rc<Rc<T>>
Rc<&T>
- more...?
Found in the wild: https://stackoverflow.com/questions/48406077/mutation-of-a-variable-inside-while-loop
List of types that make no sense that we should be linting about:
Box<&T>Box::new(SomeT)wheresizeof::<T>() <= sizeof::<usize>()Box::into_rawcalls within the functionRc<Box<T>>Rc<Rc<T>>Rc<&T>