Generate correct bound for non-last extractor in #[debug_handler] (#1299)

* Support running a single UI test

* Generate correct `FromRequestParts` bound

* don't depend on itertools
This commit is contained in:
David Pedersen
2022-08-22 15:34:17 +02:00
committed by GitHub
parent be624306f4
commit bb05dea672
9 changed files with 214 additions and 45 deletions
+1 -11
View File
@@ -564,17 +564,7 @@ fn impl_enum_by_extracting_all_at_once(
#[test]
fn ui() {
#[rustversion::stable]
fn go() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/from_request/fail/*.rs");
t.pass("tests/from_request/pass/*.rs");
}
#[rustversion::not(stable)]
fn go() {}
go();
crate::run_ui_tests("from_request");
}
/// For some reason the compiler error for this is different locally and on CI. No idea why... So