Skip to content

Commit

Permalink
Rollup merge of #122060 - clubby789:stabilize-imported-main, r=lcnr
Browse files Browse the repository at this point in the history
Stabilize `imported_main`

FCP: rust-lang/rust#28937 (comment)
Docs: rust-lang/reference#1461
  • Loading branch information
matthiaskrgr committed Mar 18, 2024
2 parents 8b2052a + dc54c77 commit 0ab1a76
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions test-cargo-miri/tests/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
#![feature(imported_main)]

use cargo_miri_test::main;
2 changes: 0 additions & 2 deletions tests/pass/imported_main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(imported_main)]

pub mod foo {
pub fn mymain() {
println!("Hello, world!");
Expand Down
2 changes: 0 additions & 2 deletions tests/pass/main_fn.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(imported_main)]

mod foo {
pub(crate) fn bar() {}
}
Expand Down

0 comments on commit 0ab1a76

Please sign in to comment.