Skip to content

Commit 6083db7

Browse files
committed
Fix some links in the standard library
1 parent 8b21421 commit 6083db7

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

library/core/src/macros/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,8 @@ macro_rules! unreachable {
640640
///
641641
/// Like `panic!`, this macro has a second form for displaying custom values.
642642
///
643+
/// [`todo!`]: crate::todo
644+
///
643645
/// # Examples
644646
///
645647
/// Say we have a trait `Foo`:

library/std/src/macros.rs

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ macro_rules! panic {
3131
/// [`eprint!`] instead to print error and progress messages.
3232
///
3333
/// [flush]: crate::io::Write::flush
34+
/// [`println!`]: crate::println
35+
/// [`eprint!`]: crate::eprint
3436
///
3537
/// # Panics
3638
///
@@ -77,6 +79,7 @@ macro_rules! print {
7779
/// [`eprintln!`] instead to print error and progress messages.
7880
///
7981
/// [`std::fmt`]: crate::fmt
82+
/// [`eprintln!`]: crate::eprintln
8083
///
8184
/// # Panics
8285
///
@@ -146,6 +149,7 @@ macro_rules! eprint {
146149
///
147150
/// [`io::stderr`]: crate::io::stderr
148151
/// [`io::stdout`]: crate::io::stdout
152+
/// [`println!`]: crate::println
149153
///
150154
/// # Panics
151155
///

library/std/src/thread/local.rs

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ use crate::fmt;
2121
/// The [`with`] method yields a reference to the contained value which cannot be
2222
/// sent across threads or escape the given closure.
2323
///
24+
/// [`thread_local!`]: crate::thread_local
25+
///
2426
/// # Initialization and Destruction
2527
///
2628
/// Initialization is dynamically performed on the first call to [`with`]

library/std/src/thread/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
//! [`Cell`]: crate::cell::Cell
147147
//! [`RefCell`]: crate::cell::RefCell
148148
//! [`with`]: LocalKey::with
149+
//! [`thread_local!`]: crate::thread_local
149150
150151
#![stable(feature = "rust1", since = "1.0.0")]
151152
#![deny(unsafe_op_in_unsafe_fn)]

0 commit comments

Comments
 (0)