]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/borrow_check/path_utils.rs
Fix incorrect use mut diagnostics
[rust.git] / compiler / rustc_mir / src / borrow_check / path_utils.rs
index fa3ae2367e08e524279725965ec7eec546107cdf..80de3b4e363bfb369a40b701ff9cf944e43df84a 100644 (file)
@@ -143,7 +143,7 @@ pub(super) fn borrow_of_local_data(place: Place<'_>) -> bool {
 /// of a closure type.
 pub(crate) fn is_upvar_field_projection(
     tcx: TyCtxt<'tcx>,
-    upvars: &[Upvar],
+    upvars: &[Upvar<'tcx>],
     place_ref: PlaceRef<'tcx>,
     body: &Body<'tcx>,
 ) -> Option<Field> {