Skip to content

Commit eb02f2d

Browse files
committed
Merge pull request #20675 from jbcrail/fix-test-comments
Fix misspelled comments in tests. Reviewed-by: steveklabnik
2 parents c0216c8 + 938a705 commit eb02f2d

8 files changed

+9
-9
lines changed

src/test/auxiliary/issue-17662.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub trait Foo<'a, T> {
1616

1717
pub fn foo<'a, T>(x: &'a Foo<'a, T>) -> T {
1818
let x: &'a Foo<T> = x;
19-
// ^ the lifetime parameter of Foo is left to be infered.
19+
// ^ the lifetime parameter of Foo is left to be inferred.
2020
x.foo()
2121
// ^ encoding this method call in metadata triggers an ICE.
2222
}

src/test/auxiliary/traitimpl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// Test inherant trait impls work cross-crait.
11+
// Test inherent trait impls work cross-crait.
1212

1313
pub trait Bar<'a> : 'a {}
1414

src/test/compile-fail-fulldeps/macro-crate-cannot-read-embedded-ident.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Issue #15750 and #15962 : this test is checking that the standard
1717
// parser rejects embedded idents. pnkfelix did not want to attempt
1818
// to make a test file that itself used the embedded ident input form,
19-
// since he worrid that would be difficult to work with in many text
19+
// since he worried that would be difficult to work with in many text
2020
// editors, so instead he made a macro that expands into the embedded
2121
// ident form.
2222

src/test/compile-fail/liveness-missing-ret2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// error-pattern: not all control paths return a value
1212

1313
fn f() -> int {
14-
// Make sure typestate doesn't interpreturn this match expression
15-
// as the function result
14+
// Make sure typestate doesn't interpret this match expression as
15+
// the function result
1616
match true { true => { } _ => {} };
1717
}
1818

src/test/compile-fail/move-fragments-5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn test_move_field_to_local_to_local(p: Pair<D, D>) {
4747
// `test_uninitialized_local` , the instrumentation reports that `_x`
4848
// is moved. This is unlike `test_move_field_to_local`, where `_x` is
4949
// just reported as an assigned_leaf_path. Presumably because this is
50-
// how we represent that it did not have an initalizing expression at
50+
// how we represent that it did not have an initializing expression at
5151
// the binding site.
5252

5353
#[rustc_move_fragments]

src/test/run-pass/issue-3753.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// Issue #3656
12-
// Issue Name: pub method preceeded by attribute can't be parsed
12+
// Issue Name: pub method preceded by attribute can't be parsed
1313
// Abstract: Visibility parsing failed when compiler parsing
1414

1515
use std::f64;

src/test/run-pass/regions-relate-bound-regions-on-closures-to-inference-variables.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// typechecks. The pattern involves regions bound in closures that
1313
// wind up related to inference variables.
1414
//
15-
// NB. Changes to the region implementatiosn have broken this pattern
15+
// NB. Changes to the region implementations have broken this pattern
1616
// a few times, but it happens to be used in the compiler so those
1717
// changes were caught. However, those uses in the compiler could
1818
// easily get changed or refactored away in the future.

src/test/run-pass/self-impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
struct Foo;
1414

15-
// Test uses on inherant impl.
15+
// Test uses on inherent impl.
1616
impl Foo {
1717
fn foo(_x: Self, _y: &Self, _z: Box<Self>) -> Self {
1818
Foo

0 commit comments

Comments
 (0)