diff --git a/compiler/rustc_mir_dataflow/src/framework/cursor.rs b/compiler/rustc_mir_dataflow/src/framework/cursor.rs index c978bddfef5..6285199e5b6 100644 --- a/compiler/rustc_mir_dataflow/src/framework/cursor.rs +++ b/compiler/rustc_mir_dataflow/src/framework/cursor.rs @@ -147,7 +147,7 @@ pub(crate) fn allow_unreachable(&mut self) { } /// Returns the underlying `Results`. - pub fn results(&mut self) -> &Results<'tcx, A, R::EntrySets> { + pub fn results(&self) -> &Results<'tcx, A, R::EntrySets> { self.results.borrow() }