Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
a1e1dba9cc40a90409bccb8b19e359c4bdf573e5
rust/compiler/rustc_ast/src/entry.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
173 B
Rust
Raw Normal View History

Fix ICE when `main` is declared in an `extern` block
2021-06-09 23:11:35 -04:00
#[derive(Debug)]
Move entry point identification logic to libsyntax Identifying entry points will be useful in --test mode, which is handled in libsyntax.
2015-08-23 14:12:39 -04:00
pub enum EntryPointType {
None,
MainNamed,
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.
2022-06-22 18:23:21 +02:00
RustcMainAttr,
Move entry point identification logic to libsyntax Identifying entry points will be useful in --test mode, which is handled in libsyntax.
2015-08-23 14:12:39 -04:00
Start,
OtherMain, // Not an entry point, but some other function named main
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1065ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API