Skip to content

Commit

Permalink
Avoid two regression test warnings (#2815)
Browse files Browse the repository at this point in the history
* No need for unsafe in this place.
* Wrap a URL in angle brackets to produce better documentation.
  • Loading branch information
tautschnig committed Oct 9, 2023
1 parent ab41be5 commit 9c3d4e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ impl<'tcx> GotocCtx<'tcx> {
}

/// This is an intrinsic that was added in
/// https://github.com/rust-lang/rust/pull/114382 that is essentially the
/// <https://github.com/rust-lang/rust/pull/114382> that is essentially the
/// same as memcmp: it compares two slices up to the specified length.
/// The implementation is the same as the hook for `memcmp`.
pub fn codegen_compare_bytes(
Expand Down
2 changes: 1 addition & 1 deletion library/kani/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ mod test {
#[test]
#[should_panic(expected = "Expected size of return type and mask lanes to match")]
fn test_invalid_generics() {
let mask = unsafe { mask32x16::splat(false) };
let mask = mask32x16::splat(false);
assert_eq!(unsafe { kani_intrinsic::simd_bitmask::<_, u16, i32, 2>(mask) }, u16::MAX);
}

Expand Down

0 comments on commit 9c3d4e8

Please sign in to comment.