about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-04 20:48:18 +0100
committerGitHub <noreply@github.com>2023-03-04 20:48:18 +0100
commit76490b9235fea486d9e2625e028b3cea88254a7e (patch)
tree2dea92b4a4d88fbdf9502bb2933ecc763003557a
parent9cabc40ab1dd3b170728be47e47455b1aa620f9b (diff)
parent4b92024cf1bf9623a767f7e32a72cdf913acc1ec (diff)
downloadrust-76490b9235fea486d9e2625e028b3cea88254a7e.tar.gz
rust-76490b9235fea486d9e2625e028b3cea88254a7e.zip
Rollup merge of #108724 - tshepang:de-public, r=compiler-errors
field is not used outside the crate

See b61a28b2a1db297ed3bd15a3c5ac5c8c40feb586
-rw-r--r--compiler/rustc_infer/src/infer/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_infer/src/infer/mod.rs b/compiler/rustc_infer/src/infer/mod.rs
index bd1f96635a6..387843ee693 100644
--- a/compiler/rustc_infer/src/infer/mod.rs
+++ b/compiler/rustc_infer/src/infer/mod.rs
@@ -94,10 +94,10 @@ pub(crate) type UnificationTable<'a, 'tcx, T> = ut::UnificationTable<
 /// call to `start_snapshot` and `rollback_to`.
 #[derive(Clone)]
 pub struct InferCtxtInner<'tcx> {
-    /// Cache for projections. This cache is snapshotted along with the infcx.
+    /// Cache for projections.
     ///
-    /// Public so that `traits::project` can use it.
-    pub projection_cache: traits::ProjectionCacheStorage<'tcx>,
+    /// This cache is snapshotted along with the infcx.
+    projection_cache: traits::ProjectionCacheStorage<'tcx>,
 
     /// We instantiate `UnificationTable` with `bounds<Ty>` because the types
     /// that might instantiate a general type variable have an order,