From 226bcdf7d1e774f5967f92b0bd0bf237179f95c9 Mon Sep 17 00:00:00 2001 From: Wangshan Lu Date: Sun, 22 May 2016 22:36:55 +0800 Subject: Rename main thread from "
" to "main". Fix issue #33789 --- src/libstd/rt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/rt.rs b/src/libstd/rt.rs index 6eee4ee9bbe..15c6c3a9809 100644 --- a/src/libstd/rt.rs +++ b/src/libstd/rt.rs @@ -51,7 +51,7 @@ fn lang_start(main: *const u8, argc: isize, argv: *const *const u8) -> isize { // created. Note that this isn't necessary in general for new threads, // but we just do this to name the main thread and to give it correct // info about the stack bounds. - let thread: Thread = NewThread::new(Some("
".to_owned())); + let thread: Thread = NewThread::new(Some("main".to_owned())); thread_info::set(main_guard, thread); // Store our args if necessary in a squirreled away location -- cgit 1.4.1-3-g733a5