Rollup merge of #130976 - matthiaskrgr:clonee, r=jieyouxu
remove couple redundant clones
This commit is contained in:
commit
2fca8e5ae7
@ -310,7 +310,7 @@ pub(crate) fn expand_deriving_smart_ptr(
|
|||||||
// Add the impl blocks for `DispatchFromDyn` and `CoerceUnsized`.
|
// Add the impl blocks for `DispatchFromDyn` and `CoerceUnsized`.
|
||||||
let gen_args = vec![GenericArg::Type(alt_self_type.clone())];
|
let gen_args = vec![GenericArg::Type(alt_self_type.clone())];
|
||||||
add_impl_block(impl_generics.clone(), sym::DispatchFromDyn, gen_args.clone());
|
add_impl_block(impl_generics.clone(), sym::DispatchFromDyn, gen_args.clone());
|
||||||
add_impl_block(impl_generics.clone(), sym::CoerceUnsized, gen_args.clone());
|
add_impl_block(impl_generics.clone(), sym::CoerceUnsized, gen_args);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn contains_maybe_sized_bound_on_pointee(predicates: &[WherePredicate], pointee: Symbol) -> bool {
|
fn contains_maybe_sized_bound_on_pointee(predicates: &[WherePredicate], pointee: Symbol) -> bool {
|
||||||
|
@ -1027,7 +1027,7 @@ fn lint_non_contiguous_range_endpoints(
|
|||||||
// Point at this range.
|
// Point at this range.
|
||||||
first_range: thir_pat.span,
|
first_range: thir_pat.span,
|
||||||
// That's the gap that isn't covered.
|
// That's the gap that isn't covered.
|
||||||
max: gap_as_pat.to_string(),
|
max: gap_as_pat,
|
||||||
// Suggest `lo..=max` instead.
|
// Suggest `lo..=max` instead.
|
||||||
suggestion: suggested_range,
|
suggestion: suggested_range,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user