From 3828e9e16f4eb3d7b19f777b9490b9ce468fe7bf Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Fri, 7 Sep 2018 17:07:42 +0200 Subject: [PATCH] Use the same way to specifiy the `SCOPE_DATA_*` constants as used for the MAX --- src/librustc/middle/region.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustc/middle/region.rs b/src/librustc/middle/region.rs index a2a056a3590c..0fbd74e250e7 100644 --- a/src/librustc/middle/region.rs +++ b/src/librustc/middle/region.rs @@ -110,10 +110,10 @@ pub struct Scope { pub(crate) code: u32 } -const SCOPE_DATA_NODE: u32 = !0; -const SCOPE_DATA_CALLSITE: u32 = !1; -const SCOPE_DATA_ARGUMENTS: u32 = !2; -const SCOPE_DATA_DESTRUCTION: u32 = !3; +const SCOPE_DATA_NODE: u32 = 0xFFFF_FFFF; +const SCOPE_DATA_CALLSITE: u32 = 0xFFFF_FFFE; +const SCOPE_DATA_ARGUMENTS: u32 = 0xFFFF_FFFD; +const SCOPE_DATA_DESTRUCTION: u32 = 0xFFFF_FFFC; // be sure to add the MAX of FirstStatementIndex if you add more constants here #[derive(Clone, PartialEq, PartialOrd, Eq, Ord, Hash, Debug, Copy, RustcEncodable, RustcDecodable)]