Rocket/core/codegen/tests/ui-fail-stable
Sergio Benitez 337e8843a4 Use 'Option', 'Result' directly in 'uri!' query.
Prior to this commit, the conversion 'T -> Option<T>' was applied in
both the path and query parts of a URI in the 'uri' macro via the
'FromUriParam' trait with no implementation for 'Option<T>' directly.
This meant that it was impossible to directly render an 'Option<T>'.
This was exactly desired for the path part, where rendering a 'None'
would yield an incorrect URI, but the restriction was too strict for the
query part, where a 'None' is entirely valid. This commit makes changes
the conversion so that it only applied to path parts and adds the
identity conversions for 'Option<T>' and 'Result<T, E>' for query parts.

The side effect is a breaking change: due to conflicting impls, the 'T'
to 'Option<T>' conversion was removed for query parts. Thus, all 'uri!'
query route arguments of type 'Option' or 'Result' must now be wrapped
in 'Some' or 'Ok'. Due to new 'Option<T> <-> Result<T, E>' conversions,
either 'Some' _and_ 'Ok' work in both contexts.

Closes #1420.
2020-11-01 10:30:30 -08:00
..
async-entry.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
async-entry.stderr Update UI tests for latest stable. 2020-08-31 18:51:38 -07:00
bad-ignored-segments.rs Add tests for ignored parameters '<_>'. 2020-10-30 00:47:41 -07:00
bad-ignored-segments.stderr Add tests for ignored parameters '<_>'. 2020-10-30 00:47:41 -07:00
catch.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
catch.stderr Add default catchers: '#[catch(default)]'. 2020-07-30 01:55:41 -07:00
catch_type_errors.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
catch_type_errors.stderr Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -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 Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -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 Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
from_form_value.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
from_form_value.stderr Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
responder-types.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
responder-types.stderr Keep an op-log for sync 'CookieJar'. 2020-10-14 21:37:16 -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 Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
route-path-bad-syntax.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-path-bad-syntax.stderr Allow ignored route path segments. 2020-10-30 00:06:39 -07:00
route-type-errors.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-type-errors.stderr Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
route-warnings.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
route-warnings.stderr Implement codegen testing on stable. 2020-07-21 15:11:07 -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 Use 'Option', 'Result' directly in 'uri!' query. 2020-11-01 10:30:30 -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 Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -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 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 Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -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 Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00