about summary refs log tree commit diff
path: root/compiler/rustc_infer/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-10-26 18:00:18 +0000
committerMichael Goulet <michael@errs.io>2022-10-27 15:43:33 +0000
commitd793d80cf7e60d1bdaefffb221dd45875ed9574a (patch)
treea169efa7c83bd47738def9c5275db24e1ea33176 /compiler/rustc_infer/src
parent0da281b6068a7d889ae89a9bd8991284cc9b7535 (diff)
downloadrust-d793d80cf7e60d1bdaefffb221dd45875ed9574a.tar.gz
rust-d793d80cf7e60d1bdaefffb221dd45875ed9574a.zip
(almost) Always use ObligationCtxt when dealing with canonical queries
Diffstat (limited to 'compiler/rustc_infer/src')
-rw-r--r--compiler/rustc_infer/src/infer/canonical/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/canonical/mod.rs b/compiler/rustc_infer/src/infer/canonical/mod.rs
index 06ca2534d5c..cbd6481f9cb 100644
--- a/compiler/rustc_infer/src/infer/canonical/mod.rs
+++ b/compiler/rustc_infer/src/infer/canonical/mod.rs
@@ -43,7 +43,7 @@ impl<'tcx> InferCtxt<'tcx> {
     ///
     /// This is only meant to be invoked as part of constructing an
     /// inference context at the start of a query (see
-    /// `InferCtxtBuilder::enter_with_canonical`). It basically
+    /// `InferCtxtBuilder::build_with_canonical`). It basically
     /// brings the canonical value "into scope" within your new infcx.
     ///
     /// At the end of processing, the substitution S (once