Skip to content

Commit 232409f

Browse files
committed
Move ActiveJobGuard definition next to its impls.
1 parent 11f0569 commit 232409f

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

compiler/rustc_query_impl/src/execution.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,6 @@ where
9393
Some(())
9494
}
9595

96-
/// Guard object representing the responsibility to execute a query job and
97-
/// mark it as completed.
98-
///
99-
/// This will poison the relevant query key if it is dropped without calling
100-
/// [`Self::complete`].
101-
struct ActiveJobGuard<'tcx, K>
102-
where
103-
K: Eq + Hash + Copy,
104-
{
105-
state: &'tcx QueryState<'tcx, K>,
106-
key: K,
107-
key_hash: u64,
108-
}
109-
11096
#[cold]
11197
#[inline(never)]
11298
fn mk_cycle<'tcx, C: QueryCache>(
@@ -137,6 +123,20 @@ fn mk_cycle<'tcx, C: QueryCache>(
137123
}
138124
}
139125

126+
/// Guard object representing the responsibility to execute a query job and
127+
/// mark it as completed.
128+
///
129+
/// This will poison the relevant query key if it is dropped without calling
130+
/// [`Self::complete`].
131+
struct ActiveJobGuard<'tcx, K>
132+
where
133+
K: Eq + Hash + Copy,
134+
{
135+
state: &'tcx QueryState<'tcx, K>,
136+
key: K,
137+
key_hash: u64,
138+
}
139+
140140
impl<'tcx, K> ActiveJobGuard<'tcx, K>
141141
where
142142
K: Eq + Hash + Copy,

0 commit comments

Comments
 (0)