Ignore errors re: unreachable blocks in dataflow cursor unit tests
This commit is contained in:
parent
aca8bcb48f
commit
abd3fe347b
2 changed files with 9 additions and 0 deletions
|
@ -64,6 +64,13 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
/// Allows inspection of unreachable basic blocks even with `debug_assertions` enabled.
|
||||
#[cfg(test)]
|
||||
pub(crate) fn allow_unreachable(&mut self) {
|
||||
#[cfg(debug_assertions)]
|
||||
self.reachable_blocks.insert_all()
|
||||
}
|
||||
|
||||
/// Returns the underlying `Results`.
|
||||
pub fn results(&self) -> &Results<'tcx, A> {
|
||||
&self.results.borrow()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue