From 20b325c7d50092cada3408aee958b3d523541f2c Mon Sep 17 00:00:00 2001 From: Jade Date: Sun, 13 Jun 2021 21:57:10 -0700 Subject: tree-wide: make rustdoc links spiky so they are clickable --- crates/hir_ty/src/infer/coerce.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/hir_ty/src/infer') diff --git a/crates/hir_ty/src/infer/coerce.rs b/crates/hir_ty/src/infer/coerce.rs index 03b97e7db..ced2965a1 100644 --- a/crates/hir_ty/src/infer/coerce.rs +++ b/crates/hir_ty/src/infer/coerce.rs @@ -2,8 +2,8 @@ //! happen in certain places, e.g. weakening `&mut` to `&` or deref coercions //! like going from `&Vec` to `&[T]`. //! -//! See https://doc.rust-lang.org/nomicon/coercions.html and -//! librustc_typeck/check/coercion.rs. +//! See and +//! `librustc_typeck/check/coercion.rs`. use chalk_ir::{cast::Cast, Mutability, TyVariableKind}; use hir_def::{expr::ExprId, lang_item::LangItemTarget}; @@ -331,7 +331,7 @@ impl<'a> InferenceContext<'a> { /// Coerce a type using `from_ty: CoerceUnsized` /// - /// See: https://doc.rust-lang.org/nightly/std/marker/trait.CoerceUnsized.html + /// See: fn try_coerce_unsized(&mut self, from_ty: &Ty, to_ty: &Ty) -> InferResult { // These 'if' statements require some explanation. // The `CoerceUnsized` trait is special - it is only -- cgit v1.2.3