I think these are just issues in the rocket::get macro in the release candidate version you're using (0.5.0-rc.3). Try updating to 0.5.0 and see if that fixes the issue. I managed to find this commit that adds some #[allow(unused)]s to related code in rocket: Qualm various emerging unused warnings. · rwf2/Rocket@48d1b82 · GitHub.
Macros sometimes cause strange compiler errors like this, in this case it appears that the macro is generating code that triggers the unused_imports lint, and the problem is then incorrectly mapped to the function definition for get_all_jobs since the code that triggers the issue doesn't actually exist in the source file, all the compiler has to blame is the function.
Unfortunately, I don't know if any work is currently being done to improve the situation...the error is definitely unclear and unhelpful here. Really the lint shouldn't fire at all since it's not your code that's the issue.
there isnt a scoped "ignore these lints" for rust with something like { ... }? only globally ignoring stuff with "#![allow(warn_unused)]", right? I mean locally applying this would not work as above noted.