diff --git a/tests/full.rs b/tests/full.rs index 4caa6512..fef99444 100644 --- a/tests/full.rs +++ b/tests/full.rs @@ -174,6 +174,7 @@ mod full { full_test!(libc0, "libc", "0.2.28", "0.2.31", cfg!(windows)); full_test!(libc1, "libc", "0.2.47", "0.2.48", true); full_test!(rmpv, "rmpv", "0.4.0", "0.4.1", false); + full_test!(casbin, "casbin", "2.0.0", "2.0.1", false); // full_test!(mozjs, "mozjs", "0.2.0", "0.3.0"); // full_test!(rand, "rand", "0.3.10", "0.3.16"); // full_test!(serde_pre, "serde", "0.7.0", "1.0.0"); diff --git a/tests/full_cases/casbin-2.0.0-2.0.1.linux b/tests/full_cases/casbin-2.0.0-2.0.1.linux new file mode 100644 index 00000000..d3a5b3ce --- /dev/null +++ b/tests/full_cases/casbin-2.0.0-2.0.1.linux @@ -0,0 +1,1133 @@ +version bump: 2.0.0 -> (breaking) -> 3.0.0 +error: breaking changes in `load_policy` + --> casbin-2.0.1/src/adapter/mod.rs:23:5 + | +23 | async fn load_policy(&self, m: &mut dyn Model) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_filtered_policy` + --> casbin-2.0.1/src/adapter/mod.rs:24:5 + | +24 | / async fn load_filtered_policy<'a>( +25 | | &mut self, +26 | | m: &mut dyn Model, +27 | | f: Filter<'a>, +28 | | ) -> Result<()>; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `save_policy` + --> casbin-2.0.1/src/adapter/mod.rs:29:5 + | +29 | async fn save_policy(&mut self, m: &mut dyn Model) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `clear_policy` + --> casbin-2.0.1/src/adapter/mod.rs:30:5 + | +30 | async fn clear_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy` + --> casbin-2.0.1/src/adapter/mod.rs:32:5 + | +32 | / async fn add_policy( +33 | | &mut self, +34 | | sec: &str, +35 | | ptype: &str, +36 | | rule: Vec, +37 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies` + --> casbin-2.0.1/src/adapter/mod.rs:38:5 + | +38 | / async fn add_policies( +39 | | &mut self, +40 | | sec: &str, +41 | | ptype: &str, +42 | | rules: Vec>, +43 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy` + --> casbin-2.0.1/src/adapter/mod.rs:44:5 + | +44 | / async fn remove_policy( +45 | | &mut self, +46 | | sec: &str, +47 | | ptype: &str, +48 | | rule: Vec, +49 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies` + --> casbin-2.0.1/src/adapter/mod.rs:50:5 + | +50 | / async fn remove_policies( +51 | | &mut self, +52 | | sec: &str, +53 | | ptype: &str, +54 | | rules: Vec>, +55 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy` + --> casbin-2.0.1/src/adapter/mod.rs:56:5 + | +56 | / async fn remove_filtered_policy( +57 | | &mut self, +58 | | sec: &str, +59 | | ptype: &str, +60 | | field_index: usize, +61 | | field_values: Vec, +62 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `new` + --> casbin-2.0.0/src/adapter/file_adapter.rs:46:5 + | +46 | pub fn new(p: P) -> FileAdapter

{ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: removed item in inherent impl (breaking) + +error: breaking changes in ` as old::Adapter>` + --> casbin-2.0.0/src/adapter/file_adapter.rs:95:1 + | +95 | / impl

Adapter for FileAdapter

+96 | | where +97 | | P: AsRef + Send + Sync, +98 | | { +... | +210 | | } +211 | | } + | |_^ + | + = warning: trait impl specialized or removed (breaking) + +error: breaking changes in `try_into_model` + --> casbin-2.0.1/src/convert.rs:18:5 + | +18 | async fn try_into_model(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `try_into_adapter` + --> casbin-2.0.1/src/convert.rs:23:5 + | +23 | async fn try_into_adapter(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `try_into_vec` + --> casbin-2.0.1/src/convert.rs:112:5 + | +112 | fn try_into_vec(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `old::rhai::Dynamic`, found struct `new::rhai::Dynamic` (breaking) + +error: breaking changes in `<(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(V,) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `new_raw` + --> casbin-2.0.1/src/core_api.rs:22:5 + | +22 | / async fn new_raw( +23 | | m: M, +24 | | a: A, +25 | | ) -> Result +26 | | where +27 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `new` + --> casbin-2.0.1/src/core_api.rs:28:5 + | +28 | / async fn new( +29 | | m: M, +30 | | a: A, +31 | | ) -> Result +32 | | where +33 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_function` + --> casbin-2.0.1/src/core_api.rs:34:5 + | +34 | / fn add_function( +35 | | &mut self, +36 | | fname: &str, +37 | | f: fn(ImmutableString, ImmutableString) -> bool, +38 | | ); + | |______^ + | + = warning: type error: expected struct `old::rhai::ImmutableString`, found struct `new::rhai::ImmutableString` (breaking) + +error: breaking changes in `set_model` + --> casbin-2.0.1/src/core_api.rs:58:5 + | +58 | / async fn set_model(&mut self, m: M) -> Result<()> +59 | | where +60 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `set_adapter` + --> casbin-2.0.1/src/core_api.rs:61:5 + | +61 | / async fn set_adapter(&mut self, a: A) -> Result<()> +62 | | where +63 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_policy` + --> casbin-2.0.1/src/core_api.rs:74:5 + | +74 | async fn load_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_filtered_policy` + --> casbin-2.0.1/src/core_api.rs:75:5 + | +75 | async fn load_filtered_policy<'a>(&mut self, f: Filter<'a>) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `save_policy` + --> casbin-2.0.1/src/core_api.rs:78:5 + | +78 | async fn save_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `clear_policy` + --> casbin-2.0.1/src/core_api.rs:79:5 + | +79 | async fn clear_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:18:5 + | +18 | / async fn add_policy_internal( +19 | | &mut self, +20 | | sec: &str, +21 | | ptype: &str, +22 | | rule: Vec, +23 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies_internal` + --> casbin-2.0.1/src/internal_api.rs:24:5 + | +24 | / async fn add_policies_internal( +25 | | &mut self, +26 | | sec: &str, +27 | | ptype: &str, +28 | | rules: Vec>, +29 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:30:5 + | +30 | / async fn remove_policy_internal( +31 | | &mut self, +32 | | sec: &str, +33 | | ptype: &str, +34 | | rule: Vec, +35 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies_internal` + --> casbin-2.0.1/src/internal_api.rs:36:5 + | +36 | / async fn remove_policies_internal( +37 | | &mut self, +38 | | sec: &str, +39 | | ptype: &str, +40 | | rules: Vec>, +41 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:42:5 + | +42 | / async fn remove_filtered_policy_internal( +43 | | &mut self, +44 | | sec: &str, +45 | | ptype: &str, +46 | | field_index: usize, +47 | | field_values: Vec, +48 | | ) -> Result<(bool, Vec>)>; + | |__________________________________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy` + --> casbin-2.0.1/src/management_api.rs:7:5 + | +7 | async fn add_policy(&mut self, params: Vec) -> Result { + | ^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies` + --> casbin-2.0.1/src/management_api.rs:11:5 + | +11 | async fn add_policies( + | ^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy` + --> casbin-2.0.1/src/management_api.rs:18:5 + | +18 | async fn remove_policy(&mut self, params: Vec) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies` + --> casbin-2.0.1/src/management_api.rs:22:5 + | +22 | async fn remove_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_policy` + --> casbin-2.0.1/src/management_api.rs:29:5 + | +29 | / async fn add_named_policy( +30 | | &mut self, +31 | | ptype: &str, +32 | | params: Vec, +33 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_policies` + --> casbin-2.0.1/src/management_api.rs:34:5 + | +34 | / async fn add_named_policies( +35 | | &mut self, +36 | | ptype: &str, +37 | | paramss: Vec>, +38 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_policy` + --> casbin-2.0.1/src/management_api.rs:39:5 + | +39 | / async fn remove_named_policy( +40 | | &mut self, +41 | | ptype: &str, +42 | | params: Vec, +43 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_policies` + --> casbin-2.0.1/src/management_api.rs:44:5 + | +44 | / async fn remove_named_policies( +45 | | &mut self, +46 | | ptype: &str, +47 | | paramss: Vec>, +48 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:50:5 + | +50 | async fn add_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:57:5 + | +57 | async fn add_grouping_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:64:5 + | +64 | async fn remove_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:71:5 + | +71 | async fn remove_grouping_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:78:5 + | +78 | / async fn add_named_grouping_policy( +79 | | &mut self, +80 | | ptype: &str, +81 | | params: Vec, +82 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:83:5 + | +83 | / async fn add_named_grouping_policies( +84 | | &mut self, +85 | | ptype: &str, +86 | | paramss: Vec>, +87 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:88:5 + | +88 | / async fn remove_named_grouping_policy( +89 | | &mut self, +90 | | ptype: &str, +91 | | params: Vec, +92 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:93:5 + | +93 | / async fn remove_named_grouping_policies( +94 | | &mut self, +95 | | ptype: &str, +96 | | paramss: Vec>, +97 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy` + --> casbin-2.0.1/src/management_api.rs:99:5 + | +99 | async fn remove_filtered_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:108:5 + | +108 | async fn remove_filtered_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_named_policy` + --> casbin-2.0.1/src/management_api.rs:121:5 + | +121 | / async fn remove_filtered_named_policy( +122 | | &mut self, +123 | | ptype: &str, +124 | | field_index: usize, +125 | | field_values: Vec, +126 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:127:5 + | +127 | / async fn remove_filtered_named_grouping_policy( +128 | | &mut self, +129 | | ptype: &str, +130 | | field_index: usize, +131 | | field_values: Vec, +132 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `get_model` + --> casbin-2.0.1/src/model/mod.rs:21:5 + | +21 | fn get_model(&self) -> &HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::map::IndexMap`, found a different struct `indexmap::map::IndexMap` (breaking) + +error: breaking changes in `get_mut_model` + --> casbin-2.0.1/src/model/mod.rs:22:5 + | +22 | fn get_mut_model(&mut self) -> &mut HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::map::IndexMap`, found a different struct `indexmap::map::IndexMap` (breaking) + +error: breaking changes in `get_policy` + --> casbin-2.0.0/src/model/assertion.rs:39:5 + | +39 | pub fn get_policy(&self) -> &IndexSet> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::set::IndexSet`, found a different struct `indexmap::set::IndexSet` (breaking) + +error: breaking changes in `get_mut_policy` + --> casbin-2.0.0/src/model/assertion.rs:44:5 + | +44 | pub fn get_mut_policy(&mut self) -> &mut IndexSet> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::set::IndexSet`, found a different struct `indexmap::set::IndexSet` (breaking) + +error: breaking changes in `from_file` + --> casbin-2.0.0/src/model/default_model.rs:33:5 + | +33 | pub async fn from_file>(p: P) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected opaque type, found a different opaque type (breaking) + +error: breaking changes in `from_str` + --> casbin-2.0.0/src/model/default_model.rs:49:5 + | +49 | pub async fn from_str(s: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected opaque type, found a different opaque type (breaking) + +error: breaking changes in `add_permission_for_user` + --> casbin-2.0.1/src/rbac_api.rs:9:5 + | +9 | / async fn add_permission_for_user( +10 | | &mut self, +11 | | user: &str, +12 | | permission: Vec, +13 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_permissions_for_user` + --> casbin-2.0.1/src/rbac_api.rs:14:5 + | +14 | / async fn add_permissions_for_user( +15 | | &mut self, +16 | | user: &str, +17 | | permissions: Vec>, +18 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_role_for_user` + --> casbin-2.0.1/src/rbac_api.rs:19:5 + | +19 | / async fn add_role_for_user( +20 | | &mut self, +21 | | user: &str, +22 | | role: &str, +23 | | domain: Option<&str>, +24 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_roles_for_user` + --> casbin-2.0.1/src/rbac_api.rs:25:5 + | +25 | / async fn add_roles_for_user( +26 | | &mut self, +27 | | user: &str, +28 | | roles: Vec, +29 | | domain: Option<&str>, +30 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_role_for_user` + --> casbin-2.0.1/src/rbac_api.rs:31:5 + | +31 | / async fn delete_role_for_user( +32 | | &mut self, +33 | | user: &str, +34 | | role: &str, +35 | | domain: Option<&str>, +36 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_roles_for_user` + --> casbin-2.0.1/src/rbac_api.rs:37:5 + | +37 | / async fn delete_roles_for_user( +38 | | &mut self, +39 | | user: &str, +40 | | domain: Option<&str>, +41 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_user` + --> casbin-2.0.1/src/rbac_api.rs:42:5 + | +42 | async fn delete_user(&mut self, name: &str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_role` + --> casbin-2.0.1/src/rbac_api.rs:43:5 + | +43 | async fn delete_role(&mut self, name: &str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permission` + --> casbin-2.0.1/src/rbac_api.rs:45:5 + | +45 | async fn delete_permission( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permission_for_user` + --> casbin-2.0.1/src/rbac_api.rs:51:5 + | +51 | / async fn delete_permission_for_user( +52 | | &mut self, +53 | | user: &str, +54 | | permission: Vec, +55 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permissions_for_user` + --> casbin-2.0.1/src/rbac_api.rs:57:5 + | +57 | async fn delete_permissions_for_user( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `get_implicit_users_for_permission` + --> casbin-2.0.1/src/rbac_api.rs:104:5 + | +104 | / async fn get_implicit_users_for_permission( +105 | | &self, +106 | | permission: Vec, +107 | | ) -> Vec; + | |_____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found struct `std::vec::Vec` (breaking) + +error: breaking changes in `>>` + --> casbin-2.0.0/src/error.rs:47:10 + | +47 | #[derive(Error, Debug)] + | ^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `Error` + --> casbin-2.0.1/src/error.rs:48:1 + | +48 | / pub enum Error { +49 | | #[error("Casbin Io Error: `{0:?}`")] +50 | | IoError(#[from] IoError), +51 | | +... | +70 | | AdapterError(#[from] AdapterError), +71 | | } + | |_^ + | + = warning: type error: expected enum `old::rhai::EvalAltResult`, found enum `new::rhai::EvalAltResult` (breaking) + = warning: type error: expected struct `old::rhai::ParseError`, found struct `new::rhai::ParseError` (breaking) + +warning: technically breaking changes in `new` + --> casbin-2.0.1/src/adapter/file_adapter.rs:46:5 + | +46 | pub fn new(p: P) -> FileAdapter

{ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: added item in inherent impl (technically breaking) + +warning: technically breaking changes in ` as new::Adapter>` + --> casbin-2.0.1/src/adapter/file_adapter.rs:95:1 + | +95 | / impl

Adapter for FileAdapter

+96 | | where +97 | | P: AsRef + Send + Sync, +98 | | { +... | +210 | | } +211 | | } + | |_^ + | + = note: trait impl generalized or newly added (technically breaking) + +warning: technically breaking changes in `<(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(V,) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `>` + --> casbin-2.0.1/src/error.rs:47:10 + | +47 | #[derive(Error, Debug)] + | ^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `` + --> casbin-2.0.0/src/enforcer.rs:37:1 + | +37 | / def_package!(rhai:CasbinPackage:"Package for Casbin", lib, { +38 | | ArithmeticPackage::init(lib); +39 | | LogicPackage::init(lib); +40 | | BasicArrayPackage::init(lib); +... | +45 | | }); +46 | | }); + | |__^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `def_package` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `` + --> casbin-2.0.1/src/enforcer.rs:37:1 + | +37 | / def_package!(rhai:CasbinPackage:"Package for Casbin", lib, { +38 | | ArithmeticPackage::init(lib); +39 | | LogicPackage::init(lib); +40 | | BasicArrayPackage::init(lib); +... | +45 | | }); +46 | | }); + | |__^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `def_package` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to 89 previous errors; 24 warnings emitted + +error: rustc-semverver errored diff --git a/tests/full_cases/casbin-2.0.0-2.0.1.osx b/tests/full_cases/casbin-2.0.0-2.0.1.osx new file mode 100644 index 00000000..d3a5b3ce --- /dev/null +++ b/tests/full_cases/casbin-2.0.0-2.0.1.osx @@ -0,0 +1,1133 @@ +version bump: 2.0.0 -> (breaking) -> 3.0.0 +error: breaking changes in `load_policy` + --> casbin-2.0.1/src/adapter/mod.rs:23:5 + | +23 | async fn load_policy(&self, m: &mut dyn Model) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_filtered_policy` + --> casbin-2.0.1/src/adapter/mod.rs:24:5 + | +24 | / async fn load_filtered_policy<'a>( +25 | | &mut self, +26 | | m: &mut dyn Model, +27 | | f: Filter<'a>, +28 | | ) -> Result<()>; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `save_policy` + --> casbin-2.0.1/src/adapter/mod.rs:29:5 + | +29 | async fn save_policy(&mut self, m: &mut dyn Model) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `clear_policy` + --> casbin-2.0.1/src/adapter/mod.rs:30:5 + | +30 | async fn clear_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy` + --> casbin-2.0.1/src/adapter/mod.rs:32:5 + | +32 | / async fn add_policy( +33 | | &mut self, +34 | | sec: &str, +35 | | ptype: &str, +36 | | rule: Vec, +37 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies` + --> casbin-2.0.1/src/adapter/mod.rs:38:5 + | +38 | / async fn add_policies( +39 | | &mut self, +40 | | sec: &str, +41 | | ptype: &str, +42 | | rules: Vec>, +43 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy` + --> casbin-2.0.1/src/adapter/mod.rs:44:5 + | +44 | / async fn remove_policy( +45 | | &mut self, +46 | | sec: &str, +47 | | ptype: &str, +48 | | rule: Vec, +49 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies` + --> casbin-2.0.1/src/adapter/mod.rs:50:5 + | +50 | / async fn remove_policies( +51 | | &mut self, +52 | | sec: &str, +53 | | ptype: &str, +54 | | rules: Vec>, +55 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy` + --> casbin-2.0.1/src/adapter/mod.rs:56:5 + | +56 | / async fn remove_filtered_policy( +57 | | &mut self, +58 | | sec: &str, +59 | | ptype: &str, +60 | | field_index: usize, +61 | | field_values: Vec, +62 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `new` + --> casbin-2.0.0/src/adapter/file_adapter.rs:46:5 + | +46 | pub fn new(p: P) -> FileAdapter

{ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: removed item in inherent impl (breaking) + +error: breaking changes in ` as old::Adapter>` + --> casbin-2.0.0/src/adapter/file_adapter.rs:95:1 + | +95 | / impl

Adapter for FileAdapter

+96 | | where +97 | | P: AsRef + Send + Sync, +98 | | { +... | +210 | | } +211 | | } + | |_^ + | + = warning: trait impl specialized or removed (breaking) + +error: breaking changes in `try_into_model` + --> casbin-2.0.1/src/convert.rs:18:5 + | +18 | async fn try_into_model(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `try_into_adapter` + --> casbin-2.0.1/src/convert.rs:23:5 + | +23 | async fn try_into_adapter(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `try_into_vec` + --> casbin-2.0.1/src/convert.rs:112:5 + | +112 | fn try_into_vec(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `old::rhai::Dynamic`, found struct `new::rhai::Dynamic` (breaking) + +error: breaking changes in `<(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(V,) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `new_raw` + --> casbin-2.0.1/src/core_api.rs:22:5 + | +22 | / async fn new_raw( +23 | | m: M, +24 | | a: A, +25 | | ) -> Result +26 | | where +27 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `new` + --> casbin-2.0.1/src/core_api.rs:28:5 + | +28 | / async fn new( +29 | | m: M, +30 | | a: A, +31 | | ) -> Result +32 | | where +33 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_function` + --> casbin-2.0.1/src/core_api.rs:34:5 + | +34 | / fn add_function( +35 | | &mut self, +36 | | fname: &str, +37 | | f: fn(ImmutableString, ImmutableString) -> bool, +38 | | ); + | |______^ + | + = warning: type error: expected struct `old::rhai::ImmutableString`, found struct `new::rhai::ImmutableString` (breaking) + +error: breaking changes in `set_model` + --> casbin-2.0.1/src/core_api.rs:58:5 + | +58 | / async fn set_model(&mut self, m: M) -> Result<()> +59 | | where +60 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `set_adapter` + --> casbin-2.0.1/src/core_api.rs:61:5 + | +61 | / async fn set_adapter(&mut self, a: A) -> Result<()> +62 | | where +63 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_policy` + --> casbin-2.0.1/src/core_api.rs:74:5 + | +74 | async fn load_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_filtered_policy` + --> casbin-2.0.1/src/core_api.rs:75:5 + | +75 | async fn load_filtered_policy<'a>(&mut self, f: Filter<'a>) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `save_policy` + --> casbin-2.0.1/src/core_api.rs:78:5 + | +78 | async fn save_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `clear_policy` + --> casbin-2.0.1/src/core_api.rs:79:5 + | +79 | async fn clear_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:18:5 + | +18 | / async fn add_policy_internal( +19 | | &mut self, +20 | | sec: &str, +21 | | ptype: &str, +22 | | rule: Vec, +23 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies_internal` + --> casbin-2.0.1/src/internal_api.rs:24:5 + | +24 | / async fn add_policies_internal( +25 | | &mut self, +26 | | sec: &str, +27 | | ptype: &str, +28 | | rules: Vec>, +29 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:30:5 + | +30 | / async fn remove_policy_internal( +31 | | &mut self, +32 | | sec: &str, +33 | | ptype: &str, +34 | | rule: Vec, +35 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies_internal` + --> casbin-2.0.1/src/internal_api.rs:36:5 + | +36 | / async fn remove_policies_internal( +37 | | &mut self, +38 | | sec: &str, +39 | | ptype: &str, +40 | | rules: Vec>, +41 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:42:5 + | +42 | / async fn remove_filtered_policy_internal( +43 | | &mut self, +44 | | sec: &str, +45 | | ptype: &str, +46 | | field_index: usize, +47 | | field_values: Vec, +48 | | ) -> Result<(bool, Vec>)>; + | |__________________________________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy` + --> casbin-2.0.1/src/management_api.rs:7:5 + | +7 | async fn add_policy(&mut self, params: Vec) -> Result { + | ^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies` + --> casbin-2.0.1/src/management_api.rs:11:5 + | +11 | async fn add_policies( + | ^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy` + --> casbin-2.0.1/src/management_api.rs:18:5 + | +18 | async fn remove_policy(&mut self, params: Vec) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies` + --> casbin-2.0.1/src/management_api.rs:22:5 + | +22 | async fn remove_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_policy` + --> casbin-2.0.1/src/management_api.rs:29:5 + | +29 | / async fn add_named_policy( +30 | | &mut self, +31 | | ptype: &str, +32 | | params: Vec, +33 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_policies` + --> casbin-2.0.1/src/management_api.rs:34:5 + | +34 | / async fn add_named_policies( +35 | | &mut self, +36 | | ptype: &str, +37 | | paramss: Vec>, +38 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_policy` + --> casbin-2.0.1/src/management_api.rs:39:5 + | +39 | / async fn remove_named_policy( +40 | | &mut self, +41 | | ptype: &str, +42 | | params: Vec, +43 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_policies` + --> casbin-2.0.1/src/management_api.rs:44:5 + | +44 | / async fn remove_named_policies( +45 | | &mut self, +46 | | ptype: &str, +47 | | paramss: Vec>, +48 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:50:5 + | +50 | async fn add_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:57:5 + | +57 | async fn add_grouping_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:64:5 + | +64 | async fn remove_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:71:5 + | +71 | async fn remove_grouping_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:78:5 + | +78 | / async fn add_named_grouping_policy( +79 | | &mut self, +80 | | ptype: &str, +81 | | params: Vec, +82 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:83:5 + | +83 | / async fn add_named_grouping_policies( +84 | | &mut self, +85 | | ptype: &str, +86 | | paramss: Vec>, +87 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:88:5 + | +88 | / async fn remove_named_grouping_policy( +89 | | &mut self, +90 | | ptype: &str, +91 | | params: Vec, +92 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:93:5 + | +93 | / async fn remove_named_grouping_policies( +94 | | &mut self, +95 | | ptype: &str, +96 | | paramss: Vec>, +97 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy` + --> casbin-2.0.1/src/management_api.rs:99:5 + | +99 | async fn remove_filtered_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:108:5 + | +108 | async fn remove_filtered_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_named_policy` + --> casbin-2.0.1/src/management_api.rs:121:5 + | +121 | / async fn remove_filtered_named_policy( +122 | | &mut self, +123 | | ptype: &str, +124 | | field_index: usize, +125 | | field_values: Vec, +126 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:127:5 + | +127 | / async fn remove_filtered_named_grouping_policy( +128 | | &mut self, +129 | | ptype: &str, +130 | | field_index: usize, +131 | | field_values: Vec, +132 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `get_model` + --> casbin-2.0.1/src/model/mod.rs:21:5 + | +21 | fn get_model(&self) -> &HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::map::IndexMap`, found a different struct `indexmap::map::IndexMap` (breaking) + +error: breaking changes in `get_mut_model` + --> casbin-2.0.1/src/model/mod.rs:22:5 + | +22 | fn get_mut_model(&mut self) -> &mut HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::map::IndexMap`, found a different struct `indexmap::map::IndexMap` (breaking) + +error: breaking changes in `get_policy` + --> casbin-2.0.0/src/model/assertion.rs:39:5 + | +39 | pub fn get_policy(&self) -> &IndexSet> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::set::IndexSet`, found a different struct `indexmap::set::IndexSet` (breaking) + +error: breaking changes in `get_mut_policy` + --> casbin-2.0.0/src/model/assertion.rs:44:5 + | +44 | pub fn get_mut_policy(&mut self) -> &mut IndexSet> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::set::IndexSet`, found a different struct `indexmap::set::IndexSet` (breaking) + +error: breaking changes in `from_file` + --> casbin-2.0.0/src/model/default_model.rs:33:5 + | +33 | pub async fn from_file>(p: P) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected opaque type, found a different opaque type (breaking) + +error: breaking changes in `from_str` + --> casbin-2.0.0/src/model/default_model.rs:49:5 + | +49 | pub async fn from_str(s: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected opaque type, found a different opaque type (breaking) + +error: breaking changes in `add_permission_for_user` + --> casbin-2.0.1/src/rbac_api.rs:9:5 + | +9 | / async fn add_permission_for_user( +10 | | &mut self, +11 | | user: &str, +12 | | permission: Vec, +13 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_permissions_for_user` + --> casbin-2.0.1/src/rbac_api.rs:14:5 + | +14 | / async fn add_permissions_for_user( +15 | | &mut self, +16 | | user: &str, +17 | | permissions: Vec>, +18 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_role_for_user` + --> casbin-2.0.1/src/rbac_api.rs:19:5 + | +19 | / async fn add_role_for_user( +20 | | &mut self, +21 | | user: &str, +22 | | role: &str, +23 | | domain: Option<&str>, +24 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_roles_for_user` + --> casbin-2.0.1/src/rbac_api.rs:25:5 + | +25 | / async fn add_roles_for_user( +26 | | &mut self, +27 | | user: &str, +28 | | roles: Vec, +29 | | domain: Option<&str>, +30 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_role_for_user` + --> casbin-2.0.1/src/rbac_api.rs:31:5 + | +31 | / async fn delete_role_for_user( +32 | | &mut self, +33 | | user: &str, +34 | | role: &str, +35 | | domain: Option<&str>, +36 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_roles_for_user` + --> casbin-2.0.1/src/rbac_api.rs:37:5 + | +37 | / async fn delete_roles_for_user( +38 | | &mut self, +39 | | user: &str, +40 | | domain: Option<&str>, +41 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_user` + --> casbin-2.0.1/src/rbac_api.rs:42:5 + | +42 | async fn delete_user(&mut self, name: &str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_role` + --> casbin-2.0.1/src/rbac_api.rs:43:5 + | +43 | async fn delete_role(&mut self, name: &str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permission` + --> casbin-2.0.1/src/rbac_api.rs:45:5 + | +45 | async fn delete_permission( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permission_for_user` + --> casbin-2.0.1/src/rbac_api.rs:51:5 + | +51 | / async fn delete_permission_for_user( +52 | | &mut self, +53 | | user: &str, +54 | | permission: Vec, +55 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permissions_for_user` + --> casbin-2.0.1/src/rbac_api.rs:57:5 + | +57 | async fn delete_permissions_for_user( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `get_implicit_users_for_permission` + --> casbin-2.0.1/src/rbac_api.rs:104:5 + | +104 | / async fn get_implicit_users_for_permission( +105 | | &self, +106 | | permission: Vec, +107 | | ) -> Vec; + | |_____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found struct `std::vec::Vec` (breaking) + +error: breaking changes in `>>` + --> casbin-2.0.0/src/error.rs:47:10 + | +47 | #[derive(Error, Debug)] + | ^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `Error` + --> casbin-2.0.1/src/error.rs:48:1 + | +48 | / pub enum Error { +49 | | #[error("Casbin Io Error: `{0:?}`")] +50 | | IoError(#[from] IoError), +51 | | +... | +70 | | AdapterError(#[from] AdapterError), +71 | | } + | |_^ + | + = warning: type error: expected enum `old::rhai::EvalAltResult`, found enum `new::rhai::EvalAltResult` (breaking) + = warning: type error: expected struct `old::rhai::ParseError`, found struct `new::rhai::ParseError` (breaking) + +warning: technically breaking changes in `new` + --> casbin-2.0.1/src/adapter/file_adapter.rs:46:5 + | +46 | pub fn new(p: P) -> FileAdapter

{ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: added item in inherent impl (technically breaking) + +warning: technically breaking changes in ` as new::Adapter>` + --> casbin-2.0.1/src/adapter/file_adapter.rs:95:1 + | +95 | / impl

Adapter for FileAdapter

+96 | | where +97 | | P: AsRef + Send + Sync, +98 | | { +... | +210 | | } +211 | | } + | |_^ + | + = note: trait impl generalized or newly added (technically breaking) + +warning: technically breaking changes in `<(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(V,) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `>` + --> casbin-2.0.1/src/error.rs:47:10 + | +47 | #[derive(Error, Debug)] + | ^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `` + --> casbin-2.0.0/src/enforcer.rs:37:1 + | +37 | / def_package!(rhai:CasbinPackage:"Package for Casbin", lib, { +38 | | ArithmeticPackage::init(lib); +39 | | LogicPackage::init(lib); +40 | | BasicArrayPackage::init(lib); +... | +45 | | }); +46 | | }); + | |__^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `def_package` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `` + --> casbin-2.0.1/src/enforcer.rs:37:1 + | +37 | / def_package!(rhai:CasbinPackage:"Package for Casbin", lib, { +38 | | ArithmeticPackage::init(lib); +39 | | LogicPackage::init(lib); +40 | | BasicArrayPackage::init(lib); +... | +45 | | }); +46 | | }); + | |__^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `def_package` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to 89 previous errors; 24 warnings emitted + +error: rustc-semverver errored diff --git a/tests/full_cases/casbin-2.0.0-2.0.1.windows_msvc b/tests/full_cases/casbin-2.0.0-2.0.1.windows_msvc new file mode 100644 index 00000000..d3a5b3ce --- /dev/null +++ b/tests/full_cases/casbin-2.0.0-2.0.1.windows_msvc @@ -0,0 +1,1133 @@ +version bump: 2.0.0 -> (breaking) -> 3.0.0 +error: breaking changes in `load_policy` + --> casbin-2.0.1/src/adapter/mod.rs:23:5 + | +23 | async fn load_policy(&self, m: &mut dyn Model) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_filtered_policy` + --> casbin-2.0.1/src/adapter/mod.rs:24:5 + | +24 | / async fn load_filtered_policy<'a>( +25 | | &mut self, +26 | | m: &mut dyn Model, +27 | | f: Filter<'a>, +28 | | ) -> Result<()>; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `save_policy` + --> casbin-2.0.1/src/adapter/mod.rs:29:5 + | +29 | async fn save_policy(&mut self, m: &mut dyn Model) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `clear_policy` + --> casbin-2.0.1/src/adapter/mod.rs:30:5 + | +30 | async fn clear_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy` + --> casbin-2.0.1/src/adapter/mod.rs:32:5 + | +32 | / async fn add_policy( +33 | | &mut self, +34 | | sec: &str, +35 | | ptype: &str, +36 | | rule: Vec, +37 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies` + --> casbin-2.0.1/src/adapter/mod.rs:38:5 + | +38 | / async fn add_policies( +39 | | &mut self, +40 | | sec: &str, +41 | | ptype: &str, +42 | | rules: Vec>, +43 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy` + --> casbin-2.0.1/src/adapter/mod.rs:44:5 + | +44 | / async fn remove_policy( +45 | | &mut self, +46 | | sec: &str, +47 | | ptype: &str, +48 | | rule: Vec, +49 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies` + --> casbin-2.0.1/src/adapter/mod.rs:50:5 + | +50 | / async fn remove_policies( +51 | | &mut self, +52 | | sec: &str, +53 | | ptype: &str, +54 | | rules: Vec>, +55 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy` + --> casbin-2.0.1/src/adapter/mod.rs:56:5 + | +56 | / async fn remove_filtered_policy( +57 | | &mut self, +58 | | sec: &str, +59 | | ptype: &str, +60 | | field_index: usize, +61 | | field_values: Vec, +62 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `new` + --> casbin-2.0.0/src/adapter/file_adapter.rs:46:5 + | +46 | pub fn new(p: P) -> FileAdapter

{ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: removed item in inherent impl (breaking) + +error: breaking changes in ` as old::Adapter>` + --> casbin-2.0.0/src/adapter/file_adapter.rs:95:1 + | +95 | / impl

Adapter for FileAdapter

+96 | | where +97 | | P: AsRef + Send + Sync, +98 | | { +... | +210 | | } +211 | | } + | |_^ + | + = warning: trait impl specialized or removed (breaking) + +error: breaking changes in `try_into_model` + --> casbin-2.0.1/src/convert.rs:18:5 + | +18 | async fn try_into_model(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `try_into_adapter` + --> casbin-2.0.1/src/convert.rs:23:5 + | +23 | async fn try_into_adapter(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `try_into_vec` + --> casbin-2.0.1/src/convert.rs:112:5 + | +112 | fn try_into_vec(self) -> Result>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `old::rhai::Dynamic`, found struct `new::rhai::Dynamic` (breaking) + +error: breaking changes in `<(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(H, J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(J, K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(K, L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(L, M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(M, N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(N, P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(P, Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(Q, R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(R, S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(S, T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(T, U, V) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `<(V,) as old::EnforceArgs>` + --> casbin-2.0.0/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `new_raw` + --> casbin-2.0.1/src/core_api.rs:22:5 + | +22 | / async fn new_raw( +23 | | m: M, +24 | | a: A, +25 | | ) -> Result +26 | | where +27 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `new` + --> casbin-2.0.1/src/core_api.rs:28:5 + | +28 | / async fn new( +29 | | m: M, +30 | | a: A, +31 | | ) -> Result +32 | | where +33 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_function` + --> casbin-2.0.1/src/core_api.rs:34:5 + | +34 | / fn add_function( +35 | | &mut self, +36 | | fname: &str, +37 | | f: fn(ImmutableString, ImmutableString) -> bool, +38 | | ); + | |______^ + | + = warning: type error: expected struct `old::rhai::ImmutableString`, found struct `new::rhai::ImmutableString` (breaking) + +error: breaking changes in `set_model` + --> casbin-2.0.1/src/core_api.rs:58:5 + | +58 | / async fn set_model(&mut self, m: M) -> Result<()> +59 | | where +60 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `set_adapter` + --> casbin-2.0.1/src/core_api.rs:61:5 + | +61 | / async fn set_adapter(&mut self, a: A) -> Result<()> +62 | | where +63 | | Self: Sized; + | |____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_policy` + --> casbin-2.0.1/src/core_api.rs:74:5 + | +74 | async fn load_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `load_filtered_policy` + --> casbin-2.0.1/src/core_api.rs:75:5 + | +75 | async fn load_filtered_policy<'a>(&mut self, f: Filter<'a>) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `save_policy` + --> casbin-2.0.1/src/core_api.rs:78:5 + | +78 | async fn save_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `clear_policy` + --> casbin-2.0.1/src/core_api.rs:79:5 + | +79 | async fn clear_policy(&mut self) -> Result<()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:18:5 + | +18 | / async fn add_policy_internal( +19 | | &mut self, +20 | | sec: &str, +21 | | ptype: &str, +22 | | rule: Vec, +23 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies_internal` + --> casbin-2.0.1/src/internal_api.rs:24:5 + | +24 | / async fn add_policies_internal( +25 | | &mut self, +26 | | sec: &str, +27 | | ptype: &str, +28 | | rules: Vec>, +29 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:30:5 + | +30 | / async fn remove_policy_internal( +31 | | &mut self, +32 | | sec: &str, +33 | | ptype: &str, +34 | | rule: Vec, +35 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies_internal` + --> casbin-2.0.1/src/internal_api.rs:36:5 + | +36 | / async fn remove_policies_internal( +37 | | &mut self, +38 | | sec: &str, +39 | | ptype: &str, +40 | | rules: Vec>, +41 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy_internal` + --> casbin-2.0.1/src/internal_api.rs:42:5 + | +42 | / async fn remove_filtered_policy_internal( +43 | | &mut self, +44 | | sec: &str, +45 | | ptype: &str, +46 | | field_index: usize, +47 | | field_values: Vec, +48 | | ) -> Result<(bool, Vec>)>; + | |__________________________________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policy` + --> casbin-2.0.1/src/management_api.rs:7:5 + | +7 | async fn add_policy(&mut self, params: Vec) -> Result { + | ^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_policies` + --> casbin-2.0.1/src/management_api.rs:11:5 + | +11 | async fn add_policies( + | ^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policy` + --> casbin-2.0.1/src/management_api.rs:18:5 + | +18 | async fn remove_policy(&mut self, params: Vec) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_policies` + --> casbin-2.0.1/src/management_api.rs:22:5 + | +22 | async fn remove_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_policy` + --> casbin-2.0.1/src/management_api.rs:29:5 + | +29 | / async fn add_named_policy( +30 | | &mut self, +31 | | ptype: &str, +32 | | params: Vec, +33 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_policies` + --> casbin-2.0.1/src/management_api.rs:34:5 + | +34 | / async fn add_named_policies( +35 | | &mut self, +36 | | ptype: &str, +37 | | paramss: Vec>, +38 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_policy` + --> casbin-2.0.1/src/management_api.rs:39:5 + | +39 | / async fn remove_named_policy( +40 | | &mut self, +41 | | ptype: &str, +42 | | params: Vec, +43 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_policies` + --> casbin-2.0.1/src/management_api.rs:44:5 + | +44 | / async fn remove_named_policies( +45 | | &mut self, +46 | | ptype: &str, +47 | | paramss: Vec>, +48 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:50:5 + | +50 | async fn add_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:57:5 + | +57 | async fn add_grouping_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:64:5 + | +64 | async fn remove_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:71:5 + | +71 | async fn remove_grouping_policies( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:78:5 + | +78 | / async fn add_named_grouping_policy( +79 | | &mut self, +80 | | ptype: &str, +81 | | params: Vec, +82 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_named_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:83:5 + | +83 | / async fn add_named_grouping_policies( +84 | | &mut self, +85 | | ptype: &str, +86 | | paramss: Vec>, +87 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:88:5 + | +88 | / async fn remove_named_grouping_policy( +89 | | &mut self, +90 | | ptype: &str, +91 | | params: Vec, +92 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_named_grouping_policies` + --> casbin-2.0.1/src/management_api.rs:93:5 + | +93 | / async fn remove_named_grouping_policies( +94 | | &mut self, +95 | | ptype: &str, +96 | | paramss: Vec>, +97 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_policy` + --> casbin-2.0.1/src/management_api.rs:99:5 + | +99 | async fn remove_filtered_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:108:5 + | +108 | async fn remove_filtered_grouping_policy( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_named_policy` + --> casbin-2.0.1/src/management_api.rs:121:5 + | +121 | / async fn remove_filtered_named_policy( +122 | | &mut self, +123 | | ptype: &str, +124 | | field_index: usize, +125 | | field_values: Vec, +126 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `remove_filtered_named_grouping_policy` + --> casbin-2.0.1/src/management_api.rs:127:5 + | +127 | / async fn remove_filtered_named_grouping_policy( +128 | | &mut self, +129 | | ptype: &str, +130 | | field_index: usize, +131 | | field_values: Vec, +132 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `get_model` + --> casbin-2.0.1/src/model/mod.rs:21:5 + | +21 | fn get_model(&self) -> &HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::map::IndexMap`, found a different struct `indexmap::map::IndexMap` (breaking) + +error: breaking changes in `get_mut_model` + --> casbin-2.0.1/src/model/mod.rs:22:5 + | +22 | fn get_mut_model(&mut self) -> &mut HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::map::IndexMap`, found a different struct `indexmap::map::IndexMap` (breaking) + +error: breaking changes in `get_policy` + --> casbin-2.0.0/src/model/assertion.rs:39:5 + | +39 | pub fn get_policy(&self) -> &IndexSet> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::set::IndexSet`, found a different struct `indexmap::set::IndexSet` (breaking) + +error: breaking changes in `get_mut_policy` + --> casbin-2.0.0/src/model/assertion.rs:44:5 + | +44 | pub fn get_mut_policy(&mut self) -> &mut IndexSet> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected struct `indexmap::set::IndexSet`, found a different struct `indexmap::set::IndexSet` (breaking) + +error: breaking changes in `from_file` + --> casbin-2.0.0/src/model/default_model.rs:33:5 + | +33 | pub async fn from_file>(p: P) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected opaque type, found a different opaque type (breaking) + +error: breaking changes in `from_str` + --> casbin-2.0.0/src/model/default_model.rs:49:5 + | +49 | pub async fn from_str(s: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected opaque type, found a different opaque type (breaking) + +error: breaking changes in `add_permission_for_user` + --> casbin-2.0.1/src/rbac_api.rs:9:5 + | +9 | / async fn add_permission_for_user( +10 | | &mut self, +11 | | user: &str, +12 | | permission: Vec, +13 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_permissions_for_user` + --> casbin-2.0.1/src/rbac_api.rs:14:5 + | +14 | / async fn add_permissions_for_user( +15 | | &mut self, +16 | | user: &str, +17 | | permissions: Vec>, +18 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_role_for_user` + --> casbin-2.0.1/src/rbac_api.rs:19:5 + | +19 | / async fn add_role_for_user( +20 | | &mut self, +21 | | user: &str, +22 | | role: &str, +23 | | domain: Option<&str>, +24 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `add_roles_for_user` + --> casbin-2.0.1/src/rbac_api.rs:25:5 + | +25 | / async fn add_roles_for_user( +26 | | &mut self, +27 | | user: &str, +28 | | roles: Vec, +29 | | domain: Option<&str>, +30 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_role_for_user` + --> casbin-2.0.1/src/rbac_api.rs:31:5 + | +31 | / async fn delete_role_for_user( +32 | | &mut self, +33 | | user: &str, +34 | | role: &str, +35 | | domain: Option<&str>, +36 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_roles_for_user` + --> casbin-2.0.1/src/rbac_api.rs:37:5 + | +37 | / async fn delete_roles_for_user( +38 | | &mut self, +39 | | user: &str, +40 | | domain: Option<&str>, +41 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_user` + --> casbin-2.0.1/src/rbac_api.rs:42:5 + | +42 | async fn delete_user(&mut self, name: &str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_role` + --> casbin-2.0.1/src/rbac_api.rs:43:5 + | +43 | async fn delete_role(&mut self, name: &str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permission` + --> casbin-2.0.1/src/rbac_api.rs:45:5 + | +45 | async fn delete_permission( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permission_for_user` + --> casbin-2.0.1/src/rbac_api.rs:51:5 + | +51 | / async fn delete_permission_for_user( +52 | | &mut self, +53 | | user: &str, +54 | | permission: Vec, +55 | | ) -> Result; + | |______________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `delete_permissions_for_user` + --> casbin-2.0.1/src/rbac_api.rs:57:5 + | +57 | async fn delete_permissions_for_user( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found enum `std::result::Result` (breaking) + +error: breaking changes in `get_implicit_users_for_permission` + --> casbin-2.0.1/src/rbac_api.rs:104:5 + | +104 | / async fn get_implicit_users_for_permission( +105 | | &self, +106 | | permission: Vec, +107 | | ) -> Vec; + | |_____________________^ + | + = warning: type error: expected trait object `dyn std::future::Future`, found struct `std::vec::Vec` (breaking) + +error: breaking changes in `>>` + --> casbin-2.0.0/src/error.rs:47:10 + | +47 | #[derive(Error, Debug)] + | ^^^^^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `Error` + --> casbin-2.0.1/src/error.rs:48:1 + | +48 | / pub enum Error { +49 | | #[error("Casbin Io Error: `{0:?}`")] +50 | | IoError(#[from] IoError), +51 | | +... | +70 | | AdapterError(#[from] AdapterError), +71 | | } + | |_^ + | + = warning: type error: expected enum `old::rhai::EvalAltResult`, found enum `new::rhai::EvalAltResult` (breaking) + = warning: type error: expected struct `old::rhai::ParseError`, found struct `new::rhai::ParseError` (breaking) + +warning: technically breaking changes in `new` + --> casbin-2.0.1/src/adapter/file_adapter.rs:46:5 + | +46 | pub fn new(p: P) -> FileAdapter

{ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: added item in inherent impl (technically breaking) + +warning: technically breaking changes in ` as new::Adapter>` + --> casbin-2.0.1/src/adapter/file_adapter.rs:95:1 + | +95 | / impl

Adapter for FileAdapter

+96 | | where +97 | | P: AsRef + Send + Sync, +98 | | { +... | +210 | | } +211 | | } + | |_^ + | + = note: trait impl generalized or newly added (technically breaking) + +warning: technically breaking changes in `<(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(G, H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(H, J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(J, K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(K, L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(L, M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(M, N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(N, P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(P, Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(Q, R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(R, S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(S, T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(T, U, V) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `<(V,) as new::EnforceArgs>` + --> casbin-2.0.1/src/convert.rs:163:1 + | +163 | impl_args!(A, B, C, D, E, F, G, H, J, K, L, M, N, P, Q, R, S, T, U, V); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `impl_args` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `>` + --> casbin-2.0.1/src/error.rs:47:10 + | +47 | #[derive(Error, Debug)] + | ^^^^^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: breaking changes in `` + --> casbin-2.0.0/src/enforcer.rs:37:1 + | +37 | / def_package!(rhai:CasbinPackage:"Package for Casbin", lib, { +38 | | ArithmeticPackage::init(lib); +39 | | LogicPackage::init(lib); +40 | | BasicArrayPackage::init(lib); +... | +45 | | }); +46 | | }); + | |__^ + | + = warning: trait impl specialized or removed (breaking) + = note: this error originates in the macro `def_package` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: technically breaking changes in `` + --> casbin-2.0.1/src/enforcer.rs:37:1 + | +37 | / def_package!(rhai:CasbinPackage:"Package for Casbin", lib, { +38 | | ArithmeticPackage::init(lib); +39 | | LogicPackage::init(lib); +40 | | BasicArrayPackage::init(lib); +... | +45 | | }); +46 | | }); + | |__^ + | + = note: trait impl generalized or newly added (technically breaking) + = note: this warning originates in the macro `def_package` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to 89 previous errors; 24 warnings emitted + +error: rustc-semverver errored