1
Fork 0

safe transmute: fix broken intradoc link

This commit is contained in:
Jack Wrenn 2022-08-02 14:44:23 +00:00
parent e8a1925b64
commit 965ffb0b5c

View file

@ -42,7 +42,7 @@ pub(crate) mod rustc {
use rustc_middle::ty::Region; use rustc_middle::ty::Region;
use rustc_middle::ty::Ty; use rustc_middle::ty::Ty;
/// A reference in the layout [`Nfa`]. /// A reference in the layout.
#[derive(Debug, Hash, Eq, PartialEq, PartialOrd, Ord, Clone, Copy)] #[derive(Debug, Hash, Eq, PartialEq, PartialOrd, Ord, Clone, Copy)]
pub struct Ref<'tcx> { pub struct Ref<'tcx> {
lifetime: Region<'tcx>, lifetime: Region<'tcx>,
@ -58,7 +58,7 @@ pub(crate) mod rustc {
} }
} }
/// A visibility node in the layout [`Nfa`]. /// A visibility node in the layout.
#[derive(Debug, Hash, Eq, PartialEq, Clone, Copy)] #[derive(Debug, Hash, Eq, PartialEq, Clone, Copy)]
pub enum Def<'tcx> { pub enum Def<'tcx> {
Adt(ty::AdtDef<'tcx>), Adt(ty::AdtDef<'tcx>),