mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
fix tidy
This commit is contained in:
@@ -1790,7 +1790,7 @@ fn suggest_alternative_construction_methods(
|
||||
}
|
||||
}
|
||||
// We'd ideally use `type_implements_trait` but don't have access to
|
||||
// the trait solver here. We can't use `get_diagnostic_item` or
|
||||
// the trait solver here. We can't use `get_diagnostic_item` or
|
||||
// `all_traits` in resolve either. So instead we abuse the import
|
||||
// suggestion machinery to get `std::default::Default` and perform some
|
||||
// checks to confirm that we got *only* that trait. We then see if the
|
||||
|
||||
Reference in New Issue
Block a user