diff options
| author | bors <bors@rust-lang.org> | 2015-09-02 22:44:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-02 22:44:25 +0000 |
| commit | cd138dc4475fa90b007969d0a4e00f230be777cf (patch) | |
| tree | fbc0ce6c6df2055118a70340ecc1488d3b6d4311 /src/libsyntax/entry.rs | |
| parent | b7b1dced3c0ab90144b4844498a3b678d690b20e (diff) | |
| parent | facdf2ebb1dce9400a8c8ef0d85d7d278654effb (diff) | |
| download | rust-cd138dc4475fa90b007969d0a4e00f230be777cf.tar.gz rust-cd138dc4475fa90b007969d0a4e00f230be777cf.zip | |
Auto merge of #28138 - nrc:hir, r=nikomatsakis
r? @nikomatsakis Trying to land this first stab, which basically just duplicates the AST. Will file issues for the various things I've got in mind to improve.
Diffstat (limited to 'src/libsyntax/entry.rs')
| -rw-r--r-- | src/libsyntax/entry.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/entry.rs b/src/libsyntax/entry.rs index b6c5d0066a2..2b4df3186de 100644 --- a/src/libsyntax/entry.rs +++ b/src/libsyntax/entry.rs @@ -19,6 +19,8 @@ pub enum EntryPointType { OtherMain, // Not an entry point, but some other function named main } +// Beware, this is duplicated in librustc/middle/entry.rs, make sure to keep +// them in sync. pub fn entry_point_type(item: &Item, depth: usize) -> EntryPointType { match item.node { ItemFn(..) => { |
