Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Don't use non-constant string as panic!()'s first argument #636

Closed
wants to merge 1 commit into from

Conversation

jedisct1
Copy link
Contributor

This is no longer accepted in Rust 2021.

Also remove a column sign after a function definition (how come that did even compile?)

@acfoltzer
Copy link
Contributor

These aren't strings, they're values that we use with Any in order to control the unwinding of guest termination and should keep them as-is.

We should get rid of that semicolon, though 🙂

This is no longer accepted in Rust 2021

Also remove a column sign after a function definition
(how come that did even compile?)
@jedisct1 jedisct1 force-pushed the fdenis/dont-panic-42 branch from 188fda6 to f4a4109 Compare February 22, 2021 19:02
@jedisct1
Copy link
Contributor Author

jedisct1 commented Feb 22, 2021

Thanks!

I guess we have to wait for the next release and use panic_any, then.

@jedisct1 jedisct1 closed this Feb 22, 2021
@acfoltzer
Copy link
Contributor

Ah yes, looks like it! I didn't know about that API change. Thanks for keeping eyes out for us

@jedisct1
Copy link
Contributor Author

Correct link to the issue: rust-lang/rust#78500

@jedisct1 jedisct1 deleted the fdenis/dont-panic-42 branch February 22, 2021 20:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants