You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rocket v 0.3.0, Rust: 1.21.0-nightly (aac223f4f 2017-07-30)
macOS Sierra v 10.12.6
Rocket codegen enters unreachable code that crashes the compiler
I've an example in this repo
Rocket codegen enters unreachable code. It seems to be that there is a case that is reached that is covered by the unreachable! macro in the rocket_codegen lint and this causes the compiler to crash.
The text was updated successfully, but these errors were encountered:
use rocket::config::{Config,Environment};#[get("/hello")]fnhello() -> &'static str{"Hello, world!"}fnmain(){let config = Config::build(Environment::Staging).address("localhost").port(3000).finalize().unwrap();// rocket::custom(config, false).mount("/", routes![hello]); // This compiles properly
rocket::Rocket::custom(config,false).mount("/",routes![hello]);// This causes an error and does not compile due to the unreachable! in the lint}
SergioBenitez
changed the title
Rocket_codegen unable to compile
rocket_codegen lints fail to handle unresolved HIR paths leading to failed compilation
Aug 2, 2017
Bug Report
Rocket v 0.3.0, Rust: 1.21.0-nightly (aac223f4f 2017-07-30)
macOS Sierra v 10.12.6
Rocket codegen enters unreachable code that crashes the compiler
I've an example in this repo
Rocket codegen enters unreachable code. It seems to be that there is a case that is reached that is covered by the unreachable! macro in the rocket_codegen lint and this causes the compiler to crash.
The text was updated successfully, but these errors were encountered: