]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax_pos/span_encoding.rs
Tweak `Span` encoding.
[rust.git] / src / libsyntax_pos / span_encoding.rs
index 03d7a9eb7423800bf51aa5e0772bdd85a91c108d..743e61e3c2236d35a0816430e0e1718566d5e8ec 100644 (file)
@@ -74,12 +74,12 @@ pub fn data(self) -> SpanData {
 
 // Tag = 0, inline format.
 // -------------------------------------------------------------
-// | base 31:8  | len 7:1  | ctxt (currently 0 bits) | tag 0:0 |
+// | base 31:7  | len 6:1  | ctxt (currently 0 bits) | tag 0:0 |
 // -------------------------------------------------------------
 // Since there are zero bits for ctxt, only SpanData with a 0 SyntaxContext
 // can be inline.
-const INLINE_SIZES: [u32; 3] = [24, 7, 0];
-const INLINE_OFFSETS: [u32; 3] = [8, 1, 1];
+const INLINE_SIZES: [u32; 3] = [25, 6, 0];
+const INLINE_OFFSETS: [u32; 3] = [7, 1, 1];
 
 // Tag = 1, interned format.
 // ------------------------