Return the whole-block check key for a constant when its block has a supported homogeneous shape. This is used by batch schedulers to avoid assigning multiple workers to members of the same block.
(
&mut self,
id: &KId<M>,
)
| 60 | /// supported homogeneous shape. This is used by batch schedulers to avoid |
| 61 | /// assigning multiple workers to members of the same block. |
| 62 | pub fn coordinated_check_block_for_const( |
| 63 | &mut self, |
| 64 | id: &KId<M>, |
| 65 | ) -> Result<Option<KId<M>>, TcError<M>> { |
| 66 | let Some(c) = self.try_get_const(id)? else { |
| 67 | return Ok(None); |
| 68 | }; |
| 69 | self.coordinated_block_for(&c) |
| 70 | } |
| 71 | |
| 72 | /// Type-check a single constant. Clears per-constant caches first. |
| 73 | pub fn check_const(&mut self, id: &KId<M>) -> Result<(), TcError<M>> |
nothing calls this directly
no test coverage detected