Skip to content

Commit 4ff6763

Browse files
committed
rustc: Lowercase "main function not found" error
1 parent 0cddcac commit 4ff6763

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/comp/middle/typeck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2698,7 +2698,7 @@ fn check_for_main_fn(tcx: &ty::ctxt, crate: &@ast::crate) {
26982698
if !tcx.sess.get_opts().library {
26992699
alt tcx.sess.get_main_id() {
27002700
some(id) { check_main_fn_ty(tcx, id); }
2701-
none. { tcx.sess.span_err(crate.span, "Main function not found"); }
2701+
none. { tcx.sess.span_err(crate.span, "main function not found"); }
27022702
}
27032703
}
27042704
}

src/test/compile-fail/missing-main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// error-pattern:Main function not found
1+
// error-pattern:main function not found
22
fn mian() { }

0 commit comments

Comments
 (0)