8000 When rust `edition` appears in both overrides and compiler-options, prefer the options by OfekShilon · Pull Request #6789 · compiler-explorer/compiler-explorer · GitHub
[go: up one dir, main page]

Skip to content

When rust edition appears in both overrides and compiler-options, prefer the options #6789

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

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

OfekShilon
Copy link
Member

Fix #5429, #6559

This particular fix was chosen -
(1) To make the behavior match future rust versions (as this suggestion was accepted),
(2) because of the pains reported here and here

Along the way made fixIncompatibleOptions and changeOptionsBasedOnOverrides operate on arguments by reference, just seem to make more sense.

@OfekShilon
Copy link
Member Author

I wish there was a way to alert the user from within fixIncompatibleOptions when two differing editions are specified.. but even rust itself decided to just select the latter flag, so I'm sorta comfortable sticking with it.

Copy link
Member
@junlarsen junlarsen left a comment

Choose a reason for hiding this comment

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

Seems reasonable

@OfekShilon OfekShilon merged commit 7f8d4eb into compiler-explorer:main Aug 24, 2024
11 checks passed
@partouf
Copy link
Member
partouf commented Sep 29, 2024

Required fixes

Note that arrays are passed by value in JS

Only Objects are passed by reference

@OfekShilon
Copy link
Member Author

Note that arrays are passed by value in JS

Only Objects are passed by reference

My bad. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Rust links that included the --edition flag broke with compiler overrides
3 participants
0