Skip to content

Commit 43f7566

Browse files
committed
transpile: don't emit now stabilized #![feature(asm)] in edition 2024
1 parent c2ba221 commit 43f7566

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

c2rust-transpile/src/translator/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ impl<'c> Translation<'c> {
15941594

15951595
/// Called when translation makes use of a language feature that will require a feature-gate.
15961596
pub fn use_feature(&self, feature: &'static str) {
1597-
if matches!(feature, "label_break_value" | "raw_ref_op")
1597+
if matches!(feature, "asm" | "label_break_value" | "raw_ref_op")
15981598
&& self.tcfg.edition >= RustEdition::Rust2024
15991599
{
16001600
return;

c2rust-transpile/tests/snapshots/snapshots__transpile@vm_x86.c.2024.x86_64.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ expression: cat tests/snapshots/arch-specific/vm_x86.2024.x86_64.rs
1010
unused_assignments,
1111
unused_mut
1212
)]
13-
#![feature(asm)]
1413
use ::core::arch::asm;
1514
#[derive(Copy, Clone)]
1615
#[repr(C)]

0 commit comments

Comments
 (0)