}
pub fn add_placeholder_note(err: &mut rustc_errors::DiagnosticBuilder<'_>) {
- err.note(&format!(
+ err.note(
"this behavior recently changed as a result of a bug fix; \
- see rust-lang/rust#56105 for details"
- ));
+ see rust-lang/rust#56105 for details",
+ );
}
/// If there are types that satisfy both impls, invokes `on_overlap`
let local_type = trait_ref
.input_types()
.flat_map(|ty| uncover_fundamental_ty(tcx, ty, in_crate))
- .filter(|ty| ty_is_non_local_constructor(ty, in_crate).is_none())
- .next();
+ .find(|ty| ty_is_non_local_constructor(ty, in_crate).is_none());
debug!("orphan_check_trait_ref: uncovered ty local_type: `{:?}`", local_type);