Rocket/core/codegen/tests/ui-fail
Sergio Benitez b7db74144f Parameterize 'UriDisplay' with 'Path' or 'Query'.
This commit introduces the sealed `UriPart` marker trait as well as the
implementing `Path` and `Query` marker types, allowing for parts of a
URI to be distinguished at the type level. Consequently, `UriDisplay`
has been parameterized with `P: UriPart`, creating `UriDisplay<Path>`
and `UriDisplay<Query>`. The effect of this change is improved type
safely for URI rendering as well as the ability to omit rendering values
in query parts via `Option` and `Result`.

The `UriDisplay` derive was replaced by `UriDisplayQuery` and
`UriDisplayPath` which derive implementations for `UriDisplay<Path>`
and `UriDisplay<Query>`, respectively.

This commit also works around a rustdoc visibility issue by creating a
hidden `http::private` module.

Finally, this commit also removes the now vestigial use of the
`rustc_private` feature in codegen.

Fixes #827.
2018-11-27 10:01:47 -06:00
..
catch.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
catch.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
catch_type_errors.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
catch_type_errors.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
catchers.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
catchers.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
from_form.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
from_form.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
from_form_type_errors.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
from_form_type_errors.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
from_form_value.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
from_form_value.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
responder-types.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
responder-types.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
responder.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
route-attribute-general-syntax.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
route-attribute-general-syntax.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
route-path-bad-syntax.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
route-path-bad-syntax.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
route-type-errors.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
route-type-errors.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
route-warnings.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
route-warnings.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
routes.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
routes.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
typed-uri-bad-type.rs Parameterize 'UriDisplay' with 'Path' or 'Query'. 2018-11-27 10:01:47 -06:00
typed-uri-bad-type.stderr Parameterize 'UriDisplay' with 'Path' or 'Query'. 2018-11-27 10:01:47 -06:00
typed-uris-bad-params.rs Parameterize 'UriDisplay' with 'Path' or 'Query'. 2018-11-27 10:01:47 -06:00
typed-uris-bad-params.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
typed-uris-invalid-syntax.rs Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
typed-uris-invalid-syntax.stderr Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
update-references.sh Rename 'codegen_next' to 'codegen'. 2018-10-22 00:01:41 -07:00
uri_display.rs Parameterize 'UriDisplay' with 'Path' or 'Query'. 2018-11-27 10:01:47 -06:00
uri_display.stderr Parameterize 'UriDisplay' with 'Path' or 'Query'. 2018-11-27 10:01:47 -06:00
uri_display_type_errors.rs Parameterize 'UriDisplay' with 'Path' or 'Query'. 2018-11-27 10:01:47 -06:00
uri_display_type_errors.stderr Parameterize 'UriDisplay' with 'Path' or 'Query'. 2018-11-27 10:01:47 -06:00