We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff19a53 commit b7cd24dCopy full SHA for b7cd24d
src/librustc/ty/query/mod.rs
@@ -476,7 +476,8 @@ define_queries! { <'tcx>
476
477
[] fn foreign_modules: ForeignModules(CrateNum) -> Lrc<Vec<ForeignModule>>,
478
479
- // For a library crate, this is always none
+ /// Identifies the entry-point (e.g. the `main` function) for a given
480
+ /// crate, returning `None` if there is no entry point (such as for library crates).
481
[] fn entry_fn: EntryFn(CrateNum) -> Option<(DefId, EntryFnType)>,
482
[] fn plugin_registrar_fn: PluginRegistrarFn(CrateNum) -> Option<DefId>,
483
[] fn proc_macro_decls_static: ProcMacroDeclsStatic(CrateNum) -> Option<DefId>,
0 commit comments