Skip to content

Commit e672389

Browse files
committed
remove #![feature(label_break_value)] from generated source code
1 parent e973fb3 commit e672389

File tree

7 files changed

+0
-8
lines changed

7 files changed

+0
-8
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-refactor/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
box_patterns,
66
generator_trait,
77
drain_filter,
8-
label_break_value,
98
)]
109
#![cfg_attr(feature = "profile", feature(proc_macro_hygiene))]
1110

c2rust-transpile/src/cfg/mod.rs

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

20742074
if has_fallthrough && need_block && use_brk_lbl {
2075-
translator.use_feature("label_break_value");
20762075
let block_body = mk().block(stmts);
20772076
let block: Box<Expr> = mk().labelled_block_expr(block_body, brk_lbl.pretty_print());
20782077
stmts = vec![mk().expr_stmt(block)]

c2rust-transpile/src/translator/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4109,7 +4109,6 @@ impl<'c> Translation<'c> {
41094109
return Ok(WithStmts::new(stmts, val));
41104110
}
41114111
_ => {
4112-
self.use_feature("label_break_value");
41134112
stmts.push(stmt)
41144113
}
41154114
}

examples/tinycc/translate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
MAIN_RS = os.path.join(RUST_SRC_DIR, "main.rs")
3636
# TODO(kkysen) shouldn't need `extern crate`
3737
MAIN_MODS = """\
38-
#![feature(label_break_value)]
3938
extern crate libc;
4039
pub mod i386_asm;
4140
pub mod libtcc;

examples/tmux/translate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
]
5757
# TODO(kkysen) shouldn't need `extern crate`
5858
MAIN_MODS = """\
59-
#![feature(label_break_value)]
6059
#![allow(unused_imports)]
6160
extern crate libc;
6261

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

0 commit comments

Comments
 (0)