about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-10-18 21:21:32 +0900
committerGitHub <noreply@github.com>2022-10-18 21:21:32 +0900
commit6e7d206a7bd2ea10c151a0916e3f325b14e91311 (patch)
treefffc9e795a461d1654ccc5a42532e2b64598341e /compiler/rustc_ast_lowering
parentb411b8861c06bd34aa279776dd48711e26b4163d (diff)
parent430bd6200dd290497423c5f3a1f9ee4e9bd35d67 (diff)
downloadrust-6e7d206a7bd2ea10c151a0916e3f325b14e91311.tar.gz
rust-6e7d206a7bd2ea10c151a0916e3f325b14e91311.zip
Rollup merge of #103168 - Amanieu:stable_asm_sym, r=davidtwco
Stabilize asm_sym

Tracking issue #93333

Reference PR: https://github.com/rust-lang/reference/pull/1270
Diffstat (limited to 'compiler/rustc_ast_lowering')
-rw-r--r--compiler/rustc_ast_lowering/src/asm.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_ast_lowering/src/asm.rs b/compiler/rustc_ast_lowering/src/asm.rs
index 54c83fb7604..450cdf246b1 100644
--- a/compiler/rustc_ast_lowering/src/asm.rs
+++ b/compiler/rustc_ast_lowering/src/asm.rs
@@ -192,16 +192,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
                         }
                     }
                     InlineAsmOperand::Sym { ref sym } => {
-                        if !self.tcx.features().asm_sym {
-                            feature_err(
-                                &sess.parse_sess,
-                                sym::asm_sym,
-                                *op_sp,
-                                "sym operands for inline assembly are unstable",
-                            )
-                            .emit();
-                        }
-
                         let static_def_id = self
                             .resolver
                             .get_partial_res(sym.id)