about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-16 08:01:45 +0000
committerbors <bors@rust-lang.org>2021-04-16 08:01:45 +0000
commitd4bc912c4816a660b052dd7c8dffbc63fd4dffdf (patch)
tree316d9fb74c6101f1a561acb73a860773c86d3288 /src/tools
parent710da44e2249873eed123f8960667b88b1334289 (diff)
parentfc357039f9065d4a707cbdd1ce6f30afaf7e3f26 (diff)
downloadrust-d4bc912c4816a660b052dd7c8dffbc63fd4dffdf.tar.gz
rust-d4bc912c4816a660b052dd7c8dffbc63fd4dffdf.zip
Auto merge of #84217 - crlf0710:remove_main_attr_pure, r=petrochenkov
Remove #[main] attribute.

This removes the #[main] attribute support from the compiler according to the decisions within #29634. For existing use cases within test harness generation, replaced it with a newly-introduced internal attribute `#[rustc_main]`.

This is first part extracted from #84062 .

Closes #29634.

r? `@petrochenkov`
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/clippy/tests/ui/crate_level_checks/entrypoint_recursion.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/tests/ui/crate_level_checks/entrypoint_recursion.rs b/src/tools/clippy/tests/ui/crate_level_checks/entrypoint_recursion.rs
index 995787c5336..7ff5a16ed86 100644
--- a/src/tools/clippy/tests/ui/crate_level_checks/entrypoint_recursion.rs
+++ b/src/tools/clippy/tests/ui/crate_level_checks/entrypoint_recursion.rs
@@ -1,11 +1,11 @@
 // ignore-macos
 // ignore-windows
 
-#![feature(main)]
+#![feature(rustc_attrs)]
 
 #[warn(clippy::main_recursion)]
 #[allow(unconditional_recursion)]
-#[main]
+#[rustc_main]
 fn a() {
     println!("Hello, World!");
     a();