{"id":20089934,"url":"https://github.com/bugadani/xtensa-rust-bug-repro","last_synced_at":"2025-10-05T17:25:28.833Z","repository":{"id":77144922,"uuid":"433433187","full_name":"bugadani/xtensa-rust-bug-repro","owner":"bugadani","description":"Repro for https://github.com/esp-rs/rust/issues/95","archived":false,"fork":false,"pushed_at":"2021-11-30T13:03:35.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-13T02:43:17.633Z","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/bugadani.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":"2021-11-30T13:03:24.000Z","updated_at":"2021-11-30T13:03:38.000Z","dependencies_parsed_at":"2023-09-04T07:42:27.671Z","dependency_job_id":null,"html_url":"https://github.com/bugadani/xtensa-rust-bug-repro","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/bugadani%2Fxtensa-rust-bug-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugadani%2Fxtensa-rust-bug-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugadani%2Fxtensa-rust-bug-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugadani%2Fxtensa-rust-bug-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugadani","download_url":"https://codeload.github.com/bugadani/xtensa-rust-bug-repro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241525419,"owners_count":19976708,"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-13T16:20:47.060Z","updated_at":"2025-10-05T17:25:23.813Z","avatar_url":"https://github.com/bugadani.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository contains a reproduction for [this issue](https://github.com/esp-rs/rust/issues/95)\n\n# Instructions\nbuild using:\n\n`cargo +esp rustc --target=xtensa-esp32-espidf -Z build-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort`\n\nExpected output: project compiles fine.\nActual output:\n\n```\n❯ cargo +esp rustc --target=xtensa-esp32-espidf -Z build-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort \n   Compiling foolib v0.1.0 (C:\\_OpenSource\\idftest\\foolib)\nLLVM ERROR: Not supported instr: \u003cMCInst 271 \u003cMCOperand Reg:42\u003e\u003e\nerror: could not compile `foolib`\n```\n\n## Additional information:\n - Offending code needs to be in foolib. Moving it to `src/lib.rs` results in a successful build.\n - Issue doesn't reproduce using `opt-level=\"z\"`\n - Placing `#[inline(never)]` on `Enum::foo` results in a successful build.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugadani%2Fxtensa-rust-bug-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugadani%2Fxtensa-rust-bug-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugadani%2Fxtensa-rust-bug-repro/lists"}