Skip to content

Commit 2686a90

Browse files
committed
improve comments
1 parent 49cf2a2 commit 2686a90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/traits/select.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
13251325
(result, dep_node)
13261326
}
13271327

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

src/librustc/ty/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2912,7 +2912,7 @@ impl<'tcx> TyCtxt<'tcx> {
29122912
}
29132913
(ImplPolarity::Positive, ImplPolarity::Negative) |
29142914
(ImplPolarity::Negative, ImplPolarity::Positive) => {
2915-
// FIXME: when can this happen?
2915+
// `impl AutoTrait for Type` + `impl !AutoTrait for Type`
29162916
debug!("impls_are_allowed_to_overlap({:?}, {:?}) - None (differing polarities)",
29172917
def_id1, def_id2);
29182918
return None;

0 commit comments

Comments
 (0)