fix canonicalization links

This commit is contained in:
mark 2020-05-08 11:06:25 -05:00
parent f8d394e518
commit 9dabea1a29
6 changed files with 9 additions and 9 deletions

View file

@ -3,7 +3,7 @@
//! For an overview of what canonicalization is and how it fits into //! For an overview of what canonicalization is and how it fits into
//! rustc, check out the [chapter in the rustc dev guide][c]. //! rustc, check out the [chapter in the rustc dev guide][c].
//! //!
//! [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html //! [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html
use crate::infer::canonical::{ use crate::infer::canonical::{
Canonical, CanonicalTyVarKind, CanonicalVarInfo, CanonicalVarKind, Canonicalized, Canonical, CanonicalTyVarKind, CanonicalVarInfo, CanonicalVarKind, Canonicalized,
@ -35,7 +35,7 @@ impl<'cx, 'tcx> InferCtxt<'cx, '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 dev guide][c]. /// out the [chapter in the rustc dev guide][c].
/// ///
/// [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html#canonicalizing-the-query /// [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html#canonicalizing-the-query
pub fn canonicalize_query<V>( pub fn canonicalize_query<V>(
&self, &self,
value: &V, value: &V,
@ -79,7 +79,7 @@ impl<'cx, 'tcx> InferCtxt<'cx, '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 dev guide][c]. /// out the [chapter in the rustc dev guide][c].
/// ///
/// [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html#canonicalizing-the-query-result /// [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html#canonicalizing-the-query-result
pub fn canonicalize_response<V>(&self, value: &V) -> Canonicalized<'tcx, V> pub fn canonicalize_response<V>(&self, value: &V) -> Canonicalized<'tcx, V>
where where
V: TypeFoldable<'tcx>, V: TypeFoldable<'tcx>,

View file

@ -19,7 +19,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 dev guide][c]. //! out the [chapter in the rustc dev guide][c].
//! //!
//! [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html //! [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html
use crate::infer::{ConstVariableOrigin, ConstVariableOriginKind}; use crate::infer::{ConstVariableOrigin, ConstVariableOriginKind};
use crate::infer::{InferCtxt, RegionVariableOrigin, TypeVariableOrigin, TypeVariableOriginKind}; use crate::infer::{InferCtxt, RegionVariableOrigin, TypeVariableOrigin, TypeVariableOriginKind};

View file

@ -5,7 +5,7 @@
//! For an overview of what canonicaliation is and how it fits into //! For an overview of what canonicaliation is and how it fits into
//! rustc, check out the [chapter in the rustc dev guide][c]. //! rustc, check out the [chapter in the rustc dev guide][c].
//! //!
//! [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html //! [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html
use crate::infer::canonical::substitute::{substitute_value, CanonicalExt}; use crate::infer::canonical::substitute::{substitute_value, CanonicalExt};
use crate::infer::canonical::{ use crate::infer::canonical::{
@ -154,7 +154,7 @@ impl<'cx, 'tcx> InferCtxt<'cx, '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 dev guide][c]. /// out the [chapter in the rustc dev guide][c].
/// ///
/// [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html#processing-the-canonicalized-query-result /// [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html#processing-the-canonicalized-query-result
pub fn instantiate_query_response_and_region_obligations<R>( pub fn instantiate_query_response_and_region_obligations<R>(
&self, &self,
cause: &ObligationCause<'tcx>, cause: &ObligationCause<'tcx>,

View file

@ -4,7 +4,7 @@
//! For an overview of what canonicalization is and how it fits into //! For an overview of what canonicalization is and how it fits into
//! rustc, check out the [chapter in the rustc dev guide][c]. //! rustc, check out the [chapter in the rustc dev guide][c].
//! //!
//! [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html //! [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html
use crate::infer::canonical::{Canonical, CanonicalVarValues}; use crate::infer::canonical::{Canonical, CanonicalVarValues};
use rustc_middle::ty::fold::TypeFoldable; use rustc_middle::ty::fold::TypeFoldable;

View file

@ -19,7 +19,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 dev guide][c]. //! out the [chapter in the rustc dev guide][c].
//! //!
//! [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html //! [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html
use crate::infer::MemberConstraint; use crate::infer::MemberConstraint;
use crate::ty::subst::GenericArg; use crate::ty::subst::GenericArg;

View file

@ -44,7 +44,7 @@ pub trait TypeOp<'tcx>: Sized + fmt::Debug {
/// first canonicalize the key and then invoke the query on the tcx, /// first canonicalize the key and then invoke the query on the tcx,
/// which produces the resulting query region constraints. /// which produces the resulting query region constraints.
/// ///
/// [c]: https://rustc-dev-guide.rust-lang.org/traits/canonicalization.html /// [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html
pub trait QueryTypeOp<'tcx>: fmt::Debug + Sized + TypeFoldable<'tcx> + 'tcx { pub trait QueryTypeOp<'tcx>: fmt::Debug + Sized + TypeFoldable<'tcx> + 'tcx {
type QueryResponse: TypeFoldable<'tcx>; type QueryResponse: TypeFoldable<'tcx>;