18 matches across 1 files for func main lang:Rust path:compiler/rustc_ast/src/entry.rs
snippet_mode: auto · sorted by relevance
compiler/rustc_ast/src/entry.rs RUST 18 matches · showing 5 view file →
3#[derive(Debug)]
4pub enum EntryPointType {
5 /// This function is not an entrypoint.
6 None,
7 /// This is a function called `main` at the root level.
· · ·
7 /// This is a function called `main` at the root level.
8 /// ```
9 /// fn main() {}
· · ·
9 /// fn main() {}
10 /// ```
11 MainNamed,
· · ·
11 MainNamed,
12 /// This is a function with the `#[rustc_main]` attribute.
13 /// Used by the testing harness to create the test entrypoint.
· · ·
12 /// This is a function with the `#[rustc_main]` attribute.
13 /// Used by the testing harness to create the test entrypoint.
14 /// ```ignore (clashes with test entrypoint)
+ 13 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.