diff options
| author | pavedroad <qcqs@outlook.com> | 2024-03-12 14:59:10 +0800 |
|---|---|---|
| committer | pavedroad <qcqs@outlook.com> | 2024-03-12 20:09:33 +0800 |
| commit | 6b082b5e6672ed6d5fdb08d1966d15d3080f1d21 (patch) | |
| tree | cbcfe1adf8cdfcd50b0027955e61b231cac9350e | |
| parent | 5aad51d015b8d3f6d823a6bf9dbc8ae3b9fd10c5 (diff) | |
| download | rust-6b082b5e6672ed6d5fdb08d1966d15d3080f1d21.tar.gz rust-6b082b5e6672ed6d5fdb08d1966d15d3080f1d21.zip | |
chore: remove repetitive words
Signed-off-by: pavedroad <qcqs@outlook.com> chore: remove repetitive words Signed-off-by: pavedroad <qcqs@outlook.com>
| -rw-r--r-- | compiler/rustc_mir_transform/src/ffi_unwind_calls.rs | 2 | ||||
| -rw-r--r-- | src/doc/rustc/src/platform-support/unknown-uefi.md | 2 | ||||
| -rw-r--r-- | tests/ui/type-alias-impl-trait/in-where-clause.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_transform/src/ffi_unwind_calls.rs b/compiler/rustc_mir_transform/src/ffi_unwind_calls.rs index d9387ecd14c..0970c4de19f 100644 --- a/compiler/rustc_mir_transform/src/ffi_unwind_calls.rs +++ b/compiler/rustc_mir_transform/src/ffi_unwind_calls.rs @@ -11,7 +11,7 @@ use rustc_target::spec::PanicStrategy; use crate::errors; /// Some of the functions declared as "may unwind" by `fn_can_unwind` can't actually unwind. In -/// particular, `extern "C"` is still considered as can-unwind on stable, but we need to to consider +/// particular, `extern "C"` is still considered as can-unwind on stable, but we need to consider /// it cannot-unwind here. So below we check `fn_can_unwind() && abi_can_unwind()` before concluding /// that a function call can unwind. fn abi_can_unwind(abi: Abi) -> bool { diff --git a/src/doc/rustc/src/platform-support/unknown-uefi.md b/src/doc/rustc/src/platform-support/unknown-uefi.md index 8fb155e1ffa..e6917502182 100644 --- a/src/doc/rustc/src/platform-support/unknown-uefi.md +++ b/src/doc/rustc/src/platform-support/unknown-uefi.md @@ -51,7 +51,7 @@ single stack. By default, the UEFI targets use the `link`-flavor of the LLVM linker `lld` to link binaries into the final PE32+ file suffixed with `*.efi`. The PE subsystem is set to `EFI_APPLICATION`, but can be modified by passing `/subsystem:<...>` -to the linker. Similarly, the entry-point is to to `efi_main` but can be +to the linker. Similarly, the entry-point is set to `efi_main` but can be changed via `/entry:<...>`. The panic-strategy is set to `abort`, The UEFI specification is available online for free: diff --git a/tests/ui/type-alias-impl-trait/in-where-clause.rs b/tests/ui/type-alias-impl-trait/in-where-clause.rs index 0ad6e7a6f60..7c0de39c7c9 100644 --- a/tests/ui/type-alias-impl-trait/in-where-clause.rs +++ b/tests/ui/type-alias-impl-trait/in-where-clause.rs @@ -1,5 +1,5 @@ //! We evaluate `1 + 2` with `Reveal::All` during typeck, causing -//! us to to get the concrete type of `Bar` while computing it. +//! us to get the concrete type of `Bar` while computing it. //! This again requires type checking `foo`. #![feature(type_alias_impl_trait)] type Bar = impl Sized; |
