Rocket/core/codegen/src
Jakub Dąbek 9177b20ff1 Workaround 'rustc' bug, compiling more async code.
This commit implements a workaround for an [issue within rustc]. The
problem showed itself when using e.g. a `Vec<&str>` argument in an async
route handler (but not `&str`), which resulted in a "implementation of
`FromForm` is not general enough" error. The workaround itself works by
gathering all invocations of `FromForm`'s methods inside a block without
any `.await` points [ref].

[issue within rustc]: https://github.com/rust-lang/rust/issues/69663
[ref]: https://github.com/rust-lang/rust/issues/57478#issuecomment-501186084
2021-08-24 19:46:47 -07:00
..
attribute Workaround 'rustc' bug, compiling more async code. 2021-08-24 19:46:47 -07:00
bang Apply clippy suggestions. 2021-06-30 14:13:19 -07:00
derive Allow named field generics in 'UriDisplay' derive. 2021-07-01 06:02:40 -07:00
exports.rs Use 'syn', 'proc_macro2' directly. 2021-05-21 09:13:47 -07:00
http_codegen.rs Apply clippy suggestions. 2021-06-30 14:13:19 -07:00
lib.rs Update 'devise', fix 'Responder' derive generics. 2021-08-19 19:49:23 -07:00
name.rs Support type generics, unit structs in 'FromForm'. 2021-06-29 03:37:52 -07:00
proc_macro_ext.rs Use 'syn', 'proc_macro2' directly. 2021-05-21 09:13:47 -07:00
syn_ext.rs Apply clippy suggestions. 2021-06-30 14:13:19 -07:00