We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ensure
Result
1 parent 870a01a commit aa6f45eCopy full SHA for aa6f45e
compiler/rustc_hir_typeck/src/callee.rs
@@ -53,7 +53,7 @@ pub fn check_legal_trait_for_method_call(
53
};
54
return Err(tcx.dcx().emit_err(errors::ExplicitDestructorCall { span, sugg }));
55
}
56
- tcx.coherent_trait(trait_id)
+ tcx.ensure().coherent_trait(trait_id)
57
58
59
#[derive(Debug)]
compiler/rustc_trait_selection/src/traits/specialize/mod.rs
@@ -446,7 +446,7 @@ fn report_conflicting_impls<'tcx>(
446
match used_to_be_allowed {
447
None => {
448
let reported = if overlap.with_impl.is_local()
449
- || tcx.orphan_check_impl(impl_def_id).is_ok()
+ || tcx.ensure().orphan_check_impl(impl_def_id).is_ok()
450
{
451
let mut err = tcx.dcx().struct_span_err(impl_span, msg);
452
err.code(E0119);
0 commit comments