Spelling - compiler
* account * achieved * advising * always * ambiguous * analysis * annotations * appropriate * build * candidates * cascading * category * character * clarification * compound * conceptually * constituent * consts * convenience * corresponds * debruijn * debug * debugable * debuggable * deterministic * discriminant * display * documentation * doesn't * ellipsis * erroneous * evaluability * evaluate * evaluation * explicitly * fallible * fulfill * getting * has * highlighting * illustrative * imported * incompatible * infringing * initialized * into * intrinsic * introduced * javascript * liveness * metadata * monomorphization * nonexistent * nontrivial * obligation * obligations * offset * opaque * opportunities * opt-in * outlive * overlapping * paragraph * parentheses * poisson * precisely * predecessors * predicates * preexisting * propagated * really * reentrant * referent * responsibility * rustonomicon * shortcircuit * simplifiable * simplifications * specify * stabilized * structurally * suggestibility * translatable * transmuting * two * unclosed * uninhabited * visibility * volatile * workaround Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
31656e7295
commit
e09d0d2a29
101 changed files with 159 additions and 159 deletions
|
@ -163,13 +163,13 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
//
|
||||
// [block: If(lhs)] -true-> [else_block: dest = (rhs)]
|
||||
// | (false)
|
||||
// [shortcurcuit_block: dest = false]
|
||||
// [shortcircuit_block: dest = false]
|
||||
//
|
||||
// Or:
|
||||
//
|
||||
// [block: If(lhs)] -false-> [else_block: dest = (rhs)]
|
||||
// | (true)
|
||||
// [shortcurcuit_block: dest = true]
|
||||
// [shortcircuit_block: dest = true]
|
||||
|
||||
let (shortcircuit_block, mut else_block, join_block) = (
|
||||
this.cfg.start_new_block(),
|
||||
|
|
|
@ -77,7 +77,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
| PatKind::Wild
|
||||
| PatKind::Binding { .. }
|
||||
| PatKind::Leaf { .. }
|
||||
| PatKind::Deref { .. } => self.error_simplifyable(match_pair),
|
||||
| PatKind::Deref { .. } => self.error_simplifiable(match_pair),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
debug_assert_ne!(
|
||||
target_blocks[idx.index()],
|
||||
otherwise_block,
|
||||
"no canididates for tested discriminant: {:?}",
|
||||
"no candidates for tested discriminant: {:?}",
|
||||
discr,
|
||||
);
|
||||
Some((discr.val, target_blocks[idx.index()]))
|
||||
|
@ -181,7 +181,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
debug_assert_eq!(
|
||||
target_blocks[idx.index()],
|
||||
otherwise_block,
|
||||
"found canididates for untested discriminant: {:?}",
|
||||
"found candidates for untested discriminant: {:?}",
|
||||
discr,
|
||||
);
|
||||
None
|
||||
|
@ -499,7 +499,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
/// However, in some cases, the test may just not be relevant to candidate.
|
||||
/// For example, suppose we are testing whether `foo.x == 22`, but in one
|
||||
/// match arm we have `Foo { x: _, ... }`... in that case, the test for
|
||||
/// what value `x` has has no particular relevance to this candidate. In
|
||||
/// the value of `x` has no particular relevance to this candidate. In
|
||||
/// such cases, this function just returns None without doing anything.
|
||||
/// This is used by the overall `match_candidates` algorithm to structure
|
||||
/// the match as a whole. See `match_candidates` for more details.
|
||||
|
@ -763,8 +763,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
candidate.match_pairs.extend(consequent_match_pairs);
|
||||
}
|
||||
|
||||
fn error_simplifyable<'pat>(&mut self, match_pair: &MatchPair<'pat, 'tcx>) -> ! {
|
||||
span_bug!(match_pair.pattern.span, "simplifyable pattern found: {:?}", match_pair.pattern)
|
||||
fn error_simplifiable<'pat>(&mut self, match_pair: &MatchPair<'pat, 'tcx>) -> ! {
|
||||
span_bug!(match_pair.pattern.span, "simplifiable pattern found: {:?}", match_pair.pattern)
|
||||
}
|
||||
|
||||
fn const_range_contains(
|
||||
|
|
|
@ -156,7 +156,7 @@ impl<'tcx> ConstToPat<'tcx> {
|
|||
|
||||
if let Some(non_sm_ty) = structural {
|
||||
if !self.type_may_have_partial_eq_impl(cv.ty()) {
|
||||
// fatal avoids ICE from resolution of non-existent method (rare case).
|
||||
// fatal avoids ICE from resolution of nonexistent method (rare case).
|
||||
self.tcx()
|
||||
.sess
|
||||
.emit_fatal(TypeNotStructural { span: self.span, non_sm_ty: non_sm_ty });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue