Fix rebase
This commit is contained in:
parent
d67dcf5a8b
commit
91d0b371ef
@ -562,7 +562,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||
None
|
||||
};
|
||||
|
||||
let suggest_confusable = |err: &mut Diagnostic| {
|
||||
let suggest_confusable = |err: &mut DiagnosticBuilder<'_>| {
|
||||
let Some(call_name) = call_ident else {
|
||||
return;
|
||||
};
|
||||
|
@ -1418,7 +1418,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||
|
||||
fn find_likely_intended_associated_item(
|
||||
&self,
|
||||
err: &mut Diagnostic,
|
||||
err: &mut DiagnosticBuilder<'_>,
|
||||
similar_candidate: ty::AssocItem,
|
||||
span: Span,
|
||||
args: Option<&'tcx [hir::Expr<'tcx>]>,
|
||||
@ -1496,7 +1496,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||
|
||||
pub(crate) fn confusable_method_name(
|
||||
&self,
|
||||
err: &mut Diagnostic,
|
||||
err: &mut DiagnosticBuilder<'_>,
|
||||
rcvr_ty: Ty<'tcx>,
|
||||
item_name: Ident,
|
||||
call_args: Option<Vec<Ty<'tcx>>>,
|
||||
|
@ -395,6 +395,8 @@ error[E0599]: no function or associated item named `into_vec` found for slice `[
|
||||
LL | vec![vec![0; 10], vec![12; 7], vec![8; 3]]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `[_]`
|
||||
|
|
||||
help: there is an associated function `to_vec` with a similar name
|
||||
--> $SRC_DIR/alloc/src/slice.rs:LL:COL
|
||||
= note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0053]: method `in_trait_impl_return` has an incompatible type for trait
|
||||
|
@ -2,10 +2,7 @@ error[E0599]: no function or associated item named `mew` found for struct `Vec<Q
|
||||
--> $DIR/bad-builder.rs:2:15
|
||||
|
|
||||
LL | Vec::<Q>::mew()
|
||||
| ^^^
|
||||
| |
|
||||
| function or associated item not found in `Vec<Q>`
|
||||
| help: there is an associated function with a similar name: `new`
|
||||
| ^^^ function or associated item not found in `Vec<Q>`
|
||||
|
|
||||
note: if you're trying to build a new `Vec<Q>` consider using one of the following associated functions:
|
||||
Vec::<T>::new
|
||||
@ -14,6 +11,10 @@ note: if you're trying to build a new `Vec<Q>` consider using one of the followi
|
||||
Vec::<T, A>::new_in
|
||||
and 2 others
|
||||
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
||||
help: there is an associated function `new` with a similar name
|
||||
|
|
||||
LL | Vec::<Q>::new()
|
||||
| ~~~
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user