about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/entry.rs
AgeCommit message (Collapse)AuthorLines
2025-01-21remove support for the #[start] attributeRalf Jung-9/+1
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
`rustc_span::symbol` defines some things that are re-exported from `rustc_span`, such as `Symbol` and `sym`. But it doesn't re-export some closely related things such as `Ident` and `kw`. So you can do `use rustc_span::{Symbol, sym}` but you have to do `use rustc_span::symbol::{Ident, kw}`, which is inconsistent for no good reason. This commit re-exports `Ident`, `kw`, and `MacroRulesNormalizedIdent`, and changes many `rustc_span::symbol::` qualifiers in `compiler/` to `rustc_span::`. This is a 200+ net line of code reduction, mostly because many files with two `use rustc_span` items can be reduced to one.
2024-12-15Add hir::AttributeJonathan Dönszelmann-2/+2
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-2/+2
2024-09-11Also fix if in elseMichael Goulet-11/+9
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
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