Skip to content

Commit e07fb3c

Browse files
authored
transpile, analyze: remove #![feature(label_break_value)], stabilized in Rust 1.65 (our current nightly) (#1431)
* Fixes #731.
2 parents e529c77 + a25ddc2 commit e07fb3c

File tree

5 files changed

+2
-9
lines changed

5 files changed

+2
-9
lines changed

c2rust-analyze/tests/filecheck/alloc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![feature(extern_types)]
2-
#![feature(label_break_value)]
32
#![feature(rustc_private)]
43
#![feature(c_variadic)]
54
#![allow(non_upper_case_globals)]

c2rust-transpile/src/cfg/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,6 @@ impl CfgBuilder {
21302130
|| !IncCleanup::new(in_tail, brk_lbl.clone()).remove_tail_expr(&mut stmts);
21312131

21322132
if has_fallthrough && need_block && use_brk_lbl {
2133-
translator.use_feature("label_break_value");
21342133
let block_body = mk().block(stmts);
21352134
let block: Box<Expr> = mk().labelled_block_expr(block_body, brk_lbl.pretty_print());
21362135
stmts = vec![mk().expr_stmt(block)]

c2rust-transpile/src/translator/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4335,10 +4335,7 @@ impl<'c> Translation<'c> {
43354335

43364336
return Ok(WithStmts::new(stmts, val));
43374337
}
4338-
_ => {
4339-
self.use_feature("label_break_value");
4340-
stmts.push(stmt)
4341-
}
4338+
_ => stmts.push(stmt),
43424339
}
43434340
}
43444341

tests/gotos/src/test_translation_only.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//! feature_label_break_value
2-
31
use crate::jump_into_loop::rust_jump_into_loop;
42
use crate::label_break_trigger::rust_triggers_label_break;
53

tests/misc/src/test_sizeofs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! feature_core_intrinsics, feature_label_break_value
1+
//! feature_core_intrinsics
22
33
use crate::sizeofs::rust_sizeofs;
44
use std::ffi::{c_int, c_uint};

0 commit comments

Comments
 (0)