Skip to content

Commit 333201e

Browse files
lcnrcompiler-errors
authored andcommitted
gaming
1 parent 260e256 commit 333201e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

compiler/rustc_hir_typeck/src/opaque_types.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
4848
) => continue,
4949
}
5050

51+
// TODO
5152
if hidden_type.ty.has_non_region_infer() {
52-
let guar =
53-
tcx.dcx().span_err(hidden_type.span, "non-defining use in the defining scope");
54-
typeck_results
55-
.concrete_opaque_types
56-
.insert(opaque_type_key.def_id, OpaqueHiddenType::new_error(tcx, guar));
57-
self.set_tainted_by_errors(guar);
53+
continue;
5854
}
5955

6056
let hidden_type = hidden_type.remap_generic_params_to_declaration_params(

0 commit comments

Comments
 (0)