Skip to content

Commit 9d6bfc2

Browse files
author
Lukas Markeffsky
committed
fix docs for rustc_smir
1 parent b1a5423 commit 9d6bfc2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

compiler/rustc_smir/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! The WIP stable interface to rustc internals.
22
//!
3-
//! For more information see https://github.com/rust-lang/project-stable-mir
3+
//! For more information see <https://github.com/rust-lang/project-stable-mir>
44
//!
55
//! # Note
66
//!
@@ -14,6 +14,7 @@
1414
#![feature(local_key_cell_methods)]
1515
#![feature(ptr_metadata)]
1616
#![feature(type_alias_impl_trait)] // Used to define opaque types.
17+
#![feature(intra_doc_pointers)]
1718

1819
// Declare extern rustc_* crates to enable building this crate separately from the compiler.
1920
#[cfg(not(feature = "default"))]

compiler/rustc_smir/src/stable_mir/mir/body.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ pub enum Rvalue {
185185
/// [#91095]. Note too that the value of the discriminant is not the same thing as the
186186
/// variant index; use [`discriminant_for_variant`] to convert.
187187
///
188-
/// [`discriminant_ty`]: crate::ty::Ty::discriminant_ty
188+
/// [`discriminant_ty`]: rustc_middle::ty::Ty::discriminant_ty
189189
/// [#91095]: https://github.com/rust-lang/rust/issues/91095
190-
/// [`discriminant_for_variant`]: crate::ty::Ty::discriminant_for_variant
190+
/// [`discriminant_for_variant`]: rustc_middle::ty::Ty::discriminant_for_variant
191191
Discriminant(Place),
192192

193193
/// Yields the length of the place, as a `usize`.

0 commit comments

Comments
 (0)