aboutsummaryrefslogtreecommitdiff
path: root/vendor/quote/tests/ui
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/quote/tests/ui
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/quote/tests/ui')
-rw-r--r--vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs9
-rw-r--r--vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr11
-rw-r--r--vendor/quote/tests/ui/does-not-have-iter-interpolated.rs9
-rw-r--r--vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr11
-rw-r--r--vendor/quote/tests/ui/does-not-have-iter-separated.rs5
-rw-r--r--vendor/quote/tests/ui/does-not-have-iter-separated.stderr10
-rw-r--r--vendor/quote/tests/ui/does-not-have-iter.rs5
-rw-r--r--vendor/quote/tests/ui/does-not-have-iter.stderr10
-rw-r--r--vendor/quote/tests/ui/not-quotable.rs7
-rw-r--r--vendor/quote/tests/ui/not-quotable.stderr20
-rw-r--r--vendor/quote/tests/ui/not-repeatable.rs8
-rw-r--r--vendor/quote/tests/ui/not-repeatable.stderr35
-rw-r--r--vendor/quote/tests/ui/wrong-type-span.rs7
-rw-r--r--vendor/quote/tests/ui/wrong-type-span.stderr10
14 files changed, 0 insertions, 157 deletions
diff --git a/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs b/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs
deleted file mode 100644
index 0a39f41..0000000
--- a/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use quote::quote;
-
-fn main() {
- let nonrep = "";
-
- // Without some protection against repetitions with no iterator somewhere
- // inside, this would loop infinitely.
- quote!(#(#nonrep #nonrep)*);
-}
diff --git a/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr b/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr
deleted file mode 100644
index 99c20a5..0000000
--- a/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error[E0308]: mismatched types
- --> tests/ui/does-not-have-iter-interpolated-dup.rs:8:5
- |
-8 | quote!(#(#nonrep #nonrep)*);
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | |
- | expected `HasIterator`, found `ThereIsNoIteratorInRepetition`
- | expected due to this
- | here the type of `has_iter` is inferred to be `ThereIsNoIteratorInRepetition`
- |
- = note: this error originates in the macro `$crate::quote_token_with_context` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs b/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs
deleted file mode 100644
index 2c740cc..0000000
--- a/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use quote::quote;
-
-fn main() {
- let nonrep = "";
-
- // Without some protection against repetitions with no iterator somewhere
- // inside, this would loop infinitely.
- quote!(#(#nonrep)*);
-}
diff --git a/vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr b/vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr
deleted file mode 100644
index ef90813..0000000
--- a/vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error[E0308]: mismatched types
- --> tests/ui/does-not-have-iter-interpolated.rs:8:5
- |
-8 | quote!(#(#nonrep)*);
- | ^^^^^^^^^^^^^^^^^^^
- | |
- | expected `HasIterator`, found `ThereIsNoIteratorInRepetition`
- | expected due to this
- | here the type of `has_iter` is inferred to be `ThereIsNoIteratorInRepetition`
- |
- = note: this error originates in the macro `$crate::quote_token_with_context` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/quote/tests/ui/does-not-have-iter-separated.rs b/vendor/quote/tests/ui/does-not-have-iter-separated.rs
deleted file mode 100644
index c027243..0000000
--- a/vendor/quote/tests/ui/does-not-have-iter-separated.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-use quote::quote;
-
-fn main() {
- quote!(#(a b),*);
-}
diff --git a/vendor/quote/tests/ui/does-not-have-iter-separated.stderr b/vendor/quote/tests/ui/does-not-have-iter-separated.stderr
deleted file mode 100644
index 7c6e30f..0000000
--- a/vendor/quote/tests/ui/does-not-have-iter-separated.stderr
+++ /dev/null
@@ -1,10 +0,0 @@
-error[E0308]: mismatched types
- --> tests/ui/does-not-have-iter-separated.rs:4:5
- |
-4 | quote!(#(a b),*);
- | ^^^^^^^^^^^^^^^^
- | |
- | expected `HasIterator`, found `ThereIsNoIteratorInRepetition`
- | expected due to this
- |
- = note: this error originates in the macro `$crate::quote_token_with_context` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/quote/tests/ui/does-not-have-iter.rs b/vendor/quote/tests/ui/does-not-have-iter.rs
deleted file mode 100644
index 8908353..0000000
--- a/vendor/quote/tests/ui/does-not-have-iter.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-use quote::quote;
-
-fn main() {
- quote!(#(a b)*);
-}
diff --git a/vendor/quote/tests/ui/does-not-have-iter.stderr b/vendor/quote/tests/ui/does-not-have-iter.stderr
deleted file mode 100644
index 0b13e5c..0000000
--- a/vendor/quote/tests/ui/does-not-have-iter.stderr
+++ /dev/null
@@ -1,10 +0,0 @@
-error[E0308]: mismatched types
- --> tests/ui/does-not-have-iter.rs:4:5
- |
-4 | quote!(#(a b)*);
- | ^^^^^^^^^^^^^^^
- | |
- | expected `HasIterator`, found `ThereIsNoIteratorInRepetition`
- | expected due to this
- |
- = note: this error originates in the macro `$crate::quote_token_with_context` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/quote/tests/ui/not-quotable.rs b/vendor/quote/tests/ui/not-quotable.rs
deleted file mode 100644
index f991c18..0000000
--- a/vendor/quote/tests/ui/not-quotable.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use quote::quote;
-use std::net::Ipv4Addr;
-
-fn main() {
- let ip = Ipv4Addr::LOCALHOST;
- let _ = quote! { #ip };
-}
diff --git a/vendor/quote/tests/ui/not-quotable.stderr b/vendor/quote/tests/ui/not-quotable.stderr
deleted file mode 100644
index 35cb6f2..0000000
--- a/vendor/quote/tests/ui/not-quotable.stderr
+++ /dev/null
@@ -1,20 +0,0 @@
-error[E0277]: the trait bound `Ipv4Addr: ToTokens` is not satisfied
- --> tests/ui/not-quotable.rs:6:13
- |
-6 | let _ = quote! { #ip };
- | ^^^^^^^^^^^^^^
- | |
- | the trait `ToTokens` is not implemented for `Ipv4Addr`
- | required by a bound introduced by this call
- |
- = help: the following other types implement trait `ToTokens`:
- bool
- char
- isize
- i8
- i16
- i32
- i64
- i128
- and $N others
- = note: this error originates in the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/quote/tests/ui/not-repeatable.rs b/vendor/quote/tests/ui/not-repeatable.rs
deleted file mode 100644
index a8f0fe7..0000000
--- a/vendor/quote/tests/ui/not-repeatable.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-use quote::quote;
-
-struct Ipv4Addr;
-
-fn main() {
- let ip = Ipv4Addr;
- let _ = quote! { #(#ip)* };
-}
diff --git a/vendor/quote/tests/ui/not-repeatable.stderr b/vendor/quote/tests/ui/not-repeatable.stderr
deleted file mode 100644
index 2ed1da0..0000000
--- a/vendor/quote/tests/ui/not-repeatable.stderr
+++ /dev/null
@@ -1,35 +0,0 @@
-error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied
- --> tests/ui/not-repeatable.rs:7:13
- |
-3 | struct Ipv4Addr;
- | ---------------
- | |
- | method `quote_into_iter` not found for this struct
- | doesn't satisfy `Ipv4Addr: Iterator`
- | doesn't satisfy `Ipv4Addr: ToTokens`
- | doesn't satisfy `Ipv4Addr: ext::RepIteratorExt`
- | doesn't satisfy `Ipv4Addr: ext::RepToTokensExt`
-...
-7 | let _ = quote! { #(#ip)* };
- | ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds
- |
- = note: the following trait bounds were not satisfied:
- `Ipv4Addr: Iterator`
- which is required by `Ipv4Addr: ext::RepIteratorExt`
- `&Ipv4Addr: Iterator`
- which is required by `&Ipv4Addr: ext::RepIteratorExt`
- `Ipv4Addr: ToTokens`
- which is required by `Ipv4Addr: ext::RepToTokensExt`
- `&mut Ipv4Addr: Iterator`
- which is required by `&mut Ipv4Addr: ext::RepIteratorExt`
-note: the traits `ToTokens` and `Iterator` must be implemented
- --> src/to_tokens.rs
- |
- | pub trait ToTokens {
- | ^^^^^^^^^^^^^^^^^^
- |
- ::: $RUST/core/src/iter/traits/iterator.rs
- |
- | pub trait Iterator {
- | ^^^^^^^^^^^^^^^^^^
- = note: this error originates in the macro `$crate::quote_bind_into_iter` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/quote/tests/ui/wrong-type-span.rs b/vendor/quote/tests/ui/wrong-type-span.rs
deleted file mode 100644
index d5601c8..0000000
--- a/vendor/quote/tests/ui/wrong-type-span.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use quote::quote_spanned;
-
-fn main() {
- let span = "";
- let x = 0i32;
- quote_spanned!(span=> #x);
-}
diff --git a/vendor/quote/tests/ui/wrong-type-span.stderr b/vendor/quote/tests/ui/wrong-type-span.stderr
deleted file mode 100644
index 12ad307..0000000
--- a/vendor/quote/tests/ui/wrong-type-span.stderr
+++ /dev/null
@@ -1,10 +0,0 @@
-error[E0308]: mismatched types
- --> tests/ui/wrong-type-span.rs:6:5
- |
-6 | quote_spanned!(span=> #x);
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
- | |
- | expected `Span`, found `&str`
- | expected due to this
- |
- = note: this error originates in the macro `quote_spanned` (in Nightly builds, run with -Z macro-backtrace for more info)