Skip to content

Don't allow duplicate definitions of structs and enum struct variants. - #7267

Closed
luqmana wants to merge 2 commits into
rust-lang:masterfrom
luqmana:issue-5792
Closed

luqmana wants to merge 2 commits into
rust-lang:masterfrom
luqmana:issue-5792

Conversation

@luqmana

@luqmana luqmana commented Jun 20, 2013

Copy link
Copy Markdown
Contributor

Fixes #5792

bors added a commit that referenced this pull request Jun 23, 2013
@bors bors closed this Jun 23, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 3, 2021
…shearth

Some SpanlessHash improvements

changelog: none

* Use `mem::discriminant().hash()` instead of `stable_hash` for simple enums and then use `FxHasher` instead of `StableHasher`. We don't use any StableHash features.
* Use `UnHashMap` for maps keyed by spanless hash values.
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
7274: Flesh out la-arena crate r=lnicola a=arzg

As requested in rust-lang#7267, I’ve added some basic documentation and added more keys to the crate’s `Cargo.toml`.

Co-authored-by: Aramis Razzaghipour <aramisnoah@gmail.com>
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

Successfully merging this pull request may close these issues.

enum struct variants can mask regular struct constructors

3 participants