Skip to content

Commit 7249539

Browse files
committed
Fix broken links in internal docs
1 parent 8ed13d6 commit 7249539

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

src/librustc/dep_graph/graph.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ impl DepGraph {
158158
/// what state they have access to. In particular, we want to
159159
/// prevent implicit 'leaks' of tracked state into the task (which
160160
/// could then be read without generating correct edges in the
161-
/// dep-graph -- see the [README] for more details on the
162-
/// dep-graph). To this end, the task function gets exactly two
161+
/// dep-graph -- see the module-level [README] for more details on
162+
/// the dep-graph). To this end, the task function gets exactly two
163163
/// pieces of state: the context `cx` and an argument `arg`. Both
164164
/// of these bits of state must be of some type that implements
165165
/// `DepGraphSafe` and hence does not leak.
@@ -178,7 +178,7 @@ impl DepGraph {
178178
/// - If you need 3+ arguments, use a tuple for the
179179
/// `arg` parameter.
180180
///
181-
/// [README]: README.md
181+
/// [README]: https://github.com/rust-lang/rust/blob/master/src/librustc/dep_graph/README.md
182182
pub fn with_task<C, A, R, HCX>(&self,
183183
key: DepNode,
184184
cx: C,

src/librustc/hir/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,9 @@ pub type CrateConfig = HirVec<P<MetaItem>>;
588588
/// The top-level data structure that stores the entire contents of
589589
/// the crate currently being compiled.
590590
///
591-
/// For more details, see [the module-level README](README.md).
591+
/// For more details, see the module-level [README].
592+
///
593+
/// [README]: https://github.com/rust-lang/rust/blob/master/src/librustc/hir/README.md.
592594
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Debug)]
593595
pub struct Crate {
594596
pub module: Mod,

src/librustc/mir/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! MIR datatypes and passes. See [the README](README.md) for details.
11+
//! MIR datatypes and passes. See the module-level [README] for details.
12+
//!
13+
//! [README]: https://github.com/rust-lang/rust/blob/master/src/librustc/mir/README.md
1214
1315
use graphviz::IntoCow;
1416
use middle::const_val::ConstVal;

src/librustc/ty/context.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,10 @@ impl<'tcx> CommonTypes<'tcx> {
778778

779779
/// The central data structure of the compiler. It stores references
780780
/// to the various **arenas** and also houses the results of the
781-
/// various **compiler queries** that have been performed. See [the
782-
/// README](README.md) for more deatils.
781+
/// various **compiler queries** that have been performed. See the
782+
/// module-level [README] for more details.
783+
///
784+
/// [README]: https://github.com/rust-lang/rust/blob/master/src/librustc/ty/README.md
783785
#[derive(Copy, Clone)]
784786
pub struct TyCtxt<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
785787
gcx: &'a GlobalCtxt<'gcx>,

src/librustc/ty/sty.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1647,10 +1647,8 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> {
16471647
///
16481648
/// Note that during type checking, we use an inference variable
16491649
/// to represent the closure kind, because it has not yet been
1650-
/// inferred. Once [upvar inference] is complete, that type varibale
1651-
/// will be unified.
1652-
///
1653-
/// [upvar inference]: src/librustc_typeck/check/upvar.rs
1650+
/// inferred. Once upvar inference (in `src/librustc_typeck/check/upvar.rs`)
1651+
/// is complete, that type variable will be unified.
16541652
pub fn to_opt_closure_kind(&self) -> Option<ty::ClosureKind> {
16551653
match self.sty {
16561654
TyInt(int_ty) => match int_ty {

src/librustc_plugin/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
//! #![plugin(myplugin)]
5858
//! ```
5959
//!
60-
//! See the [`plugin` feature](../../unstable-book/language-features/plugin.html) of
60+
//! See the [`plugin` feature](../unstable-book/language-features/plugin.html) of
6161
//! the Unstable Book for more examples.
6262
6363
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

0 commit comments

Comments
 (0)