We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69842da commit 6730e71Copy full SHA for 6730e71
compiler/rustc_infer/src/infer/mod.rs
@@ -1287,6 +1287,9 @@ impl<'tcx> InferCtxt<'tcx> {
1287
u
1288
}
1289
1290
+ /// Extract [ty::TypingMode] of this inference context to get a `TypingEnv`
1291
+ /// which contains the necessary information to use the trait system without
1292
+ /// using canonicalization or carrying this inference context around.
1293
pub fn typing_env(&self, param_env: ty::ParamEnv<'tcx>) -> ty::TypingEnv<'tcx> {
1294
ty::TypingEnv { typing_mode: self.typing_mode(param_env), param_env }
1295
0 commit comments