Rollup merge of #71773 - tshepang:links, r=davidtwco
doc: misc rustdoc things
This commit is contained in:
commit
35e7745105
2 changed files with 5 additions and 5 deletions
|
@ -255,8 +255,8 @@ fn generate_test_harness(
|
||||||
///
|
///
|
||||||
/// The expansion here can be controlled by two attributes:
|
/// The expansion here can be controlled by two attributes:
|
||||||
///
|
///
|
||||||
/// `reexport_test_harness_main` provides a different name for the `main`
|
/// [`TestCtxt::reexport_test_harness_main`] provides a different name for the `main`
|
||||||
/// function and `test_runner` provides a path that replaces
|
/// function and [`TestCtxt::test_runner`] provides a path that replaces
|
||||||
/// `test::test_main_static`.
|
/// `test::test_main_static`.
|
||||||
fn mk_main(cx: &mut TestCtxt<'_>) -> P<ast::Item> {
|
fn mk_main(cx: &mut TestCtxt<'_>) -> P<ast::Item> {
|
||||||
let sp = cx.def_site;
|
let sp = cx.def_site;
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
//! other phases of the compiler, which are generally required to hold in order
|
//! other phases of the compiler, which are generally required to hold in order
|
||||||
//! to compile the program at all.
|
//! to compile the program at all.
|
||||||
//!
|
//!
|
||||||
//! Most lints can be written as `LintPass` instances. These run after
|
//! Most lints can be written as [LintPass] instances. These run after
|
||||||
//! all other analyses. The `LintPass`es built into rustc are defined
|
//! all other analyses. The `LintPass`es built into rustc are defined
|
||||||
//! within `rustc_session::lint::builtin`,
|
//! within [rustc_session::lint::builtin],
|
||||||
//! which has further comments on how to add such a lint.
|
//! which has further comments on how to add such a lint.
|
||||||
//! rustc can also load user-defined lint plugins via the plugin mechanism.
|
//! rustc can also load user-defined lint plugins via the plugin mechanism.
|
||||||
//!
|
//!
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
//! example) requires more effort. See `emit_lint` and `GatherNodeLevels`
|
//! example) requires more effort. See `emit_lint` and `GatherNodeLevels`
|
||||||
//! in `context.rs`.
|
//! in `context.rs`.
|
||||||
//!
|
//!
|
||||||
//! Some code also exists in `rustc_session::lint`, `rustc_middle::lint`.
|
//! Some code also exists in [rustc_session::lint], [rustc_middle::lint].
|
||||||
//!
|
//!
|
||||||
//! ## Note
|
//! ## Note
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue