Skip to content

Commit

Permalink
Fix comparison after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Oct 15, 2019
1 parent 9ecd1d2 commit c6dce78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/traits/error_reporting.rs
Expand Up @@ -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| {
&param_name == p.name.ident().as_str()
&param_name == std::convert::AsRef::<str>::as_ref(&p.name.ident().as_str())
}) {
if param_name.starts_with("impl ") {
// `impl Trait` in argument:
Expand Down

0 comments on commit c6dce78

Please sign in to comment.