Skip to content

Commit 932db19

Browse files
authored
Rollup merge of rust-lang#51769 - alexcameron89:update_rustc_guide_links, r=frewsxcv
Update broken rustc-guide links Recently, there has been some rearrangement of the content in the Rustc Guide, and this commit changes the urls the match the updated guide.
2 parents b2cf26e + fdc2275 commit 932db19

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

Diff for: src/librustc/infer/canonical.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
//! For a more detailed look at what is happening here, check
3030
//! out the [chapter in the rustc guide][c].
3131
//!
32-
//! [c]: https://rust-lang-nursery.github.io/rustc-guide/traits-canonicalization.html
32+
//! [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html
3333
3434
use infer::{InferCtxt, InferOk, InferResult, RegionVariableOrigin, TypeVariableOrigin};
3535
use rustc_data_structures::indexed_vec::Idx;
@@ -274,7 +274,7 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
274274
/// To get a good understanding of what is happening here, check
275275
/// out the [chapter in the rustc guide][c].
276276
///
277-
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits-canonicalization.html#processing-the-canonicalized-query-result
277+
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html#processing-the-canonicalized-query-result
278278
pub fn instantiate_query_result<R>(
279279
&self,
280280
cause: &ObligationCause<'tcx>,
@@ -458,7 +458,7 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
458458
/// To get a good understanding of what is happening here, check
459459
/// out the [chapter in the rustc guide][c].
460460
///
461-
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits-canonicalization.html#canonicalizing-the-query
461+
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html#canonicalizing-the-query
462462
pub fn canonicalize_query<V>(&self, value: &V) -> (V::Canonicalized, CanonicalVarValues<'tcx>)
463463
where
464464
V: Canonicalize<'gcx, 'tcx>,
@@ -497,7 +497,7 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
497497
/// To get a good understanding of what is happening here, check
498498
/// out the [chapter in the rustc guide][c].
499499
///
500-
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits-canonicalization.html#canonicalizing-the-query-result
500+
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html#canonicalizing-the-query-result
501501
pub fn canonicalize_response<V>(
502502
&self,
503503
value: &V,

Diff for: src/librustc/infer/higher_ranked/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
583583
/// For more information about how skolemization for HRTBs works, see
584584
/// the [rustc guide].
585585
///
586-
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-hrtb.html
586+
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/hrtb.html
587587
pub fn skolemize_late_bound_regions<T>(&self,
588588
binder: &ty::Binder<T>)
589589
-> (T, SkolemizationMap<'tcx>)

Diff for: src/librustc/infer/lexical_region_resolve/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> WARNING: This README is obsolete and will be removed soon! For
44
> more info on how the current borrowck works, see the [rustc guide].
55
6-
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir-borrowck.html
6+
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/borrowck.html
77

88
## Terminology
99

Diff for: src/librustc/infer/region_constraints/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> WARNING: This README is obsolete and will be removed soon! For
44
> more info on how the current borrowck works, see the [rustc guide].
55
6-
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir-borrowck.html
6+
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/borrowck.html
77

88
## Terminology
99

Diff for: src/librustc/middle/region.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//! For more information about how MIR-based region-checking works,
1515
//! see the [rustc guide].
1616
//!
17-
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir-borrowck.html
17+
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/borrowck.html
1818
1919
use ich::{StableHashingContext, NodeIdHashingMode};
2020
use util::nodemap::{FxHashMap, FxHashSet};

Diff for: src/librustc/mir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! MIR datatypes and passes. See the [rustc guide] for more info.
1212
//!
13-
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir.html
13+
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/index.html
1414
1515
use graphviz::IntoCow;
1616
use hir::def::CtorKind;

Diff for: src/librustc/traits/coherence.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//! See rustc guide chapters on [trait-resolution] and [trait-specialization] for more info on how
1212
//! this works.
1313
//!
14-
//! [trait-resolution]: https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html
15-
//! [trait-specialization]: https://rust-lang-nursery.github.io/rustc-guide/trait-specialization.html
14+
//! [trait-resolution]: https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html
15+
//! [trait-specialization]: https://rust-lang-nursery.github.io/rustc-guide/traits/specialization.html
1616
1717
use hir::def_id::{DefId, LOCAL_CRATE};
1818
use syntax_pos::DUMMY_SP;

Diff for: src/librustc/traits/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! Trait Resolution. See [rustc guide] for more info on how this works.
1212
//!
13-
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html
13+
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html
1414
1515
pub use self::SelectionError::*;
1616
pub use self::FulfillmentErrorCode::*;

Diff for: src/librustc/traits/select.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! See [rustc guide] for more info on how this works.
1212
//!
13-
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html#selection
13+
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html#selection
1414
1515
use self::SelectionCandidate::*;
1616
use self::EvaluationResult::*;
@@ -1047,7 +1047,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
10471047
// candidates. See [rustc guide] for more details.
10481048
//
10491049
// [rustc guide]:
1050-
// https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html#candidate-assembly
1050+
// https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html#candidate-assembly
10511051

10521052
fn candidate_from_obligation<'o>(&mut self,
10531053
stack: &TraitObligationStack<'o, 'tcx>)
@@ -2415,7 +2415,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
24152415
// type error. See [rustc guide] for more details.
24162416
//
24172417
// [rustc guide]:
2418-
// https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html#confirmation
2418+
// https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html#confirmation
24192419

24202420
fn confirm_candidate(&mut self,
24212421
obligation: &TraitObligation<'tcx>,

Diff for: src/librustc/traits/specialize/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! See the [rustc guide] for a bit more detail on how specialization
1818
//! fits together with the rest of the trait machinery.
1919
//!
20-
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-specialization.html
20+
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/specialization.html
2121
2222
use super::{SelectionContext, FulfillmentContext};
2323
use super::util::impl_trait_ref_and_oblig;

Diff for: src/librustc/ty/sty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ pub type Region<'tcx> = &'tcx RegionKind;
10871087
///
10881088
/// [1]: http://smallcultfollowing.com/babysteps/blog/2013/10/29/intermingled-parameter-lists/
10891089
/// [2]: http://smallcultfollowing.com/babysteps/blog/2013/11/04/intermingled-parameter-lists/
1090-
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-hrtb.html
1090+
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/hrtb.html
10911091
#[derive(Clone, PartialEq, Eq, Hash, Copy, RustcEncodable, RustcDecodable, PartialOrd, Ord)]
10921092
pub enum RegionKind {
10931093
// Region bound in a type or fn declaration which will be

Diff for: src/librustc_borrowck/borrowck/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> WARNING: This README is more or less obsolete, and will be removed
44
> soon! The new system is described in the [rustc guide].
55
6-
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir-borrowck.html
6+
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/borrowck.html
77

88
This pass has the job of enforcing memory safety. This is a subtle
99
topic. This docs aim to explain both the practice and the theory

0 commit comments

Comments
 (0)