-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Send implementation classification using complicated types #19318
Comments
Sorry for the delayed report. I tracked this down before thanksgiving but forgot to take notes. The problem is that we are hitting the maximum recursion depth counter for the builtin bounds. The simplest fix then is to up this depth -- the whole idea was that the depth would be configurable per crate. However, I'm not sure that it actually is. I guess I would say there are three problems here:
|
(I'll prepare a patch for configurable limits and a clearer error report ASAP) |
@jdm Did you find a workaround for this issue? It's still listed in servo/servo#2853 |
Yep! |
Sorry, not much concrete information here. Servo fails to build in confusing ways with small changes:
TestMsg(Sender<Sender<((), Receiver<Box<()>>)>>)
variant tolayout_interface::Msg
(http://mxr.mozilla.org/servo/source/components/script/layout_interface.rs)LayoutTask::handle_script_request
(http://mxr.mozilla.org/servo/source/components/layout/layout_task.rs)Build Servo, get a bunch of errors relating to Send bounds on types, some of which call out
layout_interface::Msg
in particular.TestMsg
to be the following:TestMsg(Sender<Sender<((), Receiver<()>)>>)
(or get rid of the first tuple argument, or get rid of one level of Sender, etc.)Build Servo again, see that it builds without any problems.
The text was updated successfully, but these errors were encountered: