@@ -1136,7 +1136,7 @@ impl<'tcx, T> ParamEnvAnd<'tcx, T> {
1136
1136
/// Most of the time you only need to care about the `ParamEnv`
1137
1137
/// as the `TypingMode` is simply stored in the `InferCtxt`.
1138
1138
///
1139
- /// However, there are some placeds which rely on trait solving
1139
+ /// However, there are some places which rely on trait solving
1140
1140
/// without using an `InferCtxt` themselves. For these to be
1141
1141
/// able to use the trait system they have to be able to initialize
1142
1142
/// such an `InferCtxt` with the right `typing_mode`, so they need
@@ -1149,7 +1149,7 @@ pub struct TypingEnv<'tcx> {
1149
1149
}
1150
1150
1151
1151
impl < ' tcx > TypingEnv < ' tcx > {
1152
- // FIXME(#132279): THis method should be removed but simplifies the
1152
+ // FIXME(#132279): This method should be removed but simplifies the
1153
1153
// transition.
1154
1154
pub fn from_param_env ( param_env : ParamEnv < ' tcx > ) -> TypingEnv < ' tcx > {
1155
1155
TypingEnv { typing_mode : TypingMode :: from_param_env ( param_env) , param_env }
@@ -1159,7 +1159,7 @@ impl<'tcx> TypingEnv<'tcx> {
1159
1159
/// where all opaque types and default associated items are revealed.
1160
1160
///
1161
1161
/// This is only suitable for monomorphized, post-typeck environments.
1162
- /// Do not use this during MIR optimizations, as even though they also
1162
+ /// Do not use this for MIR optimizations, as even though they also
1163
1163
/// use `TypingMode::PostAnalysis`, they may still have where-clauses
1164
1164
/// in scope.
1165
1165
pub fn fully_monomorphized ( ) -> TypingEnv < ' tcx > {
@@ -1214,7 +1214,8 @@ impl<'tcx> TypingEnv<'tcx> {
1214
1214
/// contain anything local to the `infcx` of the caller, so we don't actually canonicalize
1215
1215
/// anything.
1216
1216
///
1217
- /// This should be created by using `infcx.pseudo_canonicalize_query(param_env, value)`.
1217
+ /// This should be created by using `infcx.pseudo_canonicalize_query(param_env, value)`
1218
+ /// or by using `typing_env.as_query_input(value)`.
1218
1219
#[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash ) ]
1219
1220
#[ derive( HashStable ) ]
1220
1221
pub struct PseudoCanonicalInput < ' tcx , T > {
0 commit comments