Fix comparison after rebase
This commit is contained in:
parent
9ecd1d2767
commit
c6dce7802d
1 changed files with 1 additions and 1 deletions
|
|
@ -1060,7 +1060,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
let restrict_msg = "consider further restricting this bound";
|
||||
let param_name = self_ty.to_string();
|
||||
for param in generics.params.iter().filter(|p| {
|
||||
¶m_name == p.name.ident().as_str()
|
||||
¶m_name == std::convert::AsRef::<str>::as_ref(&p.name.ident().as_str())
|
||||
}) {
|
||||
if param_name.starts_with("impl ") {
|
||||
// `impl Trait` in argument:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue