diff --git a/cranelift/codegen/src/bitset.rs b/cranelift/codegen/src/bitset.rs index d271a86617..c09a58777f 100644 --- a/cranelift/codegen/src/bitset.rs +++ b/cranelift/codegen/src/bitset.rs @@ -4,7 +4,7 @@ //! T is intended to be a primitive unsigned type. Currently it can be any type between u8 and u32 //! //! If you would like to add support for larger bitsets in the future, you need to change the trait -//! bound Into and the u32 in the implementation of `max_bits()`. +//! bound `Into` and the `u32` in the implementation of `max_bits()`. use core::convert::{From, Into}; use core::mem::size_of; diff --git a/cranelift/codegen/src/ir/extfunc.rs b/cranelift/codegen/src/ir/extfunc.rs index 6b07315b15..bc56104aaf 100644 --- a/cranelift/codegen/src/ir/extfunc.rs +++ b/cranelift/codegen/src/ir/extfunc.rs @@ -321,8 +321,8 @@ pub struct ExtFuncData { /// flag is best used when the target is known to be in the same unit of code generation, such /// as a Wasm module. /// - /// See the documentation for [`RelocDistance`](crate::machinst::RelocDistance) for more details. A - /// `colocated` flag value of `true` implies `RelocDistance::Near`. + /// See the documentation for `RelocDistance` for more details. A `colocated` flag value of + /// `true` implies `RelocDistance::Near`. pub colocated: bool, } diff --git a/cranelift/codegen/src/ir/globalvalue.rs b/cranelift/codegen/src/ir/globalvalue.rs index 6e26931fed..84094d7166 100644 --- a/cranelift/codegen/src/ir/globalvalue.rs +++ b/cranelift/codegen/src/ir/globalvalue.rs @@ -70,7 +70,7 @@ pub enum GlobalValueData { /// /// If `true`, some backends may use relocation forms that have limited range: for example, /// a +/- 2^27-byte range on AArch64. See the documentation for - /// [`RelocDistance`](crate::machinst::RelocDistance) for more details. + /// `RelocDistance` for more details. colocated: bool, /// Does this symbol refer to a thread local storage value?