Skip to content

Commit

Permalink
fix some warnings related to doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cdisselkoen committed Dec 9, 2023
1 parent d3a21ee commit 7f81d60
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,9 +1084,9 @@ impl DataLayout {
impl Default for Alignments {
fn default() -> Self {
Self {
/// Explicit alignments for various sizes of integers (in bits). Sizes not
/// specified here are determined according to the rules described in the
/// Data Layout docs.
// Explicit alignments for various sizes of integers (in bits). Sizes not
// specified here are determined according to the rules described in the
// Data Layout docs.
int_alignments: vec![
(1, Alignment { abi: 8, pref: 8 }),
(8, Alignment { abi: 8, pref: 8 }),
Expand All @@ -1096,9 +1096,9 @@ impl Default for Alignments {
]
.into_iter()
.collect(),
/// Explicit alignments for various sizes of vectors (in bits). Sizes not
/// specified here are determined according to the rules described in the
/// Data Layout docs.
// Explicit alignments for various sizes of vectors (in bits). Sizes not
// specified here are determined according to the rules described in the
// Data Layout docs.
vec_alignments: vec![
(64, Alignment { abi: 64, pref: 64 }),
(
Expand All @@ -1111,7 +1111,7 @@ impl Default for Alignments {
]
.into_iter()
.collect(),
/// Alignment for floating-point types, by size (in bits)
// Alignment for floating-point types, by size (in bits)
fp_alignments: vec![
(16, Alignment { abi: 16, pref: 16 }),
(32, Alignment { abi: 32, pref: 32 }),
Expand All @@ -1126,18 +1126,18 @@ impl Default for Alignments {
]
.into_iter()
.collect(),
/// Alignment for aggregate types (structs, arrays)
// Alignment for aggregate types (structs, arrays)
agg_alignment: Alignment { abi: 0, pref: 64 },
/// Alignment for function pointers
// Alignment for function pointers
#[cfg(feature = "llvm-9-or-greater")]
fptr_alignment: FunctionPtrAlignment {
independent: true,
abi: 64,
},
/// Alignment for function pointers, as an `Alignment`
// Alignment for function pointers, as an `Alignment`
#[cfg(feature = "llvm-9-or-greater")]
fptr_alignment_as_alignment: Alignment { abi: 64, pref: 64 },
/// Layout details for (non-function-pointer) pointers, by address space
// Layout details for (non-function-pointer) pointers, by address space
pointer_layouts: vec![(
0,
PointerLayout {
Expand Down

0 comments on commit 7f81d60

Please sign in to comment.