]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_analysis/src/mem_categorization.rs
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[rust.git] / compiler / rustc_hir_analysis / src / mem_categorization.rs
index a6880c7e77ac3ebc645cd844865e4cdf19de6f0d..b62c5b5e077833229e3362075ef7619209fded8b 100644 (file)
@@ -184,7 +184,7 @@ pub(crate) fn expr_ty_adjusted(&self, expr: &hir::Expr<'_>) -> McResult<Ty<'tcx>
     ///   modes #42640) may look like `Some(x)` but in fact have
     ///   implicit deref patterns attached (e.g., it is really
     ///   `&Some(x)`). In that case, we return the "outermost" type
-    ///   (e.g., `&Option<T>).
+    ///   (e.g., `&Option<T>`).
     pub(crate) fn pat_ty_adjusted(&self, pat: &hir::Pat<'_>) -> McResult<Ty<'tcx>> {
         // Check for implicit `&` types wrapping the pattern; note
         // that these are never attached to binding patterns, so