mozilla/rust — pull request #6119 by brson (2013-04-30 00:18:20+00:00)
Title: Only look for `main` at the crate level

r? @ILyoan

This pulls all the logic for discovering the crate entry point into a new pass (out of resolve and typeck), then changes it so that main is only looked for at the crate level (`#[main]` can still be used anywhere).

I don't understand the special android logic here and worry that I may have broken it.