-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE with static function pointer to generic instantiation of enum constructor #13972
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This errors with this stack trace:
Which is very similar to the one in #10176. |
/cc @eddyb |
This compiles just fine today. |
@steveklabnik Thanks! There's a bunch of globals-related issues that @Twisol cc'd me on because of #20295 which might have fixed them, but I don't know any easy way to find them again. |
There is a FIXME related to this issue, |
@Eh2406 The FIXME is wrong, it has nothing to do with this issue. |
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
…13972) I ran Clippy on some projects after upgrading to 1.84, which found a [needless use of `as_bytes()`](rust-lang/rust-clippy#13437). It made me notice that the code was also using `bytes()` needlessly in other places. This PR improves on the `as_bytes()` lint to also lint `bytes()`. ---- changelog: none
Testcase:
Output:
The text was updated successfully, but these errors were encountered: