Skip to content

Commit

Permalink
fix tests branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Jun 11, 2018
1 parent 22f856c commit 6293950
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
12 changes: 6 additions & 6 deletions src/test/ui/feature-gate/issue-43106-gating-of-inline.stderr
Expand Up @@ -13,12 +13,6 @@ LL | | //~^ ERROR attribute should be applied to function or closure
LL | | }
| |_- not a function or closure

error[E0518]: attribute should be applied to function or closure
--> $DIR/issue-43106-gating-of-inline.rs:24:17
|
LL | mod inner { #![inline="2100"] }
| ------------^^^^^^^^^^^^^^^^^-- not a function or closure

error[E0518]: attribute should be applied to function or closure
--> $DIR/issue-43106-gating-of-inline.rs:29:5
|
Expand All @@ -37,6 +31,12 @@ error[E0518]: attribute should be applied to function or closure
LL | #[inline = "2100"] impl S { }
| ^^^^^^^^^^^^^^^^^^ ---------- not a function or closure

error[E0518]: attribute should be applied to function or closure
--> $DIR/issue-43106-gating-of-inline.rs:24:17
|
LL | mod inner { #![inline="2100"] }
| ------------^^^^^^^^^^^^^^^^^-- not a function or closure

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0518`.
5 changes: 5 additions & 0 deletions src/test/ui/issue-12511.stderr
Expand Up @@ -10,6 +10,11 @@ note: ...which requires computing the supertraits of `t2`...
LL | trait t2 : t1 {
| ^^^^^^^^^^^^^
= note: ...which again requires computing the supertraits of `t1`, completing the cycle
note: cycle used when processing ``
--> $DIR/issue-12511.rs:11:1
|
LL | trait t1 : t2 {
| ^^^^^^^^^^^^^

error: aborting due to previous error

Expand Down
5 changes: 5 additions & 0 deletions src/test/ui/resolve/issue-23305.stderr
Expand Up @@ -5,6 +5,11 @@ LL | impl ToNbt<Self> {}
| ^^^^
|
= note: ...which again requires processing `<impl at $DIR/issue-23305.rs:15:1: 15:20>`, completing the cycle
note: cycle used when processing ``
--> $DIR/issue-23305.rs:11:1
|
LL | pub trait ToNbt<T> {
| ^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

Expand Down
12 changes: 6 additions & 6 deletions src/test/ui/target-feature-wrong.stderr
Expand Up @@ -28,6 +28,12 @@ error: #[target_feature(..)] can only be applied to `unsafe` function
LL | #[target_feature(enable = "sse2")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot use #[inline(always)] with #[target_feature]
--> $DIR/target-feature-wrong.rs:41:1
|
LL | #[inline(always)]
| ^^^^^^^^^^^^^^^^^

error: attribute should be applied to a function
--> $DIR/target-feature-wrong.rs:37:1
|
Expand All @@ -37,11 +43,5 @@ LL | //~^ ERROR: should be applied to a function
LL | mod another {}
| -------------- not a function

error: cannot use #[inline(always)] with #[target_feature]
--> $DIR/target-feature-wrong.rs:41:1
|
LL | #[inline(always)]
| ^^^^^^^^^^^^^^^^^

error: aborting due to 7 previous errors

4 changes: 2 additions & 2 deletions src/test/ui/wasm-custom-section/not-const.stderr
Expand Up @@ -23,13 +23,13 @@ LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: only allowed on consts
--> $DIR/not-const.rs:25:1
--> $DIR/not-const.rs:28:1
|
LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: only allowed on consts
--> $DIR/not-const.rs:28:1
--> $DIR/not-const.rs:25:1
|
LL | #[wasm_custom_section = "foo"] //~ ERROR: only allowed on consts
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 6293950

Please sign in to comment.