Skip to content

Commit 3828e9e

Browse files
committed
Use the same way to specifiy the SCOPE_DATA_* constants as used for the MAX
1 parent 06a041c commit 3828e9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc/middle/region.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ pub struct Scope {
110110
pub(crate) code: u32
111111
}
112112

113-
const SCOPE_DATA_NODE: u32 = !0;
114-
const SCOPE_DATA_CALLSITE: u32 = !1;
115-
const SCOPE_DATA_ARGUMENTS: u32 = !2;
116-
const SCOPE_DATA_DESTRUCTION: u32 = !3;
113+
const SCOPE_DATA_NODE: u32 = 0xFFFF_FFFF;
114+
const SCOPE_DATA_CALLSITE: u32 = 0xFFFF_FFFE;
115+
const SCOPE_DATA_ARGUMENTS: u32 = 0xFFFF_FFFD;
116+
const SCOPE_DATA_DESTRUCTION: u32 = 0xFFFF_FFFC;
117117
// be sure to add the MAX of FirstStatementIndex if you add more constants here
118118

119119
#[derive(Clone, PartialEq, PartialOrd, Eq, Ord, Hash, Debug, Copy, RustcEncodable, RustcDecodable)]

0 commit comments

Comments
 (0)