summary refs log tree commit diff
path: root/compiler/rustc_ast/src/entry.rs
AgeCommit message (Collapse)AuthorLines
2024-05-04Various improvements to entrypoint codeNilstrieb-1/+25
This moves some code around and adds some documentation comments to make it easier to understand what's going on with the entrypoint logic, which is a bit complicated. The only change in behavior is consolidating the error messages for unix_sigpipe to make the code slightly simpler.
2023-10-13Format all the let chains in compilerMichael Goulet-1/+3
2023-10-01Factor out the two `entry_point_type` functions.Nicholas Nethercote-0/+27
They are very similar, and each one has a comment about the importance of being kept in sync with the other. This commit removes the duplication.
2022-06-22Fixup missing renames from `#[main]` to `#[rustc_main]`Martin Nordholts-1/+1
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.
2021-06-09Fix ICE when `main` is declared in an `extern` blockasquared31415-0/+1
2020-08-30mv compiler to compiler/mark-0/+7