mirror of https://github.com/rwf2/Rocket.git
Use forked compiletest for latest nightly.
This commit is contained in:
parent
2e25ce04dc
commit
e2fcd75325
|
@ -11,4 +11,4 @@ rocket = { path = "../lib/" }
|
|||
log = "^0.3"
|
||||
|
||||
[dev-dependencies]
|
||||
compiletest_rs = "^0.2"
|
||||
compiletest_rs = { git = "https://github.com/SergioBenitez/compiletest-rs" }
|
||||
|
|
|
@ -174,7 +174,7 @@ impl Rocket {
|
|||
// Rust thinks `request` is still borrowed here, but it's
|
||||
// obviously not (data has nothing to do with it), so we
|
||||
// convince it to give us another mutable reference.
|
||||
// TODO: Pay the cost to copy Request into UnsafeCell?
|
||||
// FIXME: Pay the cost to copy Request into UnsafeCell?
|
||||
let request: &'r mut Request = unsafe {
|
||||
&mut *(request as *const Request as *mut Request)
|
||||
};
|
||||
|
@ -208,6 +208,7 @@ impl Rocket {
|
|||
for route in matches {
|
||||
// Retrieve and set the requests parameters.
|
||||
info_!("Matched: {}", route);
|
||||
// FIXME: Users should not be able to use this.
|
||||
request.set_params(route);
|
||||
|
||||
// Dispatch the request to the handler.
|
||||
|
|
Loading…
Reference in New Issue