We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fbe046 commit bec24a2Copy full SHA for bec24a2
compiler/rustc_interface/src/queries.rs
@@ -62,7 +62,7 @@ impl<'a, T> std::ops::DerefMut for QueryResult<'a, T> {
62
63
impl<'a, 'tcx> QueryResult<'a, &'tcx GlobalCtxt<'tcx>> {
64
pub fn enter<T>(&mut self, f: impl FnOnce(TyCtxt<'tcx>) -> T) -> T {
65
- (*self.0).get_mut().enter(f)
+ (*self.0).borrow().enter(f)
66
}
67
68
0 commit comments