Skip to content

Commit 5a8ddb4

Browse files
bors[bot]lf-
andauthored
Merge #9260
9260: tree-wide: make rustdoc links spiky so they are clickable r=matklad a=lf- Rustdoc was complaining about these while I was running with --document-private-items and I figure they should be fixed. Co-authored-by: Jade <software@lfcode.ca>
2 parents f0618a8 + 20b325c commit 5a8ddb4

File tree

32 files changed

+37
-37
lines changed

32 files changed

+37
-37
lines changed

crates/cfg/src/cfg_expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! The condition expression used in `#[cfg(..)]` attributes.
22
//!
3-
//! See: https://doc.rust-lang.org/reference/conditional-compilation.html#conditional-compilation
3+
//! See: <https://doc.rust-lang.org/reference/conditional-compilation.html#conditional-compilation>
44
55
use std::{fmt, slice::Iter as SliceIter};
66

crates/cfg/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub use dnf::DnfExpr;
2222
/// `foo` and `bar` are both enabled. And here, we store key-value options as a set of tuple
2323
/// of key and value in `key_values`.
2424
///
25-
/// See: https://doc.rust-lang.org/reference/conditional-compilation.html#set-configuration-options
25+
/// See: <https://doc.rust-lang.org/reference/conditional-compilation.html#set-configuration-options>
2626
#[derive(Debug, Clone, PartialEq, Eq, Default)]
2727
pub struct CfgOptions {
2828
enabled: FxHashSet<CfgAtom>,

crates/hir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//!
1616
//! `hir` is what insulates the "we don't know how to actually write an incremental compiler"
1717
//! from the ide with completions, hovers, etc. It is a (soft, internal) boundary:
18-
//! https://www.tedinski.com/2018/02/06/system-boundaries.html.
18+
//! <https://www.tedinski.com/2018/02/06/system-boundaries.html>.
1919
2020
#![recursion_limit = "512"]
2121

crates/hir_expand/src/eager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! > and we need to live with it because it's available on stable and widely relied upon.
1818
//!
1919
//!
20-
//! See the full discussion : https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Eager.20expansion.20of.20built-in.20macros
20+
//! See the full discussion : <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Eager.20expansion.20of.20built-in.20macros>
2121
2222
use crate::{
2323
ast::{self, AstNode},

crates/hir_expand/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ mod test_db;
5353
/// this is a recursive definition! However, the size_of of `HirFileId` is
5454
/// finite (because everything bottoms out at the real `FileId`) and small
5555
/// (`MacroCallId` uses the location interning. You can check details here:
56-
/// https://en.wikipedia.org/wiki/String_interning).
56+
/// <https://en.wikipedia.org/wiki/String_interning>).
5757
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
5858
pub struct HirFileId(HirFileIdRepr);
5959

crates/hir_ty/src/diagnostics/match_check/usefulness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Based on rust-lang/rust 1.52.0-nightly (25c15cdbe 2021-04-22)
2-
//! https://github.com/rust-lang/rust/blob/25c15cdbe/compiler/rustc_mir_build/src/thir/pattern/usefulness.rs
2+
//! <https://github.com/rust-lang/rust/blob/25c15cdbe/compiler/rustc_mir_build/src/thir/pattern/usefulness.rs>
33
//!
44
//! -----
55
//!

crates/hir_ty/src/infer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ enum ExprOrPatId {
7878
impl_from!(ExprId, PatId for ExprOrPatId);
7979

8080
/// Binding modes inferred for patterns.
81-
/// https://doc.rust-lang.org/reference/patterns.html#binding-modes
81+
/// <https://doc.rust-lang.org/reference/patterns.html#binding-modes>
8282
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
8383
enum BindingMode {
8484
Move,

crates/hir_ty/src/infer/coerce.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
//! happen in certain places, e.g. weakening `&mut` to `&` or deref coercions
33
//! like going from `&Vec<T>` to `&[T]`.
44
//!
5-
//! See https://doc.rust-lang.org/nomicon/coercions.html and
6-
//! librustc_typeck/check/coercion.rs.
5+
//! See <https://doc.rust-lang.org/nomicon/coercions.html> and
6+
//! `librustc_typeck/check/coercion.rs`.
77
88
use chalk_ir::{cast::Cast, Mutability, TyVariableKind};
99
use hir_def::{expr::ExprId, lang_item::LangItemTarget};
@@ -331,7 +331,7 @@ impl<'a> InferenceContext<'a> {
331331

332332
/// Coerce a type using `from_ty: CoerceUnsized<ty_ty>`
333333
///
334-
/// See: https://doc.rust-lang.org/nightly/std/marker/trait.CoerceUnsized.html
334+
/// See: <https://doc.rust-lang.org/nightly/std/marker/trait.CoerceUnsized.html>
335335
fn try_coerce_unsized(&mut self, from_ty: &Ty, to_ty: &Ty) -> InferResult {
336336
// These 'if' statements require some explanation.
337337
// The `CoerceUnsized` trait is special - it is only

crates/hir_ty/src/lower.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ pub(crate) fn field_types_query(
957957
/// like `T::Item`.
958958
///
959959
/// See the analogous query in rustc and its comment:
960-
/// https://github.com/rust-lang/rust/blob/9150f844e2624eb013ec78ca08c1d416e6644026/src/librustc_typeck/astconv.rs#L46
960+
/// <https://github.com/rust-lang/rust/blob/9150f844e2624eb013ec78ca08c1d416e6644026/src/librustc_typeck/astconv.rs#L46>
961961
/// This is a query mostly to handle cycles somewhat gracefully; e.g. the
962962
/// following bounds are disallowed: `T: Foo<U::Item>, U: Foo<T::Item>`, but
963963
/// these are fine: `T: Foo<U::Item>, U: Foo<()>`.

crates/ide_completion/src/completions/attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static KIND_TO_ATTRIBUTES: Lazy<FxHashMap<SyntaxKind, &[&str]>> = Lazy::new(|| {
219219
});
220220
const EXPR_ATTRIBUTES: &[&str] = attrs!();
221221

222-
/// https://doc.rust-lang.org/reference/attributes.html#built-in-attributes-index
222+
/// <https://doc.rust-lang.org/reference/attributes.html#built-in-attributes-index>
223223
// Keep these sorted for the binary search!
224224
const ATTRIBUTES: &[AttrCompletion] = &[
225225
attr("allow(…)", Some("allow"), Some("allow(${0:lint})")),

0 commit comments

Comments
 (0)