Skip to content

Commit cf1cba0

Browse files
Merge branch 'master' of https://github.com/ridwanabdillahi/rfcs into natvis
2 parents c9b1b84 + b1de058 commit cf1cba0

19 files changed

+166
-25
lines changed

text/0048-traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ wait till the end then we will have more type information available.
219219

220220
In my proposed solution, we eliminate the phase distinction. Instead,
221221
we simply track *pending constraints*. We are free to attempt to
222-
resolve pending constraints whenever desired. In paricular, whenever
222+
resolve pending constraints whenever desired. In particular, whenever
223223
we find we need more type information to proceed with some
224224
type-overloaded operation, rather than reporting an error we can try
225225
and resolve pending constraints. If that helps give more information,

text/0198-slice-notation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@ There are at least two downsides to doing so, however:
222222
* The idea of `Vec` as a smart pointer around a slice, and the use of `&*v` as
223223
above, is somewhat counterintuitive, especially for such a basic type.
224224

225-
Ultimately, notation for slicing seems desireable on its own merits anyway, and
225+
Ultimately, notation for slicing seems desirable on its own merits anyway, and
226226
if it can eliminate the need to implement `Deref` for `Vec` and `String`, all
227227
the better.

text/0213-defaulted-type-params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ way (mechanical default outside of fn body, inference within).
555555
An alternative design is to use the `K=V` notation proposed in the
556556
associated items RFC for specify the values of default type
557557
parameters. However, this is somewhat odd, because default type
558-
parameters appear in a positional list, and thus it is suprising that
558+
parameters appear in a positional list, and thus it is surprising that
559559
values for the non-defaulted parameters are given positionally, but
560560
values for the defaulted type parameters are given with labels.
561561

text/0216-collection-views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ is when you're *not sure* if you need to insert, in which case you should be pre
123123
Otherwise, `find_mut` is likely sufficient.
124124

125125
The result is actually an enum, that will either be Occupied or Vacant. These two variants correspond
126-
to concrete types for when the key matched something in the map, and when the key didn't, repsectively.
126+
to concrete types for when the key matched something in the map, and when the key didn't, respectively.
127127

128128
If there isn't a match, the user has exactly one option: insert a value using `set`, which will also insert
129129
the guarantor, and destroy the Entry. This is to avoid the costs of maintaining the structure, which

text/0255-object-safety.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ SomeTrait for SomeTrait { ... }`, but that seems weird and confusing and rather
3333
like boilerplate. Note that the precise mechanism here is out of scope for this
3434
RFC).
3535

36-
This is only sound if the trait is /object-safe/. We say a method `m` on trait
36+
This is only sound if the trait is object-safe. We say a method `m` on trait
3737
`T` is object-safe if it is legal (in current Rust) to call `x.m(...)` where `x`
38-
has type `&T`, i.e., `x` is a trait object. If all methods in `T` are object-
39-
safe, then we say `T` is object-safe.
38+
has type `&T`, i.e., `x` is a trait object. If all methods in `T` are object-safe,
39+
then we say `T` is object-safe.
4040

4141
If we ignore this restriction we could allow code such as the following:
4242

@@ -61,8 +61,8 @@ traits. This makes both method call and using trait objects with generic code
6161
simpler. The downside is that it makes Rust less flexible, since not all traits
6262
can be used to create trait objects.
6363

64-
Software evolution is improved with this proposal: imagine adding a non-object-
65-
safe method to a previously object-safe trait. With this proposal, you would
64+
Software evolution is improved with this proposal: imagine adding a non-object-safe
65+
method to a previously object-safe trait. With this proposal, you would
6666
then get errors wherever a trait-object is created. The error would explain why
6767
the trait object could not be created and point out exactly which method was to
6868
blame and why. Without this proposal, the only errors you would get would be

text/0403-cargo-build-command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ would look like with respect to its set of C dependencies.
413413

414414
## Case study: generated code
415415

416-
As the release of Rust 1.0 comes closer, the use of complier plugins has become
416+
As the release of Rust 1.0 comes closer, the use of compiler plugins has become
417417
increasingly worrying over time. It is likely that plugins will not be available
418418
by default in the stable and beta release channels of Rust. Many core Cargo
419419
packages in the ecosystem today, such as gl-rs and iron, depend on plugins

text/0507-release-channels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ is added in addition to the existing `staged_stable` attribute, as
290290
well recording the version in which the deprecation was performed with
291291
the `since` parameter.
292292

293-
(Occassionally unstable APIs may be deprecated for the sake of easing
293+
(Occasionally unstable APIs may be deprecated for the sake of easing
294294
user transitions, in which case they receive both the `staged_stable`
295295
and `staged_deprecated` attributes at once.)
296296

text/0528-string-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ without a lifetime parameter by making use of higher kinded types in order to si
315315
string APIs. Eg, instead of `fn starts_with<'a, P>(&'a self, pat: P) -> bool where P: Pattern<'a>;`
316316
you'd have `fn starts_with<P>(&self, pat: P) -> bool where P: Pattern;`.
317317

318-
In order to not break backwards-compability, these can use the same generic-impl trick to
318+
In order to not break backwards-compatibility, these can use the same generic-impl trick to
319319
forward to the old traits, which would roughly look like this:
320320

321321
```rust

text/0550-macro-future-proofing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ ensures that a legal macro definition will continue to assign the same
183183
determination as to where `... tt` ends and `uu ...` begins, even as
184184
new syntactic forms are added to the language.
185185

186-
The second part says that a separated complex NT must use a seperator
186+
The second part says that a separated complex NT must use a separator
187187
token that is part of the predetermined follow set for the internal
188188
contents of the NT. This ensures that a legal macro definition will
189189
continue to parse an input fragment into the same delimited sequence
@@ -318,9 +318,9 @@ NT could be empty (i.e. ε ∈ FIRST(interior)). (I overlooked this fact
318318
in my first round of prototyping.)
319319

320320
NOTE: The above definition for LAST assumes that we keep our
321-
pre-existing rule that the seperator token in a complex NT is *solely* for
321+
pre-existing rule that the separator token in a complex NT is *solely* for
322322
separating elements; i.e. that such NT's do not match fragments that
323-
*end with* the seperator token. If we choose to lift this restriction
323+
*end with* the separator token. If we choose to lift this restriction
324324
in the future, the above definition will need to be revised
325325
accordingly.
326326

text/0587-fn-return-should-be-an-associated-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ type variable).
179179

180180
We could make `FnMut()` desugar to `FnMut<()>`, and hence require an
181181
explicit `FnMut() -> ()` to bind the return type to unit. This feels
182-
suprising and inconsistent.
182+
surprising and inconsistent.
183183

184184

0 commit comments

Comments
 (0)