Fix warnings in cranelift-codegen docs builds (#5292)

This commit is contained in:
Nick Fitzgerald
2022-11-17 13:13:24 -08:00
committed by GitHub
parent 76c7b55072
commit 3b6544dc66
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
//! T is intended to be a primitive unsigned type. Currently it can be any type between u8 and u32 //! 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 //! If you would like to add support for larger bitsets in the future, you need to change the trait
//! bound Into<u32> and the u32 in the implementation of `max_bits()`. //! bound `Into<u32>` and the `u32` in the implementation of `max_bits()`.
use core::convert::{From, Into}; use core::convert::{From, Into};
use core::mem::size_of; use core::mem::size_of;

View File

@@ -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 /// flag is best used when the target is known to be in the same unit of code generation, such
/// as a Wasm module. /// as a Wasm module.
/// ///
/// See the documentation for [`RelocDistance`](crate::machinst::RelocDistance) for more details. A /// See the documentation for `RelocDistance` for more details. A `colocated` flag value of
/// `colocated` flag value of `true` implies `RelocDistance::Near`. /// `true` implies `RelocDistance::Near`.
pub colocated: bool, pub colocated: bool,
} }

View File

@@ -70,7 +70,7 @@ pub enum GlobalValueData {
/// ///
/// If `true`, some backends may use relocation forms that have limited range: for example, /// 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 /// a +/- 2^27-byte range on AArch64. See the documentation for
/// [`RelocDistance`](crate::machinst::RelocDistance) for more details. /// `RelocDistance` for more details.
colocated: bool, colocated: bool,
/// Does this symbol refer to a thread local storage value? /// Does this symbol refer to a thread local storage value?