]> git.lizzy.rs Git - rust.git/commitdiff
Use the same way to specifiy the `SCOPE_DATA_*` constants as used for the MAX
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Fri, 7 Sep 2018 15:07:42 +0000 (17:07 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Tue, 11 Sep 2018 09:25:29 +0000 (11:25 +0200)
src/librustc/middle/region.rs

index a2a056a3590c999e700b1f16a6139fdbb71443f2..0fbd74e250e714b7a72d5974975dad9267e30b87 100644 (file)
@@ -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)]