Skip to content

Commit 4c2b0f1

Browse files
committed
bless tests
1 parent 136ad01 commit 4c2b0f1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/libcore/tests/num/dec2flt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn ordinary() {
4444
#[test]
4545
fn special_code_paths() {
4646
test_literal!(36893488147419103229.0); // 2^65 - 3, triggers half-to-even with even significand
47-
test_literal!(101e-33); // Triggers the tricky underflow case in algorithm (for f32)
47+
test_literal!(101e-33); // Triggers the tricky underflow case in AlgorithmM (for f32)
4848
test_literal!(1e23); // Triggers AlgorithmR
4949
test_literal!(2075e23); // Triggers another path through AlgorithmR
5050
test_literal!(8713e-23); // ... and yet another.

src/librustc_expand/proc_macro.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl MultiItemModifier for ProcMacroDerive {
133133
};
134134

135135
let error_count_before = ecx.parse_sess.span_diagnostic.err_count();
136-
let msg = "proc-macro derive produced unparsable tokens";
136+
let msg = "proc-macro derive produced unparseable tokens";
137137

138138
let mut parser =
139139
rustc_parse::stream_to_parser(ecx.parse_sess, stream, Some("proc-macro derive"));

src/test/ui/explain.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This pattern should be rewritten. There are a few possible ways to do this:
4646

4747
- change the original fn declaration to match the expected signature,
4848
and do the cast in the fn body (the preferred option)
49-
- cast the fn item fo a fn pointer before calling transmute, as shown here:
49+
- cast the fn item of a fn pointer before calling transmute, as shown here:
5050

5151
```
5252
let f: extern "C" fn(*mut i32) = transmute(foo as extern "C" fn(_));

src/test/ui/parser/attr-stmt-expr-attr-bad.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ error: an inner attribute is not permitted following an outer attribute
292292
--> $DIR/attr-stmt-expr-attr-bad.rs:80:32
293293
|
294294
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] let _ = 0; }
295-
| ------- ^^^^^^^^ not permitted following an outer attibute
295+
| ------- ^^^^^^^^ not permitted following an outer attribute
296296
| |
297297
| previous outer attribute
298298
|
@@ -302,7 +302,7 @@ error: an inner attribute is not permitted following an outer attribute
302302
--> $DIR/attr-stmt-expr-attr-bad.rs:82:32
303303
|
304304
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] 0; }
305-
| ------- ^^^^^^^^ not permitted following an outer attibute
305+
| ------- ^^^^^^^^ not permitted following an outer attribute
306306
| |
307307
| previous outer attribute
308308
|
@@ -312,7 +312,7 @@ error: an inner attribute is not permitted following an outer attribute
312312
--> $DIR/attr-stmt-expr-attr-bad.rs:84:32
313313
|
314314
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] foo!(); }
315-
| ------- ^^^^^^^^ not permitted following an outer attibute
315+
| ------- ^^^^^^^^ not permitted following an outer attribute
316316
| |
317317
| previous outer attribute
318318
|
@@ -322,7 +322,7 @@ error: an inner attribute is not permitted following an outer attribute
322322
--> $DIR/attr-stmt-expr-attr-bad.rs:86:32
323323
|
324324
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] foo![]; }
325-
| ------- ^^^^^^^^ not permitted following an outer attibute
325+
| ------- ^^^^^^^^ not permitted following an outer attribute
326326
| |
327327
| previous outer attribute
328328
|
@@ -332,7 +332,7 @@ error: an inner attribute is not permitted following an outer attribute
332332
--> $DIR/attr-stmt-expr-attr-bad.rs:88:32
333333
|
334334
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] foo!{}; }
335-
| ------- ^^^^^^^^ not permitted following an outer attibute
335+
| ------- ^^^^^^^^ not permitted following an outer attribute
336336
| |
337337
| previous outer attribute
338338
|

src/test/ui/parser/inner-attr-after-doc-comment.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | | */
77
| |___- previous doc comment
88
LL |
99
LL | #![recursion_limit="100"]
10-
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attibute
10+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
1111
|
1212
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
1313

src/test/ui/parser/inner-attr.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | #[feature(lang_items)]
55
| ---------------------- previous outer attribute
66
LL |
77
LL | #![recursion_limit="100"]
8-
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attibute
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
99
|
1010
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
1111

0 commit comments

Comments
 (0)