Skip to content
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

Add intrinsic to extract the discriminant from an enum #16307

Closed
emberian opened this issue Aug 6, 2014 · 2 comments
Closed

Add intrinsic to extract the discriminant from an enum #16307

emberian opened this issue Aug 6, 2014 · 2 comments

Comments

@emberian
Copy link
Member

emberian commented Aug 6, 2014

This could really help #13623. My usecase is comparing token types. I don't care what the contents are, and I don't want to write an explosive combinatorial match to do so.

@sfackler
Copy link
Member

sfackler commented Aug 6, 2014

Won't the strategy used in #15503 work here?

@pnkfelix
Copy link
Member

pnkfelix commented Aug 6, 2014

dupe of #15620

@emberian emberian closed this as completed Aug 6, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Jan 15, 2024
internal: VFS no longer stores all source files in memory

Turns out there is no need to keep the files around. We either upload them to salsa once processed, or we need to keep them around for the `DidChangeTextDocumentNotification`, but that notification is only valid for opened documents, so instead we can just keep the files around in the `MemDocs`!

Fixes rust-lang/rust-analyzer#16301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants