Skip to content

Commit b5665e8

Browse files
committed
improve comments
1 parent 1ec7ae1 commit b5665e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/traits/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
13261326
(result, dep_node)
13271327
}
13281328

1329-
// Treat negative impls as unimplemented, and reservation impls as Ok(None)
1329+
// Treat negative impls as unimplemented, and reservation impls as ambiguity.
13301330
fn filter_negative_and_reservation_impls(
13311331
&self,
13321332
candidate: SelectionCandidate<'tcx>,

src/librustc/ty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2931,7 +2931,7 @@ impl<'tcx> TyCtxt<'tcx> {
29312931
}
29322932
(ImplPolarity::Positive, ImplPolarity::Negative) |
29332933
(ImplPolarity::Negative, ImplPolarity::Positive) => {
2934-
// FIXME: when can this happen?
2934+
// `impl AutoTrait for Type` + `impl !AutoTrait for Type`
29352935
debug!("impls_are_allowed_to_overlap({:?}, {:?}) - None (differing polarities)",
29362936
def_id1, def_id2);
29372937
return None;

0 commit comments

Comments
 (0)