Rocket/core/codegen/tests/ui-fail-nightly
Sergio Benitez 4f3511786c Introduce statically-enforced 'Rocket' phasing.
The core 'Rocket' type is parameterized: 'Rocket<P: Phase>', where
'Phase' is a newly introduced, sealed marker trait. The trait is
implemented by three new marker types representing the three launch
phases: 'Build', 'Ignite', and 'Orbit'. Progression through these three
phases, in order, is enforced, as are the invariants guaranteed by each
phase. In particular, an instance of 'Rocket' is guaranteed to be in its
final configuration after the 'Build' phase and represent a running
local or public server in the 'Orbit' phase. The 'Ignite' phase serves
as an intermediate, enabling inspection of a finalized but stationary
instance. Transition between phases validates the invariants required
by the transition.

All APIs have been adjusted appropriately, requiring either an instance
of 'Rocket' in a particular phase ('Rocket<Build>', 'Rocket<Ignite>', or
'Rocket<Orbit>') or operating generically on a 'Rocket<P>'.
Documentation is also updated and substantially improved to mention
required and guaranteed invariants.

Additionally, this commit makes the following relevant changes:

  * 'Rocket::ignite()' is now a public interface.
  * 'Rocket::{build,custom}' methods can no longer panic.
  * 'Launch' fairings are now 'ignite' fairings.
  * 'Liftoff' fairings are always run, even in local mode.
  * All 'ignite' fairings run concurrently at ignition.
  * Launch logging occurs on launch, not any point prior.
  * Launch log messages have improved formatting.
  * A new launch error kind, 'Config', was added.
  * A 'fairing::Result' type alias was introduced.
  * 'Shutdown::shutdown()' is now 'Shutdown::notify()'.

Some internal changes were also introduced:

  * Fairing 'Info' name for 'Templates' is now 'Templating'.
  * Shutdown is implemented using 'tokio::sync::Notify'.
  * 'Client::debug()' is used nearly universally in tests.

Resolves #1154.
Resolves #1136.
2021-04-13 19:26:45 -07:00
..
async-entry.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
async-entry.stderr Introduce statically-enforced 'Rocket' phasing. 2021-04-13 19:26:45 -07:00
bad-ignored-segments.rs Add tests for ignored parameters '<_>'. 2020-10-30 00:47:41 -07:00
bad-ignored-segments.stderr Revamp codegen, fixing inconscpicuous bugs. 2021-03-04 02:01:25 -08:00
catch.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
catch.stderr Revamp codegen, fixing inconscpicuous bugs. 2021-03-04 02:01:25 -08:00
catch_type_errors.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
catch_type_errors.stderr Update UI tests for latest nightly. 2020-09-06 18:34:24 -07:00
catchers.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
catchers.stderr Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
from_form.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
from_form.stderr Allow several 'field' attributes in all derives. 2021-04-07 23:09:05 -07:00
from_form_field.rs UTF-8 routes. Forms revamp. Temp files. Capped. 2021-03-04 01:51:21 -08:00
from_form_field.stderr Allow several 'field' attributes in all derives. 2021-04-07 23:09:05 -07:00
from_form_type_errors.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
from_form_type_errors.stderr UTF-8 routes. Forms revamp. Temp files. Capped. 2021-03-04 01:51:21 -08:00
responder-types.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
responder-types.stderr Move catcher, route types into eponymous modules. 2021-04-13 18:58:05 -07:00
responder.stderr Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-attribute-general-syntax.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-attribute-general-syntax.stderr Revamp codegen, fixing inconscpicuous bugs. 2021-03-04 02:01:25 -08:00
route-path-bad-syntax.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-path-bad-syntax.stderr Revamp codegen, fixing inconscpicuous bugs. 2021-03-04 02:01:25 -08:00
route-type-errors.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-type-errors.stderr Remove second lifetime from 'FromRequest'. 2021-03-14 19:57:59 -07:00
route-warnings.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-warnings.stderr Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
routes.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
routes.stderr Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
typed-uri-bad-type.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
typed-uri-bad-type.stderr Revamp codegen, fixing inconscpicuous bugs. 2021-03-04 02:01:25 -08:00
typed-uris-bad-params.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
typed-uris-bad-params.stderr Revamp codegen, fixing inconscpicuous bugs. 2021-03-04 02:01:25 -08:00
typed-uris-invalid-syntax.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
typed-uris-invalid-syntax.stderr Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
uri_display.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
uri_display.stderr Allow several 'field' attributes in all derives. 2021-04-07 23:09:05 -07:00
uri_display_type_errors.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
uri_display_type_errors.stderr Revamp codegen, fixing inconscpicuous bugs. 2021-03-04 02:01:25 -08:00