Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling #110392

Closed
wants to merge 285 commits into from
Closed

Spelling #110392

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
285 commits
Select commit Hold shift + click to select a range
6fd4fe7
spelling: certainly
jsoref Apr 9, 2023
3a66aab
spelling: character
jsoref Apr 9, 2023
aa36295
spelling: clarification
jsoref Apr 9, 2023
24c8ac5
spelling: classified
jsoref Apr 9, 2023
baafacb
spelling: clause
jsoref Apr 11, 2023
fe9b3d2
spelling: closure
jsoref Apr 9, 2023
2874d2c
spelling: codegen
jsoref Apr 9, 2023
e211dea
spelling: collected
jsoref Apr 9, 2023
327a5b5
spelling: comment
jsoref Apr 9, 2023
befc7f0
spelling: compound
jsoref Apr 9, 2023
fd18c33
spelling: conceptually
jsoref Apr 9, 2023
f57630c
spelling: config
jsoref Apr 9, 2023
0b250bc
spelling: configures
jsoref Apr 9, 2023
47c0c46
spelling: considered
jsoref Apr 9, 2023
4bcb530
spelling: constituent
jsoref Apr 16, 2023
1d979d5
spelling: constraint
jsoref Apr 9, 2023
33089e4
spelling: constraints
jsoref Apr 13, 2023
cc9579f
spelling: consts
jsoref Apr 10, 2023
1eaa354
spelling: contains
jsoref Apr 9, 2023
9caf766
spelling: contravariant
jsoref Apr 9, 2023
a5403fa
spelling: convenience
jsoref Apr 9, 2023
cca99c4
spelling: correct
jsoref Apr 9, 2023
7c4b824
spelling: correspondence
jsoref Apr 9, 2023
d97a4c6
spelling: corresponds
jsoref Apr 9, 2023
12f7b4c
spelling: crate
jsoref Apr 13, 2023
6a68535
spelling: debruijn
jsoref Apr 9, 2023
8eaf5c6
spelling: debug
jsoref Apr 13, 2023
2029a05
spelling: debugable
jsoref Apr 13, 2023
08b8db3
spelling: debuggable
jsoref Apr 9, 2023
d72adcf
spelling: debugger
jsoref Apr 9, 2023
3e7f4bc
spelling: decision
jsoref Apr 9, 2023
f927419
spelling: declaration
jsoref Apr 9, 2023
4c79318
spelling: declarations
jsoref Apr 13, 2023
595b099
spelling: decreased
jsoref Apr 9, 2023
da26c51
spelling: deliberately
jsoref Apr 9, 2023
2ca5270
spelling: deprecate
jsoref Apr 9, 2023
bc5ca04
spelling: deprecation
jsoref Apr 9, 2023
75bf972
spelling: desugaring
jsoref Apr 9, 2023
8f6feab
spelling: deterministic
jsoref Apr 9, 2023
11e073e
spelling: diagnostic
jsoref Apr 9, 2023
11114a8
spelling: different
jsoref Apr 9, 2023
bb36a7b
spelling: directives
jsoref Apr 9, 2023
6b9ee90
spelling: directories
jsoref Apr 9, 2023
7345200
spelling: discriminant
jsoref Apr 9, 2023
d472a77
spelling: display
jsoref Apr 9, 2023
7db51dd
spelling: documentation
jsoref Apr 9, 2023
270ad37
spelling: doesn't
jsoref Apr 9, 2023
e81dc36
spelling: droppable
jsoref Apr 9, 2023
c9118a8
spelling: efficient
jsoref Apr 9, 2023
7f95b5c
spelling: elaborate
jsoref Apr 9, 2023
dc8620e
spelling: ellipsis
jsoref Apr 9, 2023
89dbf25
spelling: enclave
jsoref Apr 9, 2023
e017076
spelling: encoded
jsoref Apr 9, 2023
f5efa43
spelling: endianness
jsoref Apr 9, 2023
0e9d160
spelling: environment
jsoref Apr 9, 2023
04385b6
spelling: erratic
jsoref Apr 9, 2023
5154de6
spelling: erroneous
jsoref Apr 9, 2023
b9cfbf2
spelling: evaluability
jsoref Apr 9, 2023
8479835
spelling: evaluable
jsoref Apr 9, 2023
e2464d4
spelling: evaluate
jsoref Apr 9, 2023
45e6c91
spelling: evaluated
jsoref Apr 9, 2023
375b489
spelling: evaluation
jsoref Apr 9, 2023
6dfd469
spelling: exactly
jsoref Apr 9, 2023
054ac8d
spelling: exhaustive
jsoref Apr 9, 2023
b5da50b
spelling: explicit
jsoref Apr 9, 2023
6c617e8
spelling: explicitly
jsoref Apr 9, 2023
a715304
spelling: expression
jsoref Apr 9, 2023
5284a88
spelling: extended
jsoref Apr 9, 2023
c48ff67
spelling: extractor
jsoref Apr 9, 2023
4f1cec0
spelling: fallback
jsoref Apr 10, 2023
2609d39
spelling: fallible
jsoref Apr 10, 2023
18c3a0b
spelling: fulfill
jsoref Apr 10, 2023
f5892bb
spelling: fundamental
jsoref Apr 9, 2023
b583940
spelling: further
jsoref Apr 9, 2023
d366476
spelling: generic
jsoref Apr 10, 2023
eeeedd5
spelling: getting
jsoref Apr 10, 2023
4493cd6
spelling: github
jsoref Apr 9, 2023
65364cc
spelling: granular
jsoref Apr 10, 2023
e4f2141
spelling: has
jsoref Apr 9, 2023
461ce3a
spelling: hashmap
jsoref Apr 9, 2023
205dff3
spelling: highlighted
jsoref Apr 10, 2023
ec7e125
spelling: highlighting
jsoref Apr 10, 2023
a40b90f
spelling: hundred
jsoref Apr 10, 2023
41f5ea3
spelling: ignorable
jsoref Apr 10, 2023
493333c
spelling: illustrative
jsoref Apr 10, 2023
6c23333
spelling: immediate
jsoref Apr 10, 2023
1ddfdb8
spelling: immutable
jsoref Apr 10, 2023
2e8a94c
spelling: implementation
jsoref Apr 10, 2023
8f14f88
spelling: implicit
jsoref Apr 9, 2023
434d0a3
spelling: imported
jsoref Apr 10, 2023
a75e503
spelling: in constraints
jsoref Apr 9, 2023
5acea75
spelling: in_empty
jsoref Apr 10, 2023
48f4368
spelling: inaccessible
jsoref Apr 9, 2023
839ffbc
spelling: incompatibilities
jsoref Apr 10, 2023
7e91af6
spelling: incompatible
jsoref Apr 10, 2023
f0192d4
spelling: inference
jsoref Apr 10, 2023
3b6fd07
spelling: inferred
jsoref Apr 9, 2023
40bab39
spelling: infinite
jsoref Apr 9, 2023
66495db
spelling: infringing
jsoref Apr 9, 2023
70a428b
spelling: inherited
jsoref Apr 10, 2023
986482f
spelling: initialized
jsoref Apr 10, 2023
2b119b5
spelling: inlining
jsoref Apr 10, 2023
a6beda8
spelling: instantiating
jsoref Apr 10, 2023
60fa579
spelling: instrumentation
jsoref Apr 10, 2023
df0512c
spelling: interfere
jsoref Apr 9, 2023
38de0b0
spelling: into
jsoref Apr 9, 2023
37144bc
spelling: intrinsic
jsoref Apr 10, 2023
605f129
spelling: intrinsics
jsoref Apr 10, 2023
ca43649
spelling: introduced
jsoref Apr 10, 2023
cf22b02
spelling: invocation
jsoref Apr 9, 2023
2085ab5
spelling: involving
jsoref Apr 9, 2023
bb02feb
spelling: irrelevant
jsoref Apr 9, 2023
6e4a41a
spelling: javascript
jsoref Apr 9, 2023
72d7998
spelling: kaboom
jsoref Apr 10, 2023
d14ec0a
spelling: keywords
jsoref Apr 10, 2023
93ad88a
spelling: labels
jsoref Apr 9, 2023
6a492e6
spelling: length
jsoref Apr 10, 2023
6adea2d
spelling: libunwind
jsoref Apr 10, 2023
7b60e2d
spelling: lifetime
jsoref Apr 10, 2023
cf57ccc
spelling: lifetimes
jsoref Apr 10, 2023
92991c1
spelling: liveness
jsoref Apr 10, 2023
9356aca
spelling: mandatory
jsoref Apr 10, 2023
b2e8f15
spelling: match
jsoref Apr 9, 2023
27a9edf
spelling: matches
jsoref Apr 9, 2023
59a5c63
spelling: metadata
jsoref Apr 10, 2023
a4ce3a1
spelling: migration
jsoref Apr 10, 2023
6cd6bbd
spelling: monomorphization
jsoref Apr 10, 2023
8d3c3f0
spelling: multibyte
jsoref Apr 10, 2023
43eec57
spelling: multiline
jsoref Apr 10, 2023
9ee97ec
spelling: multiple
jsoref Apr 9, 2023
dba599a
spelling: mutability
jsoref Apr 10, 2023
bdd6944
spelling: mutably
jsoref Apr 10, 2023
bb882f3
spelling: mutexes
jsoref Apr 10, 2023
c95f91c
spelling: naked
jsoref Apr 10, 2023
53ab04b
spelling: needing
jsoref Apr 10, 2023
d3aa27d
spelling: needs
jsoref Apr 10, 2023
aac2e3d
spelling: nonexistent
jsoref Apr 10, 2023
857f148
spelling: nontrivial
jsoref Apr 10, 2023
f1f0571
spelling: normalizing
jsoref Apr 10, 2023
f308f64
spelling: obligation
jsoref Apr 10, 2023
20c1925
spelling: obligations
jsoref Apr 9, 2023
966546f
spelling: occurs
jsoref Apr 10, 2023
026d16c
spelling: offset
jsoref Apr 10, 2023
f95312d
spelling: offsets
jsoref Apr 10, 2023
9faf61d
spelling: opaque
jsoref Apr 10, 2023
ee5dec2
spelling: opportunities
jsoref Apr 10, 2023
d788184
spelling: opt-in
jsoref Apr 10, 2023
d34b5ce
spelling: optimizer
jsoref Apr 10, 2023
f5727b3
spelling: option
jsoref Apr 10, 2023
075daee
spelling: origins
jsoref Apr 10, 2023
1a0936d
spelling: outlive
jsoref Apr 10, 2023
ad3a33a
spelling: outlives
jsoref Apr 10, 2023
3b3b623
spelling: overlapping
jsoref Apr 10, 2023
ac49554
spelling: overridden
jsoref Apr 10, 2023
4a48e08
spelling: panicking
jsoref Apr 10, 2023
d145d2a
spelling: panoply
jsoref Apr 10, 2023
875d157
spelling: paragraph
jsoref Apr 10, 2023
bf1022f
spelling: parentheses
jsoref Apr 10, 2023
cfdd7d1
spelling: phantom
jsoref Apr 10, 2023
164a6f8
spelling: poisson
jsoref Apr 10, 2023
fe5d998
spelling: positions
jsoref Apr 9, 2023
d54305c
spelling: potential
jsoref Apr 10, 2023
616341a
spelling: precedes
jsoref Apr 10, 2023
1599c7c
spelling: precisely
jsoref Apr 10, 2023
a231d5a
spelling: predecessors
jsoref Apr 10, 2023
ab7aa61
spelling: predicate
jsoref Apr 10, 2023
76d31dd
spelling: predicates
jsoref Apr 10, 2023
69cd2a8
spelling: preexisting
jsoref Apr 9, 2023
1e0aec5
spelling: prefixes
jsoref Apr 10, 2023
9394ede
spelling: preparation
jsoref Apr 10, 2023
2bbd3e1
spelling: prescribed
jsoref Apr 10, 2023
3adfa1f
spelling: process
jsoref Apr 10, 2023
8d7446f
spelling: products
jsoref Apr 10, 2023
e616421
spelling: propagated
jsoref Apr 10, 2023
3bb1c6c
spelling: propagates
jsoref Apr 10, 2023
8b88b11
spelling: protection
jsoref Apr 10, 2023
27707b9
spelling: purposes
jsoref Apr 10, 2023
e91b239
spelling: reachable
jsoref Apr 10, 2023
b8a6355
spelling: really
jsoref Apr 9, 2023
ac8043c
spelling: reentrant
jsoref Apr 9, 2023
f12efd0
spelling: referent
jsoref Apr 10, 2023
fdc8e12
spelling: referring
jsoref Apr 9, 2023
e1a2f27
spelling: regression
jsoref Apr 10, 2023
1dc8871
spelling: repository
jsoref Apr 10, 2023
abe5acb
spelling: representation
jsoref Apr 10, 2023
0eaa4c0
spelling: requirement
jsoref Apr 10, 2023
e04ed34
spelling: resilient
jsoref Apr 10, 2023
58861fd
spelling: responsibility
jsoref Apr 10, 2023
f755bea
spelling: restrictions
jsoref Apr 10, 2023
e5ce2ad
spelling: rustonomicon
jsoref Apr 10, 2023
ff7d08f
spelling: section
jsoref Apr 9, 2023
5767b88
spelling: semantics
jsoref Apr 10, 2023
79b1f84
spelling: sentinel
jsoref Apr 10, 2023
f843bf6
spelling: separation
jsoref Apr 16, 2023
db46a6a
spelling: separator
jsoref Apr 10, 2023
7ac6364
spelling: shakespeare
jsoref Apr 10, 2023
fcf5f82
spelling: shenanigans
jsoref Apr 10, 2023
860665e
spelling: shortcircuit
jsoref Apr 10, 2023
e2b0098
spelling: should
jsoref Apr 10, 2023
84f9efa
spelling: simplifiable
jsoref Apr 10, 2023
8e423c0
spelling: simplifications
jsoref Apr 10, 2023
bb015f9
spelling: simplify
jsoref Apr 10, 2023
b8f9b6a
spelling: situation
jsoref Apr 10, 2023
64be7b5
spelling: smart
jsoref Apr 10, 2023
064a5b8
spelling: specifically
jsoref Apr 10, 2023
68ef75f
spelling: specify
jsoref Apr 10, 2023
73eddc5
spelling: stabilization
jsoref Apr 10, 2023
10d82e2
spelling: stabilized
jsoref Apr 10, 2023
b4a4960
spelling: structural
jsoref Apr 10, 2023
321956a
spelling: structurally
jsoref Apr 10, 2023
772b4e4
spelling: subcommand
jsoref Apr 10, 2023
239a8a1
spelling: substituted
jsoref Apr 10, 2023
2e563ab
spelling: substitution
jsoref Apr 9, 2023
5dd664f
spelling: successfully
jsoref Apr 10, 2023
251d241
spelling: suffixes
jsoref Apr 10, 2023
b708d8b
spelling: suggestibility
jsoref Apr 10, 2023
d348c30
spelling: suggestion
jsoref Apr 10, 2023
46a9505
spelling: suppressed
jsoref Apr 10, 2023
3f1454e
spelling: synthesize
jsoref Apr 10, 2023
c2dbba4
spelling: synthetic
jsoref Apr 10, 2023
6aeecd7
spelling: terminator
jsoref Apr 10, 2023
48a4b3b
spelling: that
jsoref Apr 9, 2023
59a1e16
spelling: the
jsoref Apr 9, 2023
e60819a
spelling: toolchain
jsoref Apr 10, 2023
c9f9155
spelling: toolstate
jsoref Apr 10, 2023
f2371b6
spelling: trampoline
jsoref Apr 10, 2023
a66f81b
spelling: translatable
jsoref Apr 10, 2023
b863cc2
spelling: transmuting
jsoref Apr 10, 2023
a685520
spelling: transparent
jsoref Apr 10, 2023
036dc94
spelling: trigger
jsoref Apr 10, 2023
11ab0ff
spelling: triggered
jsoref Apr 10, 2023
40cc29f
spelling: two
jsoref Apr 9, 2023
3735a25
spelling: typographical
jsoref Apr 10, 2023
9576553
spelling: unacceptable
jsoref Apr 10, 2023
4fcb3db
spelling: unclosed
jsoref Apr 10, 2023
b5ebc79
spelling: uninhabited
jsoref Apr 10, 2023
0518b16
spelling: uninitialized
jsoref Apr 10, 2023
62f000d
spelling: unknown
jsoref Apr 10, 2023
823919d
spelling: unreachable
jsoref Apr 10, 2023
954025f
spelling: unresolved
jsoref Apr 10, 2023
101d22a
spelling: unsatisfiable
jsoref Apr 10, 2023
dc01806
spelling: use
jsoref Apr 9, 2023
5595282
spelling: variable
jsoref Apr 9, 2023
08a8679
spelling: variadic
jsoref Apr 10, 2023
f3af46a
spelling: verified
jsoref Apr 10, 2023
975b9a8
spelling: verifies
jsoref Apr 10, 2023
2d35b05
spelling: visibility
jsoref Apr 10, 2023
6b33c07
spelling: volatile
jsoref Apr 10, 2023
0373377
spelling: whoopsie
jsoref Apr 10, 2023
8c46cca
spelling: workaround
jsoref Apr 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/library_tracking_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Tracking issues are for tracking a feature from implementation to stabilization.
Make sure to include the relevant RFC for the feature if it has one.

