aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Prouillet2017-02-14 12:23:19 +0900
committerVincent Prouillet2017-02-14 12:23:19 +0900
commitaa2218190f7d0c0346944c10fb54a80641fdd41b (patch)
tree85f85f81e734ba244d899f3f1f0e729cfb978561
parente361c205979fe108b7fc7795c60b02fb0aa1c580 (diff)
downloadvalidator-aa2218190f7d0c0346944c10fb54a80641fdd41b.tar.bz2
Fix compile fail tests
-rw-r--r--validator_derive/Cargo.toml2
-rw-r--r--validator_derive/tests/compile-fail/custom_not_string.rs2
-rw-r--r--validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs2
-rw-r--r--validator_derive/tests/compile-fail/length/no_args.rs2
-rw-r--r--validator_derive/tests/compile-fail/length/unknown_arg.rs2
-rw-r--r--validator_derive/tests/compile-fail/length/wrong_type.rs2
-rw-r--r--validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs2
-rw-r--r--validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs2
-rw-r--r--validator_derive/tests/compile-fail/no_validations.rs2
-rw-r--r--validator_derive/tests/compile-fail/range/missing_arg.rs2
-rw-r--r--validator_derive/tests/compile-fail/range/no_args.rs2
-rw-r--r--validator_derive/tests/compile-fail/range/unknown_arg.rs2
-rw-r--r--validator_derive/tests/compile-fail/range/wrong_type.rs2
-rw-r--r--validator_derive/tests/compile-fail/schema/missing_function.rs2
14 files changed, 14 insertions, 14 deletions
diff --git a/validator_derive/Cargo.toml b/validator_derive/Cargo.toml
index ff64a40..a47ac41 100644
--- a/validator_derive/Cargo.toml
+++ b/validator_derive/Cargo.toml
@@ -25,4 +25,4 @@ lazy_static = "0.2"
[dependencies.validator]
# path = "../validator"
-version = "0.3.0"
+version = "0.4.0"
diff --git a/validator_derive/tests/compile-fail/custom_not_string.rs b/validator_derive/tests/compile-fail/custom_not_string.rs
index 827264d..1327d70 100644
--- a/validator_derive/tests/compile-fail/custom_not_string.rs
+++ b/validator_derive/tests/compile-fail/custom_not_string.rs
@@ -5,7 +5,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: invalid argument for `custom` validator: only strings are allowed
struct Test {
#[validate(custom = 2)]
diff --git a/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs b/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs
index 240fb64..02b2e59 100644
--- a/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs
+++ b/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs
@@ -5,7 +5,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: both `equal` and `min` or `max` have been set in `length` validator: probably a mistake
struct Test {
#[validate(length(min = 1, equal = 2))]
diff --git a/validator_derive/tests/compile-fail/length/no_args.rs b/validator_derive/tests/compile-fail/length/no_args.rs
index bd54d78..bab6c4a 100644
--- a/validator_derive/tests/compile-fail/length/no_args.rs
+++ b/validator_derive/tests/compile-fail/length/no_args.rs
@@ -3,7 +3,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `length` requires at least 1 argument out of `min`, `max` and `equal`
struct Test {
#[validate(length())]
diff --git a/validator_derive/tests/compile-fail/length/unknown_arg.rs b/validator_derive/tests/compile-fail/length/unknown_arg.rs
index da57749..9678205 100644
--- a/validator_derive/tests/compile-fail/length/unknown_arg.rs
+++ b/validator_derive/tests/compile-fail/length/unknown_arg.rs
@@ -5,7 +5,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: unknown argument `eq` for validator `length` (it only has `min`, `max`, `equal`)
struct Test {
#[validate(length(eq = 2))]
diff --git a/validator_derive/tests/compile-fail/length/wrong_type.rs b/validator_derive/tests/compile-fail/length/wrong_type.rs
index 3103ecc..365675f 100644
--- a/validator_derive/tests/compile-fail/length/wrong_type.rs
+++ b/validator_derive/tests/compile-fail/length/wrong_type.rs
@@ -3,7 +3,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `length` can only be used on types `String`, `&str` or `Vec` but found `usize`
struct Test {
#[validate(length())]
diff --git a/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs b/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs
index 7c07c70..f3a2347 100644
--- a/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs
+++ b/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs
@@ -3,7 +3,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `password`: invalid argument for `must_match` validator: field doesn't exist in struct
struct Test {
#[validate(must_match = "password2")]
diff --git a/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs b/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs
index 946edc7..b04a732 100644
--- a/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs
+++ b/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs
@@ -3,7 +3,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `password`: invalid argument for `must_match` validator: types of field can't match
struct Test {
#[validate(must_match = "password2")]
diff --git a/validator_derive/tests/compile-fail/no_validations.rs b/validator_derive/tests/compile-fail/no_validations.rs
index e8281b4..fc14943 100644
--- a/validator_derive/tests/compile-fail/no_validations.rs
+++ b/validator_derive/tests/compile-fail/no_validations.rs
@@ -3,7 +3,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: it needs at least one validator
struct Test {
#[validate()]
diff --git a/validator_derive/tests/compile-fail/range/missing_arg.rs b/validator_derive/tests/compile-fail/range/missing_arg.rs
index 9f8a537..3aed1f0 100644
--- a/validator_derive/tests/compile-fail/range/missing_arg.rs
+++ b/validator_derive/tests/compile-fail/range/missing_arg.rs
@@ -5,7 +5,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `range` requires 2 arguments: `min` and `max`
struct Test {
#[validate(range(min = 2.0))]
diff --git a/validator_derive/tests/compile-fail/range/no_args.rs b/validator_derive/tests/compile-fail/range/no_args.rs
index cef93fe..c2bdd03 100644
--- a/validator_derive/tests/compile-fail/range/no_args.rs
+++ b/validator_derive/tests/compile-fail/range/no_args.rs
@@ -3,7 +3,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `range` requires 2 arguments: `min` and `max`
struct Test {
#[validate(range())]
diff --git a/validator_derive/tests/compile-fail/range/unknown_arg.rs b/validator_derive/tests/compile-fail/range/unknown_arg.rs
index e20be74..14a9ed1 100644
--- a/validator_derive/tests/compile-fail/range/unknown_arg.rs
+++ b/validator_derive/tests/compile-fail/range/unknown_arg.rs
@@ -5,7 +5,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: unknown argument `mi` for validator `range` (it only has `min`, `max`)
struct Test {
#[validate(range(mi = 2, max = 3))]
diff --git a/validator_derive/tests/compile-fail/range/wrong_type.rs b/validator_derive/tests/compile-fail/range/wrong_type.rs
index 50c253d..239a93d 100644
--- a/validator_derive/tests/compile-fail/range/wrong_type.rs
+++ b/validator_derive/tests/compile-fail/range/wrong_type.rs
@@ -5,7 +5,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `range` can only be used on number types but found `String`
struct Test {
#[validate(range(min = 10.0, max = 12.0))]
diff --git a/validator_derive/tests/compile-fail/schema/missing_function.rs b/validator_derive/tests/compile-fail/schema/missing_function.rs
index 6991f0d..d07b54a 100644
--- a/validator_derive/tests/compile-fail/schema/missing_function.rs
+++ b/validator_derive/tests/compile-fail/schema/missing_function.rs
@@ -3,7 +3,7 @@ extern crate validator;
use validator::Validate;
#[derive(Validate)]
-//~^ ERROR: custom derive attribute panicked
+//~^ ERROR: proc-macro derive panicked
//~^^ HELP: Invalid schema level validation: `function` is required
#[validate(schema())]
struct Test {