Auto merge of #117200 - rmehri01:repeated_help, r=WaffleLapkin

Don't add redundant help for object safety violations

Fixes #117186

r? WaffleLapkin
This commit is contained in:
bors 2023-11-27 19:37:35 +00:00
commit 6eb9524047
4 changed files with 76 additions and 35 deletions

View file

@ -192,7 +192,7 @@ fn lint_object_unsafe_trait(
);
if node.is_some() {
// Only provide the help if its a local trait, otherwise it's not
violation.solution(err);
violation.solution().add_to(err);
}
err
},