If the new feature is small, it may be fine to skip the RFC process. In that
case, you can use use `issue = "none"` in your initial implementation PR. The
case, you can use `issue = "none"` in your initial implementation PR. The
reviewer will ask you to open a tracking issue if they agree your feature can be
added without an RFC.
-->
Expand Down Expand Up @@ -65,7 +65,7 @@ the rfcbot will ask all the team members to verify they agree with
stabilization. Once enough members agree and there are no concerns, the final
comment period begins: this issue will be marked as such and will be listed
in the next This Week in Rust newsletter. If no blocking concerns are raised in
that period of 10 days, a stabilzation PR can be opened by anyone.
that period of 10 days, a stabilization PR can be opened by anyone.
-->

### Unresolved Questions
Expand Down
10 changes: 5 additions & 5 deletions RELEASES.md
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some projects don't like changing changelogs. Happy to drop.

Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ Compatibility Notes
- [rustdoc: doctests are now run on unexported `macro_rules!` macros, matching other private items][96630]
- [rustdoc: Remove .woff font files][96279]
- [Enforce Copy bounds for repeat elements while considering lifetimes][95819]
- [Windows: Fix potentinal unsoundness by aborting if `File` reads or writes cannot
- [Windows: Fix potential unsoundness by aborting if `File` reads or writes cannot
complete synchronously][95469].

Internal Changes
Expand Down Expand Up @@ -1794,10 +1794,10 @@ Libraries
- [impl Default, Copy, Clone for std::io::Sink and std::io::Empty][rust#86744]
- [`impl From<[(K, V); N]>` for all collections.][rust#84111]
- [Remove `P: Unpin` bound on impl Future for Pin.][rust#81363]
- [Treat invalid environment variable names as non-existent.][rust#86183]
- [Treat invalid environment variable names as nonexistent.][rust#86183]
Previously, the environment functions would panic if given a variable name
with an internal null character or equal sign (`=`). Now, these functions will
just treat such names as non-existent variables, since the OS cannot represent
just treat such names as nonexistent variables, since the OS cannot represent
the existence of a variable with such a name.

Stabilised APIs
Expand Down Expand Up @@ -1990,7 +1990,7 @@ Compatibility Notes
kinds of errors could be categorised [into newer more specific `ErrorKind`
variants][79965], and that they do not represent a user error.
- [Using environment variable names with `process::Command` on Windows now
behaves as expected.][85270] Previously using envionment variables with
behaves as expected.][85270] Previously using environment variables with
`Command` would cause them to be ASCII-uppercased.
- [Rustdoc will now warn on using rustdoc lints that aren't prefixed
with `rustdoc::`][86849]
Expand Down Expand Up @@ -6367,7 +6367,7 @@ eg. `static MINUTE: Duration = Duration::from_secs(60);`

Cargo
-----
- [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
- [`cargo new` no longer removes `rust` or `rs` prefixes/suffixes.][cargo/5013]
- [`cargo new` now defaults to creating a binary crate, instead of a
library crate.][cargo/5029]

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_apfloat/src/ieee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2645,7 +2645,7 @@ mod sig {

// Convert the result having "2 * precision" significant-bits back to the one
// having "precision" significant-bits. First, move the radix point from
// poision "2*precision - 1" to "precision - 1". The exponent need to be
// poisson "2*precision - 1" to "precision - 1". The exponent need to be
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

// adjusted by "2*precision - 1" - "precision - 1" = "precision".
*exp -= precision as ExpInt + 1;

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_apfloat/tests/ieee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn is_signaling() {
fn next() {
// 1. Test Special Cases Values.
//
// Test all special values for nextUp and nextDown perscribed by IEEE-754R
// Test all special values for nextUp and nextDown prescribed by IEEE-754R
// 2008. These are:
// 1. +inf
// 2. -inf
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_ast_passes/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ ast_passes_feature_on_non_nightly = `#![feature]` may not be used on the {$chann
.suggestion = remove the attribute
.stable_since = the feature `{$name}` has been stable since `{$since}` and no longer requires an attribute to enable

ast_passes_incompatbile_features = `{$f1}` and `{$f2}` are incompatible, using them at the same time is not allowed
ast_passes_incompatible_features = `{$f1}` and `{$f2}` are incompatible, using them at the same time is not allowed
.help = remove one of these features

ast_passes_show_span = {$msg}
2 changes: 1 addition & 1 deletion compiler/rustc_ast_passes/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl AddToDiagnostic for StableFeature {
}

#[derive(Diagnostic)]
#[diag(ast_passes_incompatbile_features)]
#[diag(ast_passes_incompatible_features)]
#[help]
pub struct IncompatibleFeatures {
#[primary_span]
Expand Down
6 changes: 3 additions & 3 deletions compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ pub fn mut_borrow_of_mutable_ref(local_decl: &LocalDecl<'_>, local_name: Option<
// suggest removing the `&mut`.
//
// Deliberately fall into this case for all implicit self types,
// so that we don't fall in to the next case with them.
// so that we don't fall into the next case with them.
kind == hir::ImplicitSelfKind::MutRef
}
_ if Some(kw::SelfLower) == local_name => {
Expand Down Expand Up @@ -1231,7 +1231,7 @@ fn suggest_ampmut<'tcx>(
}
}

let (suggestability, highlight_span) = match opt_ty_info {
let (suggestibility, highlight_span) = match opt_ty_info {
// if this is a variable binding with an explicit type,
// try to highlight that for the suggestion.
Some(ty_span) => (true, ty_span),
Expand All @@ -1252,7 +1252,7 @@ fn suggest_ampmut<'tcx>(
let ty_mut = local_decl.ty.builtin_deref(true).unwrap();
assert_eq!(ty_mut.mutbl, hir::Mutability::Not);
(
suggestability,
suggestibility,
highlight_span,
if local_decl.ty.is_ref() {
format!("&mut {}", ty_mut.ty)
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_cranelift/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ $ ./test.sh

For more docs on how to build and test see [build_system/usage.txt](build_system/usage.txt) or the help message of `./y.rs`.

Alternatively you can download a pre built version from [Github Actions]. It is listed in the artifacts section
Alternatively you can download a pre built version from [GitHub Actions]. It is listed in the artifacts section
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brand

of workflow runs. Unfortunately due to GHA restrictions you need to be logged in to access it.

[Github Actions]: https://github.com/bjorn3/rustc_codegen_cranelift/actions?query=branch%3Amaster+event%3Apush+is%3Asuccess
[GitHub Actions]: https://github.com/bjorn3/rustc_codegen_cranelift/actions?query=branch%3Amaster+event%3Apush+is%3Asuccess

## Usage

Expand Down
24 changes: 12 additions & 12 deletions compiler/rustc_codegen_cranelift/example/std_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ fn main() {
assert_eq!(tmp as i128, -0x1234_5678_9ABC_DEF0i128);

// Check that all u/i128 <-> float casts work correctly.
let houndred_u128 = 100u128;
let houndred_i128 = 100i128;
let houndred_f32 = 100.0f32;
let houndred_f64 = 100.0f64;
assert_eq!(houndred_u128 as f32, 100.0);
assert_eq!(houndred_u128 as f64, 100.0);
assert_eq!(houndred_f32 as u128, 100);
assert_eq!(houndred_f64 as u128, 100);
assert_eq!(houndred_i128 as f32, 100.0);
assert_eq!(houndred_i128 as f64, 100.0);
assert_eq!(houndred_f32 as i128, 100);
assert_eq!(houndred_f64 as i128, 100);
let hundred_u128 = 100u128;
let hundred_i128 = 100i128;
let hundred_f32 = 100.0f32;
let hundred_f64 = 100.0f64;
assert_eq!(hundred_u128 as f32, 100.0);
assert_eq!(hundred_u128 as f64, 100.0);
assert_eq!(hundred_f32 as u128, 100);
assert_eq!(hundred_f64 as u128, 100);
assert_eq!(hundred_i128 as f32, 100.0);
assert_eq!(hundred_i128 as f64, 100.0);
assert_eq!(hundred_f32 as i128, 100);
assert_eq!(hundred_f64 as i128, 100);
assert_eq!(1u128.rotate_left(2), 4);

assert_eq!(black_box(f32::NAN) as i128, 0);
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::ffi::c_int;
#[cfg(feature = "jit")]
use std::ffi::c_void;

// FIXME replace with core::ffi::c_size_t once stablized
// FIXME replace with core::ffi::c_size_t once stabilized
#[allow(non_camel_case_types)]
#[cfg(feature = "jit")]
type size_t = usize;
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_gcc/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ debug_tree(expr);

(defined in print-tree.h)

To print a debug reprensentation of a gimple struct:
To print a debug representation of a gimple struct:

```c
debug_gimple_stmt(gimple_struct)
Expand Down
24 changes: 12 additions & 12 deletions compiler/rustc_codegen_gcc/example/std_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ fn main() {
assert_eq!(tmp as i128, -0x1234_5678_9ABC_DEF0i128);

// Check that all u/i128 <-> float casts work correctly.
let houndred_u128 = 100u128;
let houndred_i128 = 100i128;
let houndred_f32 = 100.0f32;
let houndred_f64 = 100.0f64;
assert_eq!(houndred_u128 as f32, 100.0);
assert_eq!(houndred_u128 as f64, 100.0);
assert_eq!(houndred_f32 as u128, 100);
assert_eq!(houndred_f64 as u128, 100);
assert_eq!(houndred_i128 as f32, 100.0);
assert_eq!(houndred_i128 as f64, 100.0);
assert_eq!(houndred_f32 as i128, 100);
assert_eq!(houndred_f64 as i128, 100);
let hundred_u128 = 100u128;
let hundred_i128 = 100i128;
let hundred_f32 = 100.0f32;
let hundred_f64 = 100.0f64;
assert_eq!(hundred_u128 as f32, 100.0);
assert_eq!(hundred_u128 as f64, 100.0);
assert_eq!(hundred_f32 as u128, 100);
assert_eq!(hundred_f64 as u128, 100);
assert_eq!(hundred_i128 as f32, 100.0);
assert_eq!(hundred_i128 as f64, 100.0);
assert_eq!(hundred_f32 as i128, 100);
assert_eq!(hundred_f64 as i128, 100);

let _a = 1u32 << 2u8;

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_gcc/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol, supports_128bit_i
context.set_keep_intermediates(true);
}

// NOTE: The codegen generates unrechable blocks.
// NOTE: The codegen generates unreachable blocks.
context.set_allow_unreachable_blocks(true);

{
Expand Down
10 changes: 5 additions & 5 deletions compiler/rustc_codegen_gcc/tools/generate_intrinsics.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def convert_to_string(content):
return content


def extract_instrinsics_from_llvm(llvm_path, intrinsics):
def extract_intrinsics_from_llvm(llvm_path, intrinsics):
p = subprocess.Popen(
["llvm-tblgen", "llvm/IR/Intrinsics.td"],
cwd=os.path.join(llvm_path, "llvm/include"),
Expand Down Expand Up @@ -89,7 +89,7 @@ def append_translation(json_data, p, array):
append_intrinsic(array, content[1], content[3])


def extract_instrinsics_from_llvmint(llvmint, intrinsics):
def extract_intrinsics_from_llvmint(llvmint, intrinsics):
archs = [
"AMDGPU",
"aarch64",
Expand Down Expand Up @@ -153,9 +153,9 @@ def update_intrinsics(llvm_path, llvmint, llvmint2):
intrinsics_llvmint = {}
all_intrinsics = {}

extract_instrinsics_from_llvm(llvm_path, intrinsics_llvm)
extract_instrinsics_from_llvmint(llvmint, intrinsics_llvmint)
extract_instrinsics_from_llvmint(llvmint2, intrinsics_llvmint)
extract_intrinsics_from_llvm(llvm_path, intrinsics_llvm)
extract_intrinsics_from_llvmint(llvmint, intrinsics_llvmint)
extract_intrinsics_from_llvmint(llvmint2, intrinsics_llvmint)

intrinsics = {}
# We give priority to translations from LLVM over the ones from llvmint.
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ pub fn insert_reference_to_gdb_debug_scripts_section_global(bx: &mut Builder<'_,
bx.const_bitcast(get_or_insert_gdb_debug_scripts_section_global(bx), bx.type_i8p());
// Load just the first byte as that's all that's necessary to force
// LLVM to keep around the reference to the global.
let volative_load_instruction = bx.volatile_load(bx.type_i8(), gdb_debug_scripts_section);
let volatile_load_instruction = bx.volatile_load(bx.type_i8(), gdb_debug_scripts_section);
unsafe {
llvm::LLVMSetAlignment(volative_load_instruction, 1);
llvm::LLVMSetAlignment(volatile_load_instruction, 1);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const SINGLE_VARIANT_VIRTUAL_DISR: u64 = 0;

/// In CPP-like mode, we generate a union with a field for each variant and an
/// explicit tag field. The field of each variant has a struct type
/// that encodes the discrimiant of the variant and it's data layout.
/// that encodes the discriminant of the variant and it's data layout.
/// The union also has a nested enumeration type that is only used for encoding
/// variant names in an efficient way. Its enumerator values do _not_ correspond
/// to the enum's discriminant values.
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_llvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ mod declare;
mod errors;
mod intrinsic;

// The following is a work around that replaces `pub mod llvm;` and that fixes issue 53912.
// The following is a workaround that replaces `pub mod llvm;` and that fixes issue 53912.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the noun form is a single word.

#[path = "llvm/mod.rs"]
mod llvm_;
pub mod llvm {
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ codegen_ssa_processing_dymutil_failed = processing debug info with `dsymutil` fa

codegen_ssa_unable_to_run_dsymutil = unable to run `dsymutil`: {$error}

codegen_ssa_stripping_debu_info_failed = stripping debug info with `{$util}` failed: {$status}
codegen_ssa_stripping_debug_info_failed = stripping debug info with `{$util}` failed: {$status}
.note = {$output}

codegen_ssa_unable_to_run = unable to run `{$util}`: {$error}
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ fn execute_copy_from_cache_work_item<B: ExtraBackendMethods>(
let load_from_incr_comp_dir = |output_path: PathBuf, saved_path: &str| {
let source_file = in_incr_comp_dir(&incr_comp_session_dir, saved_path);
debug!(
"copying pre-existing module `{}` from {:?} to {}",
"copying preexisting module `{}` from {:?} to {}",
module.name,
source_file,
output_path.display()
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/codegen_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
None => {
// Unfortunately, unconditionally using `llvm.used` causes
// issues in handling `.init_array` with the gold linker,
// but using `llvm.compiler.used` caused a nontrival amount
// but using `llvm.compiler.used` caused a nontrivial amount
// of unintentional ecosystem breakage -- particularly on
// Mach-O targets.
//
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ pub struct UnableToRunDsymutil {
}

#[derive(Diagnostic)]
#[diag(codegen_ssa_stripping_debu_info_failed)]
#[diag(codegen_ssa_stripping_debug_info_failed)]
#[note]
pub struct StrippingDebugInfoFailed<'a> {
pub util: &'a str,
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_const_eval/src/interpret/validity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
Abi::Scalar(scalar_layout) => {
if !scalar_layout.is_uninit_valid() {
// There is something to check here.
let scalar = self.read_scalar(op, "initiailized scalar value")?;
let scalar = self.read_scalar(op, "initialized scalar value")?;
self.visit_scalar(scalar, scalar_layout)?;
}
}
Expand All @@ -794,7 +794,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
// the other must be init.
if !a_layout.is_uninit_valid() && !b_layout.is_uninit_valid() {
let (a, b) =
self.read_immediate(op, "initiailized scalar value")?.to_scalar_pair();
self.read_immediate(op, "initialized scalar value")?.to_scalar_pair();
self.visit_scalar(a, a_layout)?;
self.visit_scalar(b, b_layout)?;
}
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_const_eval/src/transform/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
// We sometimes have to use `defining_opaque_types` for subtyping
// to succeed here and figuring out how exactly that should work
// is annoying. It is harmless enough to just not validate anything
// in that case. We still check this after analysis as all opque
// in that case. We still check this after analysis as all opaque
// types have been revealed at this point.
if (src, dest).has_opaque_types() {
return true;
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_data_structures/src/profiling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ impl SelfProfiler {
let crate_name = crate_name.unwrap_or("unknown-crate");
// HACK(eddyb) we need to pad the PID, strange as it may seem, as its
// length can behave as a source of entropy for heap addresses, when
// ASLR is disabled and the heap is otherwise determinic.
// ASLR is disabled and the heap is otherwise deterministic.
let pid: u32 = process::id();
let filename = format!("{crate_name}-{pid:07}.rustc_profile");
let path = output_directory.join(&filename);
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_error_codes/src/error_codes/E0026.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
A struct pattern attempted to extract a non-existent field from a struct.
A struct pattern attempted to extract a nonexistent field from a struct.

Erroneous code example:

Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_error_codes/src/error_codes/E0208.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ error: [-, o]
This error is deliberately triggered with the `#[rustc_variance]` attribute
(`#![feature(rustc_attrs)]` must be enabled) and helps to show you the variance
of the type's generic parameters. You can read more about variance and
subtyping in [this section of the Rustnomicon]. For a more in depth look at
subtyping in [this section of the Rustonomicon]. For a more in depth look at
variance (including a more complete list of common variances) see
[this section of the Reference]. For information on how variance is implemented
in the compiler, see [this section of `rustc-dev-guide`].
Expand All @@ -41,6 +41,6 @@ This error can be easily fixed by removing the `#[rustc_variance]` attribute,
the compiler's suggestion to comment it out can be applied automatically with
`rustfix`.

[this section of the Rustnomicon]: https://doc.rust-lang.org/nomicon/subtyping.html
[this section of the Rustonomicon]: https://doc.rust-lang.org/nomicon/subtyping.html
[this section of the Reference]: https://doc.rust-lang.org/reference/subtyping.html#variance
[this section of `rustc-dev-guide`]: https://rustc-dev-guide.rust-lang.org/variance.html
2 changes: 1 addition & 1 deletion compiler/rustc_error_codes/src/error_codes/E0311.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ If `no_restriction()` were to use `&T` instead of `&()` as an argument, the
compiler would have added an implied bound, causing this to compile.

This error can be resolved by explicitly naming the elided lifetime for `x` and
then explicily requiring that the generic parameter `T` outlives that lifetime:
then explicitly requiring that the generic parameter `T` outlives that lifetime:

```
fn no_restriction<'a, T: 'a>(x: &'a ()) -> &'a () {
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_error_codes/src/error_codes/E0457.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Plugin `..` only found in rlib format, but must be available in dylib format.

Erroronous code example:
Erroneous code example:

`rlib-plugin.rs`
```ignore (needs-linkage-with-other-tests)
Expand Down
Loading