Rocket/core/codegen/tests/ui-fail-nightly
Sergio Benitez ac0a77bae2 Allow dynamic parameters to match empty segments.
The net effect of this commit is three-fold:

  * A request to `/` now matches `/<a>`. `/foo/` matches `/<a>/<b>`.
  * A segment matched to a dynamic parameter may be empty.
  * A request to `/foo/` no longer matches `/foo` or `/<a>`. Instead,
    such a request would match `/foo/<a>` or `/foo/`.

The `&str` and `String` parameter guards were updated to reflect this
change: they now error, with a newly introduced error type `Empty` in
the `rocket::error` module, when the parameter is empty. As this was the
only built-in parameter guard that would be effected by this change (all
other guards already required nonempty parameters to succeed), the
majority of applications will see no effect as a result.

For applications wanting the previous functionality, a new
`AdHoc::uri_normalizer()` fairing was introduced.
2023-04-07 20:00:09 -07:00
..
async-entry.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
async-entry.stderr Implement more conservative URI normalization. 2023-04-07 19:59:57 -07:00
bad-ignored-segments.rs Add tests for ignored parameters '<_>'. 2020-10-30 00:47:41 -07:00
bad-ignored-segments.stderr Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -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 stable, nightly. 2023-01-30 16:10:59 -08:00
catch.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
catch.stderr Update UI test output for latest rustc. 2023-03-08 10:45:25 -08:00
catchers.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
catchers.stderr Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -08: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 Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -08:00
from_form_type_errors.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
from_form_type_errors.stderr Update UI tests for 'FromForm' impl addition. 2023-03-23 16:26:48 -07:00
from_form.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
from_form.stderr Update UI test output for latest rustc. 2023-03-08 10:45:25 -08:00
responder-types.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
responder-types.stderr Update UI tests for latest stable, nightly. 2023-01-30 16:10:59 -08:00
responder.rs Allow custom generic bounds in 'Responder' derive. 2021-05-26 02:26:11 -07:00
responder.stderr Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -08:00
route-attribute-general-syntax.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-attribute-general-syntax.stderr Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -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 Implement more conservative URI normalization. 2023-04-07 19:59:57 -07:00
route-type-errors.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-type-errors.stderr Update UI tests for 'FromForm' impl addition. 2023-03-23 16:26:48 -07:00
route-warnings.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-warnings.stderr Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -08:00
routes.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
routes.stderr Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -08:00
typed-uri-bad-type.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
typed-uri-bad-type.stderr Allow dynamic parameters to match empty segments. 2023-04-07 20:00:09 -07:00
typed-uris-bad-params.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
typed-uris-bad-params.stderr Allow dynamic parameters to match empty segments. 2023-04-07 20:00:09 -07:00
typed-uris-invalid-syntax.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
typed-uris-invalid-syntax.stderr Update syn, transitively, to 2.0. 2023-03-22 20:11:22 -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 Update UI tests for latest stable, nightly. 2023-01-30 16:10:59 -08:00
uri_display.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
uri_display.stderr Update codebase for latest nightly and stable. 2022-02-16 10:08:55 -08:00