Skip to content

Commit

Permalink
bless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Mar 6, 2020
1 parent 136ad01 commit 4c2b0f1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/libcore/tests/num/dec2flt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn ordinary() {
#[test]
fn special_code_paths() {
test_literal!(36893488147419103229.0); // 2^65 - 3, triggers half-to-even with even significand
test_literal!(101e-33); // Triggers the tricky underflow case in algorithm (for f32)
test_literal!(101e-33); // Triggers the tricky underflow case in AlgorithmM (for f32)
test_literal!(1e23); // Triggers AlgorithmR
test_literal!(2075e23); // Triggers another path through AlgorithmR
test_literal!(8713e-23); // ... and yet another.
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_expand/proc_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl MultiItemModifier for ProcMacroDerive {
};

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

let mut parser =
rustc_parse::stream_to_parser(ecx.parse_sess, stream, Some("proc-macro derive"));
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/explain.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This pattern should be rewritten. There are a few possible ways to do this:

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

```
let f: extern "C" fn(*mut i32) = transmute(foo as extern "C" fn(_));
Expand Down
10 changes: 5 additions & 5 deletions src/test/ui/parser/attr-stmt-expr-attr-bad.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ error: an inner attribute is not permitted following an outer attribute
--> $DIR/attr-stmt-expr-attr-bad.rs:80:32
|
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] let _ = 0; }
| ------- ^^^^^^^^ not permitted following an outer attibute
| ------- ^^^^^^^^ not permitted following an outer attribute
| |
| previous outer attribute
|
Expand All @@ -302,7 +302,7 @@ error: an inner attribute is not permitted following an outer attribute
--> $DIR/attr-stmt-expr-attr-bad.rs:82:32
|
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] 0; }
| ------- ^^^^^^^^ not permitted following an outer attibute
| ------- ^^^^^^^^ not permitted following an outer attribute
| |
| previous outer attribute
|
Expand All @@ -312,7 +312,7 @@ error: an inner attribute is not permitted following an outer attribute
--> $DIR/attr-stmt-expr-attr-bad.rs:84:32
|
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] foo!(); }
| ------- ^^^^^^^^ not permitted following an outer attibute
| ------- ^^^^^^^^ not permitted following an outer attribute
| |
| previous outer attribute
|
Expand All @@ -322,7 +322,7 @@ error: an inner attribute is not permitted following an outer attribute
--> $DIR/attr-stmt-expr-attr-bad.rs:86:32
|
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] foo![]; }
| ------- ^^^^^^^^ not permitted following an outer attibute
| ------- ^^^^^^^^ not permitted following an outer attribute
| |
| previous outer attribute
|
Expand All @@ -332,7 +332,7 @@ error: an inner attribute is not permitted following an outer attribute
--> $DIR/attr-stmt-expr-attr-bad.rs:88:32
|
LL | #[cfg(FALSE)] fn s() { #[attr] #![attr] foo!{}; }
| ------- ^^^^^^^^ not permitted following an outer attibute
| ------- ^^^^^^^^ not permitted following an outer attribute
| |
| previous outer attribute
|
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/parser/inner-attr-after-doc-comment.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LL | | */
| |___- previous doc comment
LL |
LL | #![recursion_limit="100"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attibute
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
|
= 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.

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/parser/inner-attr.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LL | #[feature(lang_items)]
| ---------------------- previous outer attribute
LL |
LL | #![recursion_limit="100"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attibute
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
|
= 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.

Expand Down

0 comments on commit 4c2b0f1

Please sign in to comment.