-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Use &dyn Any rather than &(dyn Any + Send) for PanicInfo::payload() #110799
base: master
Are you sure you want to change the base?
Conversation
@bors try |
⌛ Trying commit 80968e5a8740ec4cdf7ec89cb320e20fc1dbee37 with merge 721f09565b0c3089f05d0d05d88cb02947a00cd1... |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
Looks like only six crates break when changing
|
I don't know if this is okay. That's up to the team, not just me. ^^ But we have made similar breaking changes in the past, so it might be acceptable.
I've re-opened your issue and nominated it for discussion. |
The `Send` is useless here, because it's a reference.
bce9a83
to
51dcb5e
Compare
This comment has been minimized.
This comment has been minimized.
51dcb5e
to
70c69f0
Compare
☔ The latest upstream changes (presumably #113260) made this pull request unmergeable. Please resolve the merge conflicts. |
Closing this as it was an experiment |
The
Send
in&(dyn Any + Send)
is basically useless, because it's a reference. Removing it fromPanicInfo::payload()
allows for some new possibilities in the future, if the type behind it no longer needs to beSend
. (We could just safely transmute the+ Send
into the&dyn
because it's meaningless for references, but it'd be nicer to just remove the needless+ Send
from the public API to clean things up.Removing it will break some other places that (needlessly) have the same
+ Send
though, luckily there don't seem to many cases of that in the Rust ecosystem.