Skip to content

Commit

Permalink
Allow longer spans in the short format.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Apr 18, 2021
1 parent 080d302 commit 706c767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_span/src/span_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ pub struct Span {
ctxt_or_zero: u16,
}

const LEN_TAG: u16 = 0b1000_0000_0000_0000;
const MAX_LEN: u32 = 0b0111_1111_1111_1111;
const LEN_TAG: u16 = 0b1111_1111_1111_1111;
const MAX_LEN: u32 = (LEN_TAG as u32) - 1;
const MAX_CTXT: u32 = 0b1111_1111_1111_1111;

/// Dummy span, both position and length are zero, syntax context is zero as well.
Expand Down

0 comments on commit 706c767

Please sign in to comment.