Document OverlapMode
This commit is contained in:
parent
e5f2fdb539
commit
7847ca8c61
1 changed files with 5 additions and 0 deletions
|
@ -137,10 +137,15 @@ fn with_fresh_ty_vars<'cx, 'tcx>(
|
||||||
header
|
header
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// What kind of overlap check are we doing -- this exists just for testing and feature-gating
|
||||||
|
/// purposes.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
|
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
|
||||||
enum OverlapMode {
|
enum OverlapMode {
|
||||||
|
/// The 1.0 rules (either types fail to unify, or where clauses are not implemented for crate-local types)
|
||||||
Stable,
|
Stable,
|
||||||
|
/// Feature-gated test: Stable, *or* there is an explicit negative impl that rules out one of the where-clauses.
|
||||||
WithNegative,
|
WithNegative,
|
||||||
|
/// Just check for negative impls, not for "where clause not implemented": used for testing.
|
||||||
Strict,
|
Strict,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue