diff --git a/library/std/src/rt.rs b/library/std/src/rt.rs index 0bafd9f352e..ff6e433ebce 100644 --- a/library/std/src/rt.rs +++ b/library/std/src/rt.rs @@ -95,10 +95,7 @@ unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) { unsafe { sys::init(argc, argv, sigpipe); - // Next, set up the current Thread with the guard information we just - // 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. + // Set up the current thread to give it the right name. let thread = Thread::new(Some(rtunwrap!(Ok, CString::new("main")))); thread::set_current(thread); }