Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix const array issue #2684

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Fix const array issue #2684

merged 2 commits into from
Feb 19, 2024

Conversation

rsammelson
Copy link
Contributor

Fix #2683. Fairly hacky fix right now, but it doesn't seem to break any tests.

@tgross35
Copy link
Contributor

@rsammelson can you explain the test changes? The diff shows these files changed

 .../tests/constified-enum-module-overflow.rs  | 15 ++++++++++++-
 .../tests/issue-544-stylo-creduce-2.rs        |  2 +-
 .../libclang-9/ptr32-has-different-size.rs    |  6 +++---
 .../expectations/tests/struct_typedef_ns.rs

But none of those seem to have anything to do with const/mut pointers

@rsammelson
Copy link
Contributor Author

I'm not sure what caused that change, let me fix it.

@rsammelson
Copy link
Contributor Author

@tgross35 It should be fixed now.

@tgross35
Copy link
Contributor

Thanks. Could you add a test for the change you made?

@emilio
Copy link
Contributor

emilio commented Jan 12, 2024

The changes before are because of newer libclang versions. We should update CI and expectations to newer libclang IMO. But not in this patch of course.

@rsammelson
Copy link
Contributor Author

@tgross35 I don't understand why the tests are failing.

@tgross35
Copy link
Contributor

Yeah, the unused_imports don't seem like your fault. Maybe something in CI changed recently.

I'll test it out here #2763.

@tgross35
Copy link
Contributor

tgross35 commented Feb 19, 2024

Not sure where those errors appeared from but the changes in #2763 seem to fix them. @emilio might know more.

You don't have to do anything except rebase whenever that is merged.

@emilio
Copy link
Contributor

emilio commented Feb 19, 2024

Not sure where those errors appeared from but the changes in #2763 seem to fix them. @emilio might know more.

Yeah, we use rust stable so whenever a rust update introduce warnings we hit this. Should be fixed now tho.

Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks reasonable. Please rebase and we can get this merged :)

@emilio emilio enabled auto-merge (rebase) February 19, 2024 16:23
@emilio
Copy link
Contributor

emilio commented Feb 19, 2024

(I tried to do it automatically, let's see)

@emilio emilio merged commit b5a6813 into rust-lang:main Feb 19, 2024
33 checks passed
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.

Constant array treated as mutable pointer
3 participants