Skip to content

Commit e926f3d

Browse files
committed
check ./library too
1 parent 5476da0 commit e926f3d

File tree

15 files changed

+34
-26
lines changed

15 files changed

+34
-26
lines changed

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2290,7 +2290,7 @@ where
22902290
/// used inside the `if const`.
22912291
/// Note that the two arms of this `if` really each become their own function, which is why the
22922292
/// macro supports setting attributes for those functions. The runtime function is always
2293-
/// markes as `#[inline]`.
2293+
/// marked as `#[inline]`.
22942294
///
22952295
/// See [`const_eval_select()`] for the rules and requirements around that intrinsic.
22962296
pub(crate) macro const_eval_select {

library/core/src/intrinsics/simd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub unsafe fn simd_funnel_shl<T>(a: T, b: T, shift: T) -> T;
160160
#[rustc_nounwind]
161161
pub unsafe fn simd_funnel_shr<T>(a: T, b: T, shift: T) -> T;
162162

163-
/// "Ands" vectors elementwise.
163+
/// "And"s vectors elementwise.
164164
///
165165
/// `T` must be a vector of integers.
166166
#[rustc_intrinsic]
@@ -522,7 +522,7 @@ pub unsafe fn simd_reduce_max<T, U>(x: T) -> U;
522522
#[rustc_nounwind]
523523
pub unsafe fn simd_reduce_min<T, U>(x: T) -> U;
524524

525-
/// Logical "ands" all elements together.
525+
/// Logical "and"s all elements together.
526526
///
527527
/// `T` must be a vector of integers or floats.
528528
///

library/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
#![allow(internal_features)]
9090
#![deny(ffi_unwind_calls)]
9191
#![warn(unreachable_pub)]
92-
// Do not check link redundancy on bootstraping phase
92+
// Do not check link redundancy on bootstrapping phase
9393
#![allow(rustdoc::redundant_explicit_links)]
9494
#![warn(rustdoc::unescaped_backticks)]
9595
//

library/core/src/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@
792792
//!
793793
//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] only if all of its
794794
//! structurally-pinned fields are, too. This is [`Unpin`]'s behavior by default.
795-
//! However, as a libray author, it is your responsibility not to write something like
795+
//! However, as a library author, it is your responsibility not to write something like
796796
//! <code>impl\<T> [Unpin] for Struct\<T> {}</code> and then offer a method that provides
797797
//! structural pinning to an inner field of `T`, which may not be [`Unpin`]! (Adding *any*
798798
//! projection operation requires unsafe code, so the fact that [`Unpin`] is a safe trait does

library/core/src/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,8 +1690,8 @@ mod prim_ref {}
16901690
/// let ptr: fn(usize) -> usize = add_one;
16911691
/// assert_eq!(ptr(5), 6);
16921692
///
1693-
/// let clos: fn(usize) -> usize = |x| x + 5;
1694-
/// assert_eq!(clos(5), 10);
1693+
/// let closure: fn(usize) -> usize = |x| x + 5;
1694+
/// assert_eq!(closure(5), 10);
16951695
/// ```
16961696
///
16971697
/// In addition to varying based on their signature, function pointers come in two flavors: safe

library/core/src/ptr/const_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<T: PointeeSized> *const T {
2929
if const #[rustc_allow_const_fn_unstable(const_raw_ptr_comparison)] {
3030
match (ptr).guaranteed_eq(null_mut()) {
3131
Some(res) => res,
32-
// To remain maximally convervative, we stop execution when we don't
32+
// To remain maximally conservative, we stop execution when we don't
3333
// know whether the pointer is null or not.
3434
// We can *not* return `false` here, that would be unsound in `NonNull::new`!
3535
None => panic!("null-ness of this pointer cannot be determined in const context"),

library/panic_unwind/src/seh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor {
264264
// runtime under a try/catch block and the panic that we generate here will be
265265
// used as the result of the exception copy. This is used by the C++ runtime to
266266
// support capturing exceptions with std::exception_ptr, which we can't support
267-
// because Box<dyn Any> isn't clonable.
267+
// because Box<dyn Any> isn't cloneable.
268268
macro_rules! define_cleanup {
269269
($abi:tt $abi2:tt) => {
270270
unsafe extern $abi fn exception_cleanup(e: *mut Exception) {

library/std/src/sys/net/connection/socket/wasip2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Socket {
140140
0 => {}
141141
_ => {
142142
// WASI poll does not return POLLHUP or POLLERR in revents. Check if the
143-
// connnection actually succeeded and return ok only when the socket is
143+
// connection actually succeeded and return ok only when the socket is
144144
// ready and no errors were found.
145145
if let Some(e) = self.take_error()? {
146146
return Err(e);

library/std/src/sys/pal/uefi/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ impl<T> OwnedProtocol<T> {
487487
let protocol: *mut T = Box::into_raw(Box::new(protocol));
488488
let mut handle: r_efi::efi::Handle = crate::ptr::null_mut();
489489

490-
// FIXME: Move into r-efi once extended_varargs_abi_support is stablized
490+
// FIXME: Move into r-efi once extended_varargs_abi_support is stabilized
491491
let func: BootInstallMultipleProtocolInterfaces =
492492
unsafe { crate::mem::transmute((*bt.as_ptr()).install_multiple_protocol_interfaces) };
493493

@@ -521,7 +521,7 @@ impl<T> Drop for OwnedProtocol<T> {
521521
// Do not deallocate a runtime protocol
522522
if let Some(bt) = boot_services() {
523523
let bt: NonNull<r_efi::efi::BootServices> = bt.cast();
524-
// FIXME: Move into r-efi once extended_varargs_abi_support is stablized
524+
// FIXME: Move into r-efi once extended_varargs_abi_support is stabilized
525525
let func: BootUninstallMultipleProtocolInterfaces = unsafe {
526526
crate::mem::transmute((*bt.as_ptr()).uninstall_multiple_protocol_interfaces)
527527
};

library/std/src/sys/pal/unix/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ impl Instant {
265265
// https://www.manpagez.com/man/3/clock_gettime/
266266
//
267267
// CLOCK_UPTIME_RAW clock that increments monotonically, in the same man-
268-
// ner as CLOCK_MONOTONIC_RAW, but that does not incre-
269-
// ment while the system is asleep. The returned value
268+
// ner as CLOCK_MONOTONIC_RAW, but that does not increment
269+
// while the system is asleep. The returned value
270270
// is identical to the result of mach_absolute_time()
271271
// after the appropriate mach_timebase conversion is
272272
// applied.

0 commit comments

Comments
 (0)