Closed Aaron1011 closed 3 years ago
The CircleCI tests failed, but I'm getting a 404 page when I click on 'Details'
The CircleCI tests failed, but I'm getting a 404 page when I click on 'Details'
CircleCI is failing due to a rustfmt error:
let ty = &b.ast().ty;
quote_spanned!(b.ast().span()=>
|| <#ty as gc_arena::Collect>::needs_trace()
- ).to_tokens(&mut needs_trace_body);
+ )
+ .to_tokens(&mut needs_trace_body);
}
}
// Likewise, this will skip any fields that have `#[collect(require_static)]`
But I'm not too concerned about it, I can make a rustfmt pass in a bit before doing another release. Otherwise this makes sense and LGTM.
Also CircleCI has been erroring for me recently at git checkout for some reason, I have no idea why yet and I haven't fixed it.
We now span calls to
Collect::needs_trace
andCollect::trace
with the span of the field that we're generating the call for. This leads to nicer error messages when a trait bound is not fulfulled (and likely better runtime backtraces as well)