diff options
| author | bors <bors@rust-lang.org> | 2019-11-25 01:20:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-11-25 01:20:38 +0000 |
| commit | c9bacb70f0b19d324a548bd7942692ab18d159a4 (patch) | |
| tree | 66f7ee078e270f46163da47516b38139204476bb /src/libsyntax/feature_gate | |
| parent | 388ffd9df83cfac20b3fbf7128eb44d5b1526f8c (diff) | |
| parent | f4efc5de8a91c8322f83fe07ced5ab119a457ade (diff) | |
Auto merge of #66671 - matthewjasper:ast-address-of, r=Centril
Ast address-of This is the parts of #64588 that don't affect MIR. If an address-of expression makes it to MIR lowering we error and lower to the best currently expressible approximation to limit further errors. r? @Centril
Diffstat (limited to 'src/libsyntax/feature_gate')
| -rw-r--r-- | src/libsyntax/feature_gate/active.rs | 5 | ||||
| -rw-r--r-- | src/libsyntax/feature_gate/check.rs | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/libsyntax/feature_gate/active.rs b/src/libsyntax/feature_gate/active.rs index fa0ab90c702..b04b30aa6bc 100644 --- a/src/libsyntax/feature_gate/active.rs +++ b/src/libsyntax/feature_gate/active.rs @@ -520,13 +520,16 @@ declare_features! ( /// Allows using the `efiapi` ABI. (active, abi_efiapi, "1.40.0", Some(65815), None), + /// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions. + (active, raw_ref_op, "1.41.0", Some(64490), None), + /// Allows diverging expressions to fall back to `!` rather than `()`. (active, never_type_fallback, "1.41.0", Some(65992), None), /// Allows using the `#[register_attr]` attribute. (active, register_attr, "1.41.0", Some(66080), None), - /// Allows using the `#[register_attr]` attribute. + /// Allows using the `#[register_tool]` attribute. (active, register_tool, "1.41.0", Some(66079), None), /// Allows the use of `if` and `match` in constants. diff --git a/src/libsyntax/feature_gate/check.rs b/src/libsyntax/feature_gate/check.rs index f966850254f..846508bd0cd 100644 --- a/src/libsyntax/feature_gate/check.rs +++ b/src/libsyntax/feature_gate/check.rs @@ -866,6 +866,7 @@ pub fn check_crate(krate: &ast::Crate, gate_all!(generators, "yield syntax is experimental"); gate_all!(or_patterns, "or-patterns syntax is experimental"); gate_all!(const_extern_fn, "`const extern fn` definitions are unstable"); + gate_all!(raw_ref_op, "raw address of syntax is experimental"); // All uses of `gate_all!` below this point were added in #65742, // and subsequently disabled (with the non-early gating readded). |
