Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pastey-test-suite/tests/ui/case-warning.stderr
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
error: function `fooBar` should have a snake case name
--> tests/ui/case-warning.rs:8:20
|
5 | macro_rules! m {
...
8 | pub fn [<foo $i>]() {}
| ^^^^^^^^^^ help: convert the identifier to snake case: `foo_bar`
...
Expand All @@ -13,4 +15,3 @@ note: the lint level is defined here
1 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(non_snake_case)]` implied by `#[deny(warnings)]`
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
4 changes: 2 additions & 2 deletions pastey-test-suite/tests/ui/extra-token-in-replace.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: expected `)`
--> tests/ui/extra-token-in-replace.rs:6:45
|
3 | macro_rules! m {
...
6 | struct [< $name:replace("a", "b", "c") >];
| ^
...
11 | m!(Pastey);
| ---------- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
4 changes: 2 additions & 2 deletions pastey-test-suite/tests/ui/invalid-replace-format.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: expected replace modifier format: `:replace("from", "to")`
--> tests/ui/invalid-replace-format.rs:6:36
|
3 | macro_rules! m {
...
6 | struct [< $name:replace("P" "LibP") >];
| ^^^^^^^^^^^^
...
11 | m!(Pastey);
| ---------- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
4 changes: 2 additions & 2 deletions pastey-test-suite/tests/ui/invalid-replace.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: expected `(` after replace modifier
--> tests/ui/invalid-replace.rs:6:28
|
3 | macro_rules! m {
...
6 | struct [< $name:replace >]
| ^^^^^^^^
...
11 | m!(Pastey);
| ---------- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
4 changes: 2 additions & 2 deletions pastey-test-suite/tests/ui/multi-token-replace-arg.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: Expected either Ident, or Literal.
--> tests/ui/multi-token-replace-arg.rs:6:32
|
3 | macro_rules! m {
...
6 | fn [< foo :replace($e, bar) >]() {}
| ^^
...
11 | m!(1 + 2);
| --------- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
4 changes: 2 additions & 2 deletions pastey-test-suite/tests/ui/nested-group-single-token.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: Expected either Ident, or Literal.
--> tests/ui/nested-group-single-token.rs:6:32
|
3 | macro_rules! m {
...
6 | fn [< foo :replace(($tokens), "bar") >]() {}
| ^^^^^^^^^
...
11 | m!(ident);
| --------- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
4 changes: 2 additions & 2 deletions pastey-test-suite/tests/ui/no-value-before-replace.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: replace modifier requires a preceding value to operate on.
--> tests/ui/no-value-before-replace.rs:6:23
|
3 | macro_rules! m {
...
6 | struct [< :replace("H", "W") >];
| ^^^^^^^^^^^^^^^^^^
...
11 | m!();
| ---- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
4 changes: 2 additions & 2 deletions pastey-test-suite/tests/ui/raw-mode-wrong-position.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: `#` is reserved keyword and it enables the raw mode (i.e. generate Raw Identifiers) and it is only allowed in the beginning like `[< # ... >]`
--> tests/ui/raw-mode-wrong-position.rs:6:35
|
3 | macro_rules! m {
...
6 | struct [< $name:camel # >];
| ^
...
11 | m!(r#loop);
| ---------- in this macro invocation
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)