nhwn: use Option<NonZeroU32> in DebugLoc

This commit is contained in:
Nathan Nguyen 2021-02-18 23:18:20 -06:00
parent 0148b971c9
commit f5aa1bceb9
3 changed files with 13 additions and 12 deletions

View file

@ -102,8 +102,8 @@ fn make_mir_scope(
DIB(cx),
parent_scope.dbg_scope.unwrap(),
file_metadata,
loc.line.unwrap_or(UNKNOWN_LINE_NUMBER),
loc.col.unwrap_or(UNKNOWN_COLUMN_NUMBER),
loc.line.map_or(UNKNOWN_LINE_NUMBER, |n| n.get()),
loc.col.map_or(UNKNOWN_COLUMN_NUMBER, |n| n.get()),
)
},
};