mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
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.
This commit is contained in:
parent
01cc982e93
commit
fdc2275609
@ -29,7 +29,7 @@
|
|||||||
//! For a more detailed look at what is happening here, check
|
//! For a more detailed look at what is happening here, check
|
||||||
//! out the [chapter in the rustc guide][c].
|
//! out the [chapter in the rustc guide][c].
|
||||||
//!
|
//!
|
||||||
//! [c]: https://rust-lang-nursery.github.io/rustc-guide/traits-canonicalization.html
|
//! [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html
|
||||||
|
|
||||||
use infer::{InferCtxt, InferOk, InferResult, RegionVariableOrigin, TypeVariableOrigin};
|
use infer::{InferCtxt, InferOk, InferResult, RegionVariableOrigin, TypeVariableOrigin};
|
||||||
use rustc_data_structures::indexed_vec::Idx;
|
use rustc_data_structures::indexed_vec::Idx;
|
||||||
@ -274,7 +274,7 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
|
|||||||
/// To get a good understanding of what is happening here, check
|
/// To get a good understanding of what is happening here, check
|
||||||
/// out the [chapter in the rustc guide][c].
|
/// out the [chapter in the rustc guide][c].
|
||||||
///
|
///
|
||||||
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits-canonicalization.html#processing-the-canonicalized-query-result
|
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html#processing-the-canonicalized-query-result
|
||||||
pub fn instantiate_query_result<R>(
|
pub fn instantiate_query_result<R>(
|
||||||
&self,
|
&self,
|
||||||
cause: &ObligationCause<'tcx>,
|
cause: &ObligationCause<'tcx>,
|
||||||
@ -458,7 +458,7 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
|
|||||||
/// To get a good understanding of what is happening here, check
|
/// To get a good understanding of what is happening here, check
|
||||||
/// out the [chapter in the rustc guide][c].
|
/// out the [chapter in the rustc guide][c].
|
||||||
///
|
///
|
||||||
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits-canonicalization.html#canonicalizing-the-query
|
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html#canonicalizing-the-query
|
||||||
pub fn canonicalize_query<V>(&self, value: &V) -> (V::Canonicalized, CanonicalVarValues<'tcx>)
|
pub fn canonicalize_query<V>(&self, value: &V) -> (V::Canonicalized, CanonicalVarValues<'tcx>)
|
||||||
where
|
where
|
||||||
V: Canonicalize<'gcx, 'tcx>,
|
V: Canonicalize<'gcx, 'tcx>,
|
||||||
@ -497,7 +497,7 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
|
|||||||
/// To get a good understanding of what is happening here, check
|
/// To get a good understanding of what is happening here, check
|
||||||
/// out the [chapter in the rustc guide][c].
|
/// out the [chapter in the rustc guide][c].
|
||||||
///
|
///
|
||||||
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits-canonicalization.html#canonicalizing-the-query-result
|
/// [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html#canonicalizing-the-query-result
|
||||||
pub fn canonicalize_response<V>(
|
pub fn canonicalize_response<V>(
|
||||||
&self,
|
&self,
|
||||||
value: &V,
|
value: &V,
|
||||||
|
@ -583,7 +583,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
|
|||||||
/// For more information about how skolemization for HRTBs works, see
|
/// For more information about how skolemization for HRTBs works, see
|
||||||
/// the [rustc guide].
|
/// the [rustc guide].
|
||||||
///
|
///
|
||||||
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-hrtb.html
|
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/hrtb.html
|
||||||
pub fn skolemize_late_bound_regions<T>(&self,
|
pub fn skolemize_late_bound_regions<T>(&self,
|
||||||
binder: &ty::Binder<T>)
|
binder: &ty::Binder<T>)
|
||||||
-> (T, SkolemizationMap<'tcx>)
|
-> (T, SkolemizationMap<'tcx>)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
> WARNING: This README is obsolete and will be removed soon! For
|
> WARNING: This README is obsolete and will be removed soon! For
|
||||||
> more info on how the current borrowck works, see the [rustc guide].
|
> more info on how the current borrowck works, see the [rustc guide].
|
||||||
|
|
||||||
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir-borrowck.html
|
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/borrowck.html
|
||||||
|
|
||||||
## Terminology
|
## Terminology
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
> WARNING: This README is obsolete and will be removed soon! For
|
> WARNING: This README is obsolete and will be removed soon! For
|
||||||
> more info on how the current borrowck works, see the [rustc guide].
|
> more info on how the current borrowck works, see the [rustc guide].
|
||||||
|
|
||||||
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir-borrowck.html
|
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/borrowck.html
|
||||||
|
|
||||||
## Terminology
|
## Terminology
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
//! For more information about how MIR-based region-checking works,
|
//! For more information about how MIR-based region-checking works,
|
||||||
//! see the [rustc guide].
|
//! see the [rustc guide].
|
||||||
//!
|
//!
|
||||||
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir-borrowck.html
|
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/borrowck.html
|
||||||
|
|
||||||
use ich::{StableHashingContext, NodeIdHashingMode};
|
use ich::{StableHashingContext, NodeIdHashingMode};
|
||||||
use util::nodemap::{FxHashMap, FxHashSet};
|
use util::nodemap::{FxHashMap, FxHashSet};
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
//! MIR datatypes and passes. See the [rustc guide] for more info.
|
//! MIR datatypes and passes. See the [rustc guide] for more info.
|
||||||
//!
|
//!
|
||||||
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir.html
|
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/index.html
|
||||||
|
|
||||||
use graphviz::IntoCow;
|
use graphviz::IntoCow;
|
||||||
use hir::def::CtorKind;
|
use hir::def::CtorKind;
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
//! See rustc guide chapters on [trait-resolution] and [trait-specialization] for more info on how
|
//! See rustc guide chapters on [trait-resolution] and [trait-specialization] for more info on how
|
||||||
//! this works.
|
//! this works.
|
||||||
//!
|
//!
|
||||||
//! [trait-resolution]: https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html
|
//! [trait-resolution]: https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html
|
||||||
//! [trait-specialization]: https://rust-lang-nursery.github.io/rustc-guide/trait-specialization.html
|
//! [trait-specialization]: https://rust-lang-nursery.github.io/rustc-guide/traits/specialization.html
|
||||||
|
|
||||||
use hir::def_id::{DefId, LOCAL_CRATE};
|
use hir::def_id::{DefId, LOCAL_CRATE};
|
||||||
use syntax_pos::DUMMY_SP;
|
use syntax_pos::DUMMY_SP;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
//! Trait Resolution. See [rustc guide] for more info on how this works.
|
//! Trait Resolution. See [rustc guide] for more info on how this works.
|
||||||
//!
|
//!
|
||||||
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html
|
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html
|
||||||
|
|
||||||
pub use self::SelectionError::*;
|
pub use self::SelectionError::*;
|
||||||
pub use self::FulfillmentErrorCode::*;
|
pub use self::FulfillmentErrorCode::*;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
//! See [rustc guide] for more info on how this works.
|
//! See [rustc guide] for more info on how this works.
|
||||||
//!
|
//!
|
||||||
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html#selection
|
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html#selection
|
||||||
|
|
||||||
use self::SelectionCandidate::*;
|
use self::SelectionCandidate::*;
|
||||||
use self::EvaluationResult::*;
|
use self::EvaluationResult::*;
|
||||||
@ -1047,7 +1047,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
|
|||||||
// candidates. See [rustc guide] for more details.
|
// candidates. See [rustc guide] for more details.
|
||||||
//
|
//
|
||||||
// [rustc guide]:
|
// [rustc guide]:
|
||||||
// https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html#candidate-assembly
|
// https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html#candidate-assembly
|
||||||
|
|
||||||
fn candidate_from_obligation<'o>(&mut self,
|
fn candidate_from_obligation<'o>(&mut self,
|
||||||
stack: &TraitObligationStack<'o, 'tcx>)
|
stack: &TraitObligationStack<'o, 'tcx>)
|
||||||
@ -2415,7 +2415,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
|
|||||||
// type error. See [rustc guide] for more details.
|
// type error. See [rustc guide] for more details.
|
||||||
//
|
//
|
||||||
// [rustc guide]:
|
// [rustc guide]:
|
||||||
// https://rust-lang-nursery.github.io/rustc-guide/trait-resolution.html#confirmation
|
// https://rust-lang-nursery.github.io/rustc-guide/traits/resolution.html#confirmation
|
||||||
|
|
||||||
fn confirm_candidate(&mut self,
|
fn confirm_candidate(&mut self,
|
||||||
obligation: &TraitObligation<'tcx>,
|
obligation: &TraitObligation<'tcx>,
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
//! See the [rustc guide] for a bit more detail on how specialization
|
//! See the [rustc guide] for a bit more detail on how specialization
|
||||||
//! fits together with the rest of the trait machinery.
|
//! fits together with the rest of the trait machinery.
|
||||||
//!
|
//!
|
||||||
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-specialization.html
|
//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/specialization.html
|
||||||
|
|
||||||
use super::{SelectionContext, FulfillmentContext};
|
use super::{SelectionContext, FulfillmentContext};
|
||||||
use super::util::impl_trait_ref_and_oblig;
|
use super::util::impl_trait_ref_and_oblig;
|
||||||
|
@ -1087,7 +1087,7 @@ pub type Region<'tcx> = &'tcx RegionKind;
|
|||||||
///
|
///
|
||||||
/// [1]: http://smallcultfollowing.com/babysteps/blog/2013/10/29/intermingled-parameter-lists/
|
/// [1]: http://smallcultfollowing.com/babysteps/blog/2013/10/29/intermingled-parameter-lists/
|
||||||
/// [2]: http://smallcultfollowing.com/babysteps/blog/2013/11/04/intermingled-parameter-lists/
|
/// [2]: http://smallcultfollowing.com/babysteps/blog/2013/11/04/intermingled-parameter-lists/
|
||||||
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-hrtb.html
|
/// [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/traits/hrtb.html
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, Copy, RustcEncodable, RustcDecodable, PartialOrd, Ord)]
|
#[derive(Clone, PartialEq, Eq, Hash, Copy, RustcEncodable, RustcDecodable, PartialOrd, Ord)]
|
||||||
pub enum RegionKind {
|
pub enum RegionKind {
|
||||||
// Region bound in a type or fn declaration which will be
|
// Region bound in a type or fn declaration which will be
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
> WARNING: This README is more or less obsolete, and will be removed
|
> WARNING: This README is more or less obsolete, and will be removed
|
||||||
> soon! The new system is described in the [rustc guide].
|
> soon! The new system is described in the [rustc guide].
|
||||||
|
|
||||||
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir-borrowck.html
|
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/mir/borrowck.html
|
||||||
|
|
||||||
This pass has the job of enforcing memory safety. This is a subtle
|
This pass has the job of enforcing memory safety. This is a subtle
|
||||||
topic. This docs aim to explain both the practice and the theory
|
topic. This docs aim to explain both the practice and the theory
|
||||||
|
Loading…
Reference in New Issue
Block a user