You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the reasons I am hesitant about doing this is that it may be useful to have a an actual variable if it is necessary to take a reference of the tag literal. Without out a global variable to refer to a temporary will need to be allocated on the stack.
Then again, I could be wrong, I am basing my knowledge with how C++ would work, Rust could be different.
…e types (rust-lang#1488)
* feat: add bool test
* feat: add nonzerou8 test
* feat: add array test
* feat: add result test
* feat: add option test
* feat: add custom test
* refactor: rename non_zero_u8 to non_zero
* chore: add newlines to all test files
* docs: make test case notes docstrings
Kobzol
pushed a commit
to Kobzol/rust
that referenced
this issue
Dec 30, 2024
Consider removing global variables that store the discriminant IDs per variant as they are likely not really needed.
See pull request #1397.
The text was updated successfully, but these errors were encountered: