{"id":18319891,"url":"https://github.com/bitwalker/rust_non_c_like_enums_issue","last_synced_at":"2025-04-09T14:23:22.406Z","repository":{"id":66283033,"uuid":"233946253","full_name":"bitwalker/rust_non_c_like_enums_issue","owner":"bitwalker","description":"Simple repro case","archived":false,"fork":false,"pushed_at":"2020-01-14T22:18:05.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T08:20:49.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitwalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-14T22:12:42.000Z","updated_at":"2020-01-14T22:18:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"b456b890-8da4-46db-aa28-52990676f004","html_url":"https://github.com/bitwalker/rust_non_c_like_enums_issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Frust_non_c_like_enums_issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Frust_non_c_like_enums_issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Frust_non_c_like_enums_issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Frust_non_c_like_enums_issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitwalker","download_url":"https://codeload.github.com/bitwalker/rust_non_c_like_enums_issue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054269,"owners_count":21039967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T18:14:36.140Z","updated_at":"2025-04-09T14:23:22.382Z","avatar_url":"https://github.com/bitwalker.png","language":"C++","readme":"This repo contains a reproduction of an issue with non-C-like enums, when passed by value.\n\nReproduced with Rust v1.42.0-nightly, and Apple clang version 11.0.0 (clang-1100.0.33.16).\n\n## Reproduction Steps\n\n1. Clone the repo\n2. In the repo root, run `make run`\n3. Examine the output\n\nNOTE: This repro was built on macOS, you may need to adjust compiler flags in \n`Makefile` for your environment.\n\nThe output should look something like this:\n\n    Running test 1..\n    Tag = -419398176\n    Running test 1..failed\n    Running test 2..\n    Tag = -419398176\n    Running test 2..failed\n    Running test 3..\n    Tag = 1\n    Arity = 1\n    Running test 3..passed\n    Running test 4..\n    Tag = 1\n    Arity = 2\n    Running test 4..passed\n    Error: \"Tests failed!\"\n\nThe first two tests are passing enums by value, the second two tests are passing\nthem by reference.\n\nThe issue seems to be that passing non-C-like enums by value doesn't match the layout\nspecified in RFC 2195.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Frust_non_c_like_enums_issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitwalker%2Frust_non_c_like_enums_issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Frust_non_c_like_enums_issue/lists"}