summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2016-05-26 20:02:56 +0300
committerEduard Burtescu <edy.burt@gmail.com>2016-06-05 14:41:03 +0300
commitd8dddbf2014f92cadfbf14e75a71c345a9e12498 (patch)
treeae12f6d9ab02d568792b580e6f6b7040bb12dd34 /src/libsyntax
parent702c47baae8e417d5ca377acb886893e902f2afa (diff)
downloadrust-d8dddbf2014f92cadfbf14e75a71c345a9e12498.tar.gz
rust-d8dddbf2014f92cadfbf14e75a71c345a9e12498.zip
Respect #[rustc_inherit_overflow_checks] in mir::build and trans.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index c11347f5762..86c4a33896d 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -502,6 +502,13 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeGat
                                          is just used to make tests pass \
                                          and will never be stable",
                                         cfg_fn!(rustc_attrs))),
+    ("rustc_inherit_overflow_checks", Whitelisted, Gated("rustc_attrs",
+                                                         "the `#[rustc_inherit_overflow_checks]` \
+                                                          attribute is just used to control \
+                                                          overflow checking behavior of several \
+                                                          libcore functions that are inlined \
+                                                          across crates and will never be stable",
+                                                          cfg_fn!(rustc_attrs))),
 
     ("allow_internal_unstable", Normal, Gated("allow_internal_unstable",
                                               EXPLAIN_ALLOW_INTERNAL_UNSTABLE,