mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
get rid of mod's in error messages
This commit is contained in:
parent
f9c2009023
commit
4fd5464e44
8 changed files with 91 additions and 127 deletions
|
@ -3,19 +3,3 @@ error: async fn must not take &State as an argument as State is not Sync, consid
|
|||
|
|
||||
9 | async fn read_all(state : &State)
|
||||
| ^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
--> $DIR/method_async_state.rs:4:10
|
||||
|
|
||||
4 | #[derive(Resource)]
|
||||
| ^^^^^^^^ use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
warning: unused import: `gotham_restful::State`
|
||||
--> $DIR/method_async_state.rs:2:5
|
||||
|
|
||||
2 | use gotham_restful::State;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
|
|
@ -6,10 +6,10 @@ error: Missing Resource struct. Example: #[read_all(MyResource)]
|
|||
|
|
||||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
error[E0425]: cannot find function `_gotham_restful_foo_resource_read_all_setup_impl` in this scope
|
||||
--> $DIR/method_no_resource.rs:3:10
|
||||
|
|
||||
3 | #[derive(Resource)]
|
||||
| ^^^^^^^^ use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
| ^^^^^^^^ not found in this scope
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -4,10 +4,10 @@ error: Didn't expect self parameter
|
|||
8 | fn read_all(self)
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
--> $DIR/method_self.rs:3:10
|
||||
error: `self` parameter is only allowed in associated functions
|
||||
--> $DIR/method_self.rs:8:13
|
||||
|
|
||||
3 | #[derive(Resource)]
|
||||
| ^^^^^^^^ use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
8 | fn read_all(self)
|
||||
| ^^^^ not semantically valid as function parameter
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: associated functions are those in `impl` or `trait` definitions
|
||||
|
|
|
@ -3,11 +3,3 @@ error: Too few arguments
|
|||
|
|
||||
8 | fn read()
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read`
|
||||
--> $DIR/method_too_few_args.rs:3:10
|
||||
|
|
||||
3 | #[derive(Resource)]
|
||||
| ^^^^^^^^ use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -3,11 +3,3 @@ error: Too many arguments
|
|||
|
|
||||
8 | fn read_all(_id : u64)
|
||||
| ^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
--> $DIR/method_too_many_args.rs:3:10
|
||||
|
|
||||
3 | #[derive(Resource)]
|
||||
| ^^^^^^^^ use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -3,11 +3,3 @@ error: Resource methods must not be unsafe
|
|||
|
|
||||
8 | unsafe fn read_all()
|
||||
| ^^^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
--> $DIR/method_unsafe.rs:3:10
|
||||
|
|
||||
3 | #[derive(Resource)]
|
||||
| ^^^^^^^^ use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue