Replace libstd, libcore, liballoc in line comments.
This commit is contained in:
parent
72067c77bd
commit
db47071df2
27 changed files with 48 additions and 48 deletions
|
@ -356,7 +356,7 @@ impl<I, O> Clone for Client<I, O> {
|
|||
|
||||
fn maybe_install_panic_hook(force_show_panics: bool) {
|
||||
// Hide the default panic output within `proc_macro` expansions.
|
||||
// NB. the server can't do this because it may use a different libstd.
|
||||
// NB. the server can't do this because it may use a different std.
|
||||
static HIDE_PANICS_DURING_EXPANSION: Once = Once::new();
|
||||
HIDE_PANICS_DURING_EXPANSION.call_once(|| {
|
||||
let prev = panic::take_hook();
|
||||
|
|
|
@ -112,7 +112,7 @@ macro_rules! define_dispatcher_impl {
|
|||
$name::$method(server, $($arg),*)
|
||||
};
|
||||
// HACK(eddyb) don't use `panic::catch_unwind` in a panic.
|
||||
// If client and server happen to use the same `libstd`,
|
||||
// If client and server happen to use the same `std`,
|
||||
// `catch_unwind` asserts that the panic counter was 0,
|
||||
// even when the closure passed to it didn't panic.
|
||||
let r = if thread::panicking() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue