{"id":18621549,"url":"https://github.com/oeb25/rkyv-partial-eq-error-reproduction","last_synced_at":"2025-07-26T13:12:32.670Z","repository":{"id":200679912,"uuid":"706077412","full_name":"oeb25/rkyv-partial-eq-error-reproduction","owner":"oeb25","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-17T10:40:08.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-27T04:42:28.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/oeb25.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}},"created_at":"2023-10-17T09:04:36.000Z","updated_at":"2023-10-17T09:06:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0354037-0a44-4db4-ba24-8b29f24caec3","html_url":"https://github.com/oeb25/rkyv-partial-eq-error-reproduction","commit_stats":null,"previous_names":["oeb25/rkyv-partial-eq-error-reproduction"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oeb25%2Frkyv-partial-eq-error-reproduction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oeb25%2Frkyv-partial-eq-error-reproduction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oeb25%2Frkyv-partial-eq-error-reproduction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oeb25%2Frkyv-partial-eq-error-reproduction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oeb25","download_url":"https://codeload.github.com/oeb25/rkyv-partial-eq-error-reproduction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239414941,"owners_count":19634541,"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-07T04:12:22.526Z","updated_at":"2025-02-18T05:27:19.188Z","avatar_url":"https://github.com/oeb25.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproduction for [scylladb/scylla-rust-driver#838](https://github.com/scylladb/scylla-rust-driver/pull/838)\n\nRust automatically dereferences `\u0026\u0026str` when comparing against `\u0026str` as exemplified by the following example.\n\n```rs\nfn compiles() {\n    Some(\"\") == Some(\u0026\"\");\n}\n```\n\nHowever, adding any use of `rkyv` as in the following code:\n\n```rs\nuse rkyv::AlignedVec;\nfn does_not_compile() {\n    Some(\"\") == Some(\u0026\"\");\n}\n```\n\nResults in this error:\n\n```rs\nerror[E0277]: can't compare `Option\u003c\u0026str\u003e` with `Option\u003c\u0026\u0026str\u003e`\n --\u003e src/lib.rs:3:14\n  |\n3 |     Some(\"\") == Some(\u0026\"\");\n  |              ^^ no implementation for `Option\u003c\u0026str\u003e == Option\u003c\u0026\u0026str\u003e`\n  |\n  = help: the trait `PartialEq\u003cOption\u003c\u0026\u0026str\u003e\u003e` is not implemented for `Option\u003c\u0026str\u003e`\n  = help: the following other types implement trait `PartialEq\u003cRhs\u003e`:\n            \u003cOption\u003cBox\u003cU\u003e\u003e as PartialEq\u003cArchivedOptionBox\u003cT\u003e\u003e\u003e\n            \u003cOption\u003cT\u003e as PartialEq\u003e\n            \u003cOption\u003cU\u003e as PartialEq\u003cArchivedOption\u003cT\u003e\u003e\u003e\n```\n\n---\n\nThis repository contains two crates, `okay` and `errors`, which reproduce the above successful and failing compile respectively.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foeb25%2Frkyv-partial-eq-error-reproduction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foeb25%2Frkyv-partial-eq-error-reproduction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foeb25%2Frkyv-partial-eq-error-reproduction/lists"}