Skip to content

Commit 84b26eb

Browse files
committed
Suppress 'unused' warning
1 parent ef84ded commit 84b26eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/concurrency/thread.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ impl<'tcx> Thread<'tcx> {
212212
}
213213

214214
// FIXME(genmc,question): is this ok to be public? (it exposes implementation details)
215+
#[allow(unused)] // Note: only used if `genmc` feature is enabled.
215216
pub(crate) fn get_state(&self) -> &ThreadState<'tcx> {
216217
&self.state
217218
}
@@ -500,6 +501,7 @@ impl<'tcx> ThreadManager<'tcx> {
500501
}
501502

502503
// FIXME(genmc,question): is this ok to exist?
504+
#[allow(unused)] // Note: only used if `genmc` feature is enabled.
503505
pub(crate) fn get_thread_stack(
504506
&self,
505507
id: ThreadId,

0 commit comments

Comments
 (0)