diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-09 20:53:13 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-06-22 21:18:46 +0200 |
| commit | 0ff8c65d6f6f1613d22dcd3525ab29f39e7e6519 (patch) | |
| tree | b1e1324c1731d11b1ea6b5a119e253a98c5ea15b /compiler/rustc_trait_selection/src/traits | |
| parent | 21e9336fe81a1fce364349bb7a35a0347c369f34 (diff) | |
Perform coherence checking per impl.
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/specialize/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs index 95f1e224a4c..a1861529b59 100644 --- a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs @@ -452,7 +452,7 @@ fn report_conflicting_impls( match used_to_be_allowed { None => { let reported = if overlap.with_impl.is_local() - || !tcx.orphan_check_crate(()).contains(&impl_def_id) + || tcx.orphan_check_impl(impl_def_id).is_ok() { let err = struct_span_err!(tcx.sess, impl_span, E0119, ""); Some(decorate( |
