diff options
| author | bors <bors@rust-lang.org> | 2015-09-14 11:05:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-14 11:05:34 +0000 |
| commit | 2d4ae52cbdca96d4dd6d5a009e4a5ef87a279df0 (patch) | |
| tree | 782f1b598d547a1d7b62afe14809b84aa82d11f7 /src/libsyntax | |
| parent | 664a45976fb5dd433766f73a221435883151d0ee (diff) | |
| parent | 3ef75d5774cb9a7cf839a69341c620b98fa9c7df (diff) | |
| download | rust-2d4ae52cbdca96d4dd6d5a009e4a5ef87a279df0.tar.gz rust-2d4ae52cbdca96d4dd6d5a009e4a5ef87a279df0.zip | |
Auto merge of #28358 - dotdash:nounwind, r=alexcrichton
This allows to skip the codegen for all the unneeded landing pads, reducing code size across the board by about 2-5%, depending on the crate. Compile times seem to be pretty unaffected though :-/
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 47f24856303..abc04102950 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -188,6 +188,9 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Option<u32>, Status // allow `extern "platform-intrinsic" { ... }` ("platform_intrinsics", "1.4.0", Some(27731), Active), + + // allow `#[unwind]` + ("unwind_attributes", "1.4.0", None, Active), ]; // (changing above list without updating src/doc/reference.md makes @cmr sad) @@ -316,6 +319,7 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeGat ("unsafe_no_drop_flag", Whitelisted, Gated("unsafe_no_drop_flag", "unsafe_no_drop_flag has unstable semantics \ and may be removed in the future")), + ("unwind", Whitelisted, Gated("unwind_attributes", "#[unwind] is experimental")), // used in resolve ("prelude_import", Whitelisted, Gated("prelude_import", |
