diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-08 01:52:56 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-15 16:05:36 +0000 |
| commit | 7f565ed282455b59dea725f25c251bde30540fcb (patch) | |
| tree | 9513529c0d43faaa076da8eb2be4bcd2f199a6b4 /compiler/rustc_trait_selection/src | |
| parent | 4d1bd0db7f489b22c6d8aa2385937a95412c015b (diff) | |
| download | rust-7f565ed282455b59dea725f25c251bde30540fcb.tar.gz rust-7f565ed282455b59dea725f25c251bde30540fcb.zip | |
Don't pass lint back out of lint decorator
Diffstat (limited to 'compiler/rustc_trait_selection/src')
3 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/coherence.rs b/compiler/rustc_trait_selection/src/traits/coherence.rs index 88ebea70021..eb643ae1414 100644 --- a/compiler/rustc_trait_selection/src/traits/coherence.rs +++ b/compiler/rustc_trait_selection/src/traits/coherence.rs @@ -273,7 +273,6 @@ fn overlap<'tcx>( causing the impls to overlap", infcx.resolve_vars_if_possible(failing_obligation.predicate) )); - lint }, ); } diff --git a/compiler/rustc_trait_selection/src/traits/object_safety.rs b/compiler/rustc_trait_selection/src/traits/object_safety.rs index fbde7455145..e3f89b3f5f6 100644 --- a/compiler/rustc_trait_selection/src/traits/object_safety.rs +++ b/compiler/rustc_trait_selection/src/traits/object_safety.rs @@ -194,7 +194,6 @@ fn lint_object_unsafe_trait( // Only provide the help if its a local trait, otherwise it's not violation.solution().add_to(err); } - err }, ); } diff --git a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs index 39f5ff52eba..71a88f5f07c 100644 --- a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs @@ -450,7 +450,6 @@ fn report_conflicting_impls<'tcx>( msg, |err| { decorate(tcx, &overlap, impl_span, err); - err }, ); } |
