]> git.lizzy.rs Git - rust.git/commit
Fixup missing renames from `#[main]` to `#[rustc_main]`
authorMartin Nordholts <enselic@gmail.com>
Wed, 22 Jun 2022 16:23:21 +0000 (18:23 +0200)
committerMartin Nordholts <enselic@gmail.com>
Wed, 22 Jun 2022 16:24:09 +0000 (18:24 +0200)
commit94477e3323330f531705d6968761e7e8fd6f749e
tree1be0da1ecdac5ea7142bae7dc3b064bae72fa0ba
parent6ec3993ef4a4eb72bc20477fe9a4d92acd53f2c6
Fixup missing renames from `#[main]` to `#[rustc_main]`

In fc357039f9 `#[main]` was removed and replaced with `#[rustc_main]`.
In some place the rename was forgotten, which makes the current code
confusing, because at first glance it seems that `#[main]` is still
around. Perform the renames also in these places.
compiler/rustc_ast/src/entry.rs
compiler/rustc_builtin_macros/src/test_harness.rs
compiler/rustc_passes/src/entry.rs