Skip to content

Commit c6dce78

Browse files
committed
Fix comparison after rebase
1 parent 9ecd1d2 commit c6dce78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/error_reporting.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
10601060
let restrict_msg = "consider further restricting this bound";
10611061
let param_name = self_ty.to_string();
10621062
for param in generics.params.iter().filter(|p| {
1063-
&param_name == p.name.ident().as_str()
1063+
&param_name == std::convert::AsRef::<str>::as_ref(&p.name.ident().as_str())
10641064
}) {
10651065
if param_name.starts_with("impl ") {
10661066
// `impl Trait` in argument:

0 commit comments

Comments
 (0)