Rollup merge of #110153 - DaniPopes:compiler-typos, r=Nilstrieb
Fix typos in compiler I ran [`typos -w compiler`](https://github.com/crate-ci/typos) to fix typos in the `compiler` directory. Refs #110150
This commit is contained in:
@@ -13,7 +13,7 @@ use rustc_middle::ty::TypeVisitableExt;
|
||||
use rustc_middle::ty::{self, Ty};
|
||||
use rustc_middle::ty::{TypeFoldable, TypeFolder, TypeSuperFoldable};
|
||||
|
||||
/// Whether we're canonicalizing a query input or the query reponse.
|
||||
/// Whether we're canonicalizing a query input or the query response.
|
||||
///
|
||||
/// When canonicalizing an input we're in the context of the caller
|
||||
/// while canonicalizing the response happens in the context of the
|
||||
@@ -21,7 +21,7 @@ use rustc_middle::ty::{TypeFoldable, TypeFolder, TypeSuperFoldable};
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum CanonicalizeMode {
|
||||
Input,
|
||||
/// FIXME: We currently return region constraints refering to
|
||||
/// FIXME: We currently return region constraints referring to
|
||||
/// placeholders and inference variables from a binder instantiated
|
||||
/// inside of the query.
|
||||
///
|
||||
|
||||
@@ -42,7 +42,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
|
||||
///
|
||||
/// - `var_values`: a map from bound variables in the canonical goal to
|
||||
/// the values inferred while solving the instantiated goal.
|
||||
/// - `external_constraints`: additional constraints which aren't expressable
|
||||
/// - `external_constraints`: additional constraints which aren't expressible
|
||||
/// using simple unification of inference variables.
|
||||
#[instrument(level = "debug", skip(self))]
|
||||
pub(in crate::solve) fn evaluate_added_goals_and_make_canonical_response(
|
||||
@@ -113,7 +113,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
|
||||
}
|
||||
|
||||
/// This returns the substitutions to instantiate the bound variables of
|
||||
/// the canonical reponse. This depends on the `original_values` for the
|
||||
/// the canonical response. This depends on the `original_values` for the
|
||||
/// bound variables.
|
||||
fn compute_query_response_substitution(
|
||||
&self,
|
||||
|
||||
@@ -153,7 +153,7 @@ impl<'tcx> SearchGraph<'tcx> {
|
||||
/// coinductive cycles.
|
||||
///
|
||||
/// When we encounter a coinductive cycle, we have to prove the final result of that cycle
|
||||
/// while we are still computing that result. Because of this we continously recompute the
|
||||
/// while we are still computing that result. Because of this we continuously recompute the
|
||||
/// cycle until the result of the previous iteration is equal to the final result, at which
|
||||
/// point we are done.
|
||||
///
|
||||
|
||||
@@ -45,7 +45,7 @@ impl OverflowData {
|
||||
/// Updating the current limit when hitting overflow.
|
||||
fn deal_with_overflow(&mut self) {
|
||||
// When first hitting overflow we reduce the overflow limit
|
||||
// for all future goals to prevent hangs if there's an exponental
|
||||
// for all future goals to prevent hangs if there's an exponential
|
||||
// blowup.
|
||||
self.current_limit.0 = self.default_limit.0 / 8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user