]> git.lizzy.rs Git - rust.git/commitdiff
Fix rustdoc lints
authorMark Rousskov <mark.simulacrum@gmail.com>
Wed, 2 Nov 2022 12:01:43 +0000 (08:01 -0400)
committerMark Rousskov <mark.simulacrum@gmail.com>
Sun, 6 Nov 2022 22:21:22 +0000 (17:21 -0500)
library/portable-simd/crates/core_simd/src/intrinsics.rs
library/portable-simd/crates/core_simd/src/ops.rs

index 962c83a78cb34d56e53fdbac4772fd1fdf566691..704e6ed0159f84b7cf69fc858d6df62a0e016de0 100644 (file)
     /// val: vector of values to select if a lane is masked
     /// ptr: vector of pointers to read from
     /// mask: a "wide" mask of integers, selects as if simd_select(mask, read(ptr), val)
-    /// note, the LLVM intrinsic accepts a mask vector of <N x i1>
+    /// note, the LLVM intrinsic accepts a mask vector of `<N x i1>`
     /// FIXME: review this if/when we fix up our mask story in general?
     pub(crate) fn simd_gather<T, U, V>(val: T, ptr: U, mask: V) -> T;
     /// llvm.masked.scatter
index 5a077a469d8390b427bfd8f69567a0b960d072a9..fc1e0bc426df34db6cb384e73a612c783c40cfd1 100644 (file)
@@ -40,7 +40,7 @@ macro_rules! unsafe_base {
 
 /// SAFETY: This macro should not be used for anything except Shl or Shr, and passed the appropriate shift intrinsic.
 /// It handles performing a bitand in addition to calling the shift operator, so that the result
-/// is well-defined: LLVM can return a poison value if you shl, lshr, or ashr if rhs >= <Int>::BITS
+/// is well-defined: LLVM can return a poison value if you shl, lshr, or ashr if `rhs >= <Int>::BITS`
 /// At worst, this will maybe add another instruction and cycle,
 /// at best, it may open up more optimization opportunities,
 /// or simply be elided entirely, especially for SIMD ISAs which default to this.