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.
1 parent d93ea6b commit ef5808aCopy full SHA for ef5808a
compiler/rustc_mir_build/src/check_tail_calls.rs
@@ -117,6 +117,14 @@ impl<'tcx> TailCallCkVisitor<'_, 'tcx> {
117
self.report_arguments_mismatch(expr.span, caller_sig, callee_sig);
118
}
119
120
+ // FIXME(explicit_tail_calls): this currenly fails for cases where opaques are used.
121
+ // e.g.
122
+ // ```
123
+ // fn a() -> impl Sized { become b() } // ICE
124
+ // fn b() -> u8 { 0 }
125
126
+ // we should think what is the expected behavior here.
127
+ // (we should probably just accept this by revealing opaques?)
128
if caller_sig.output() != callee_sig.output() {
129
span_bug!(expr.span, "hir typeck should have checked the return type already");
130
0 commit comments