bors 234781afe3 Auto merge of #82285 - nhwn:nonzero-debug, r=nagisa
Use u32 over Option<u32> in DebugLoc

~~Changes `Option<u32>` fields in `DebugLoc` to `Option<NonZeroU32>`. Since the respective fields (`line` and `col`) are guaranteed to be 1-based, this layout optimization is a freebie.~~

EDIT: Changes `Option<u32>` fields in `DebugLoc` to `u32`. As `@bugadani` pointed out, an `Option<NonZeroU32>` is probably an unnecessary layer of abstraction since the `None` variant is always used as `UNKNOWN_LINE_NUMBER` (which is just `0`).  Also, `SourceInfo` in `metadata.rs` already uses a `u32` instead of an `Option<u32>` to encode the same information, so I think this change is warranted.

Since `@jyn514` raised some concerns over measuring performance in a similar PR (#82255), does this need a perf run?
2021-03-07 20:23:23 +00:00
..
2021-03-01 23:35:35 +01:00
2021-02-28 10:19:44 +01:00
2021-02-17 11:25:55 +01:00
2021-03-01 23:35:35 +01:00
2021-02-14 09:45:35 +11:00
2021-02-14 09:45:35 +11:00
2021-02-28 10:19:44 +01:00
2021-01-23 17:19:49 -05:00
2021-01-23 17:19:49 -05:00
2021-02-25 04:21:12 +03:00