Skip to content

Commit 126c472

Browse files
committed
convert TODO in traits into a FIXME
1 parent 3caa1d1 commit 126c472

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/librustc/traits/mod.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -538,11 +538,14 @@ pub fn normalize_param_env_or_error<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
538538
let region_scope_tree = region::ScopeTree::default();
539539
let free_regions = FreeRegionMap::new();
540540

541-
// TODO We should really... do something with these. But as of
542-
// this writing we were ignoring them, just without knowing
543-
// it, and it would take some refactoring to stop doing so.
544-
// (In particular, the needed methods currently live in
545-
// regionck.) -nmatsakis
541+
// FIXME. We should really... do something with these region
542+
// obligations. But this call just continues the older
543+
// behavior (i.e., doesn't cause any new bugs), and it would
544+
// take some further refactoring to actually solve them. In
545+
// particular, we would have to handle implied bounds
546+
// properly, and that code is currently largely confined to
547+
// regionck (though I made some efforts to extract it
548+
// out). -nmatsakis
546549
let _ = infcx.ignore_region_obligations(body_id);
547550

548551
infcx.resolve_regions_and_report_errors(region_context, &region_scope_tree, &free_regions);

0 commit comments

Comments
 (0)