Skip to content

Commit

Permalink
Fix broken links in internal docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MaloJaffre committed Jan 1, 2018
1 parent 8ed13d6 commit 7249539
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/librustc/dep_graph/graph.rs
Expand Up @@ -158,8 +158,8 @@ impl DepGraph {
/// what state they have access to. In particular, we want to
/// prevent implicit 'leaks' of tracked state into the task (which
/// could then be read without generating correct edges in the
/// dep-graph -- see the [README] for more details on the
/// dep-graph). To this end, the task function gets exactly two
/// dep-graph -- see the module-level [README] for more details on
/// the dep-graph). To this end, the task function gets exactly two
/// pieces of state: the context `cx` and an argument `arg`. Both
/// of these bits of state must be of some type that implements
/// `DepGraphSafe` and hence does not leak.
Expand All @@ -178,7 +178,7 @@ impl DepGraph {
/// - If you need 3+ arguments, use a tuple for the
/// `arg` parameter.
///
/// [README]: README.md
/// [README]: https://github.com/rust-lang/rust/blob/master/src/librustc/dep_graph/README.md
pub fn with_task<C, A, R, HCX>(&self,
key: DepNode,
cx: C,
Expand Down
4 changes: 3 additions & 1 deletion src/librustc/hir/mod.rs
Expand Up @@ -588,7 +588,9 @@ pub type CrateConfig = HirVec<P<MetaItem>>;
/// The top-level data structure that stores the entire contents of
/// the crate currently being compiled.
///
/// For more details, see [the module-level README](README.md).
/// For more details, see the module-level [README].
///
/// [README]: https://github.com/rust-lang/rust/blob/master/src/librustc/hir/README.md.
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Debug)]
pub struct Crate {
pub module: Mod,
Expand Down
4 changes: 3 additions & 1 deletion src/librustc/mir/mod.rs
Expand Up @@ -8,7 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! MIR datatypes and passes. See [the README](README.md) for details.
//! MIR datatypes and passes. See the module-level [README] for details.
//!
//! [README]: https://github.com/rust-lang/rust/blob/master/src/librustc/mir/README.md

use graphviz::IntoCow;
use middle::const_val::ConstVal;
Expand Down
6 changes: 4 additions & 2 deletions src/librustc/ty/context.rs
Expand Up @@ -778,8 +778,10 @@ impl<'tcx> CommonTypes<'tcx> {

/// The central data structure of the compiler. It stores references
/// to the various **arenas** and also houses the results of the
/// various **compiler queries** that have been performed. See [the
/// README](README.md) for more deatils.
/// various **compiler queries** that have been performed. See the
/// module-level [README] for more details.
///
/// [README]: https://github.com/rust-lang/rust/blob/master/src/librustc/ty/README.md
#[derive(Copy, Clone)]
pub struct TyCtxt<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
gcx: &'a GlobalCtxt<'gcx>,
Expand Down
6 changes: 2 additions & 4 deletions src/librustc/ty/sty.rs
Expand Up @@ -1647,10 +1647,8 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> {
///
/// Note that during type checking, we use an inference variable
/// to represent the closure kind, because it has not yet been
/// inferred. Once [upvar inference] is complete, that type varibale
/// will be unified.
///
/// [upvar inference]: src/librustc_typeck/check/upvar.rs
/// inferred. Once upvar inference (in `src/librustc_typeck/check/upvar.rs`)
/// is complete, that type variable will be unified.
pub fn to_opt_closure_kind(&self) -> Option<ty::ClosureKind> {
match self.sty {
TyInt(int_ty) => match int_ty {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_plugin/lib.rs
Expand Up @@ -57,7 +57,7 @@
//! #![plugin(myplugin)]
//! ```
//!
//! See the [`plugin` feature](../../unstable-book/language-features/plugin.html) of
//! See the [`plugin` feature](../unstable-book/language-features/plugin.html) of
//! the Unstable Book for more examples.

#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
Expand Down

0 comments on commit 7249539

Please sign in to comment.