about summary refs log tree commit diff
path: root/compiler/rustc_span/src
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 /compiler/rustc_span/src
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 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index c6e822e7b40..52270f0e627 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1008,6 +1008,7 @@ symbols! {
         rustc_layout_scalar_valid_range_start,
         rustc_legacy_const_generics,
         rustc_macro_transparency,
+        rustc_main,
         rustc_mir,
         rustc_nonnull_optimization_guaranteed,
         rustc_object_lifetime_default,