fix docs for rustc_smir
This commit is contained in:
parent
b1a5423ff8
commit
9d6bfc281d
@ -1,6 +1,6 @@
|
|||||||
//! The WIP stable interface to rustc internals.
|
//! The WIP stable interface to rustc internals.
|
||||||
//!
|
//!
|
||||||
//! For more information see https://github.com/rust-lang/project-stable-mir
|
//! For more information see <https://github.com/rust-lang/project-stable-mir>
|
||||||
//!
|
//!
|
||||||
//! # Note
|
//! # Note
|
||||||
//!
|
//!
|
||||||
@ -14,6 +14,7 @@
|
|||||||
#![feature(local_key_cell_methods)]
|
#![feature(local_key_cell_methods)]
|
||||||
#![feature(ptr_metadata)]
|
#![feature(ptr_metadata)]
|
||||||
#![feature(type_alias_impl_trait)] // Used to define opaque types.
|
#![feature(type_alias_impl_trait)] // Used to define opaque types.
|
||||||
|
#![feature(intra_doc_pointers)]
|
||||||
|
|
||||||
// Declare extern rustc_* crates to enable building this crate separately from the compiler.
|
// Declare extern rustc_* crates to enable building this crate separately from the compiler.
|
||||||
#[cfg(not(feature = "default"))]
|
#[cfg(not(feature = "default"))]
|
||||||
|
@ -185,9 +185,9 @@ pub enum Rvalue {
|
|||||||
/// [#91095]. Note too that the value of the discriminant is not the same thing as the
|
/// [#91095]. Note too that the value of the discriminant is not the same thing as the
|
||||||
/// variant index; use [`discriminant_for_variant`] to convert.
|
/// variant index; use [`discriminant_for_variant`] to convert.
|
||||||
///
|
///
|
||||||
/// [`discriminant_ty`]: crate::ty::Ty::discriminant_ty
|
/// [`discriminant_ty`]: rustc_middle::ty::Ty::discriminant_ty
|
||||||
/// [#91095]: https://github.com/rust-lang/rust/issues/91095
|
/// [#91095]: https://github.com/rust-lang/rust/issues/91095
|
||||||
/// [`discriminant_for_variant`]: crate::ty::Ty::discriminant_for_variant
|
/// [`discriminant_for_variant`]: rustc_middle::ty::Ty::discriminant_for_variant
|
||||||
Discriminant(Place),
|
Discriminant(Place),
|
||||||
|
|
||||||
/// Yields the length of the place, as a `usize`.
|
/// Yields the length of the place, as a `usize`.
|
||||||
|
Loading…
Reference in New Issue
Block a user