granite-rust/compiler/rustc_borrowck
Maybe Waffle 400d343796 Suggest adding Copy bound when Adt is moved out
Previously we've only suggested adding `Copy` bounds when the type being
moved/copied is a type parameter (generic). With this commit we also
suggest adding bounds when a type
- Can be copy
- All predicates that need to be satisfied for that are based on type
  params

i.e. we will suggest `T: Copy` for `Option<T>`, but won't suggest
anything for `Option<String>`.

Future work: it would be nice to also suggest adding `.clone()` calls
2022-03-01 16:56:00 +03:00
..
src Suggest adding Copy bound when Adt is moved out 2022-03-01 16:56:00 +03:00
Cargo.toml Update itertools to deduplicate it 2022-01-14 12:33:54 +01:00