We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 682a616 commit 4f0493aCopy full SHA for 4f0493a
src/write/unit.rs
@@ -1378,6 +1378,7 @@ pub struct DebugInfoOffsets {
1378
1379
impl DebugInfoOffsets {
1380
#[cfg(test)]
1381
+ #[cfg(feature = "read")]
1382
pub(crate) fn unit_offsets(&self, unit: UnitId) -> &UnitOffsets {
1383
debug_assert_eq!(self.base_id, unit.base_id);
1384
&self.units[unit.index]
@@ -1408,6 +1409,7 @@ pub(crate) struct UnitOffsets {
1408
1409
1410
impl UnitOffsets {
1411
1412
1413
fn none() -> Self {
1414
UnitOffsets {
1415
base_id: BaseId::default(),
0 commit comments