]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_typeck/src/expectation.rs
Add label to method chains where assoc type remains the same
[rust.git] / compiler / rustc_hir_typeck / src / expectation.rs
index e9e810344776b963d52a0eeb85fbd6ecbcc8c376..4f086cf597d8826dd4a4b512f73a6ae9d661f4ab 100644 (file)
@@ -79,9 +79,9 @@ pub(super) fn rvalue_hint(fcx: &FnCtxt<'a, 'tcx>, ty: Ty<'tcx>) -> Expectation<'
         }
     }
 
-    // Resolves `expected` by a single level if it is a variable. If
-    // there is no expected type or resolution is not possible (e.g.,
-    // no constraints yet present), just returns `self`.
+    /// Resolves `expected` by a single level if it is a variable. If
+    /// there is no expected type or resolution is not possible (e.g.,
+    /// no constraints yet present), just returns `self`.
     fn resolve(self, fcx: &FnCtxt<'a, 'tcx>) -> Expectation<'tcx> {
         match self {
             NoExpectation => NoExpectation,