Title: Rust 2024 compatibility · Issue #114 · Cpp2Rust/cpp2rust · GitHub
Open Graph Title: Rust 2024 compatibility · Issue #114 · Cpp2Rust/cpp2rust
X Title: Rust 2024 compatibility · Issue #114 · Cpp2Rust/cpp2rust
Description: Rust 2024 doesn't allow references to static mut variables. Some tests fail: ******************** FAIL: cpp2rust :: unit/bool_condition_logical.cpp/unsafe (24 of 634) ******************** TEST 'cpp2rust :: unit/bool_condition_logical.cpp...
Open Graph Description: Rust 2024 doesn't allow references to static mut variables. Some tests fail: ******************** FAIL: cpp2rust :: unit/bool_condition_logical.cpp/unsafe (24 of 634) ******************** TEST 'cpp...
X Description: Rust 2024 doesn't allow references to static mut variables. Some tests fail: ******************** FAIL: cpp2rust :: unit/bool_condition_logical.cpp/unsafe (24 of 634) ******************** TEST ...
Opengraph URL: https://github.com/Cpp2Rust/cpp2rust/issues/114
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rust 2024 compatibility","articleBody":"Rust 2024 doesn't allow references to static mut variables. Some tests fail:\n```\n********************\nFAIL: cpp2rust :: unit/bool_condition_logical.cpp/unsafe (24 of 634)\n******************** TEST 'cpp2rust :: unit/bool_condition_logical.cpp/unsafe' FAILED ********************\nrustc failed\nerror: creating a mutable reference to mutable static\n --\u003e main.rs:28:5\n |\n28 | side_effect.prefix_inc();\n | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static\n |\n = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives\n = note: for more information, see \u003chttps://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html\u003e\n = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default\n\nerror: aborting due to 1 previous error\n```\n\nAfter fixing this, remove `-W static_mut_refs` from the `Cpp2RustTest.py` test driver.","author":{"url":"https://github.com/nunoplopes","@type":"Person","name":"nunoplopes"},"datePublished":"2026-05-17T17:19:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/114/cpp2rust/issues/114"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83ac2b3f-f851-87c7-45fd-1602cc0d3bf4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CF0:FBCC6:198074:22A045:6A4D312F |
| html-safe-nonce | 9c6602f041908f975fe5978fb0923d7b01d8172201a667bcbe0126394dbf1cd0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0YwOkZCQ0M2OjE5ODA3NDoyMkEwNDU6NkE0RDMxMkYiLCJ2aXNpdG9yX2lkIjoiOTAyODA0NjM0NDg3OTQxOTY5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2a59e70bdd3d6785d0b8384de02f2f83e3113323eb2b206e3bbc251ea0017ac3 |
| hovercard-subject-tag | issue:4464315377 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Cpp2Rust/cpp2rust/114/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c8b78bc95846c71de7bac3707864556c5a36b8fa586d070aeb09b55e5e44f74/Cpp2Rust/cpp2rust/issues/114 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c8b78bc95846c71de7bac3707864556c5a36b8fa586d070aeb09b55e5e44f74/Cpp2Rust/cpp2rust/issues/114 |
| og:image:alt | Rust 2024 doesn't allow references to static mut variables. Some tests fail: ******************** FAIL: cpp2rust :: unit/bool_condition_logical.cpp/unsafe (24 of 634) ******************** TEST 'cpp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nunoplopes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/Cpp2Rust/cpp2rust git https://github.com/Cpp2Rust/cpp2rust.git |
| octolytics-dimension-user_id | 197474191 |
| octolytics-dimension-user_login | Cpp2Rust |
| octolytics-dimension-repository_id | 1183095779 |
| octolytics-dimension-repository_nwo | Cpp2Rust/cpp2rust |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1183095779 |
| octolytics-dimension-repository_network_root_nwo | Cpp2Rust/cpp2rust |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width