Skip to content

Rustup to rustc 1.61.0-nightly (4b043faba 2022-02-24) #130

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 11 commits into from
Feb 25, 2022

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Feb 25, 2022

Please don't squash this PR when merging.

cynecx and others added 11 commits February 6, 2022 20:23
Ensure that queries only return Copy types.

This should pervent the perf footgun of returning a result with an expensive `Clone` impl (like a `Vec` of a hash map).

I went for the stupid solution of allocating on an arena everything that was not `Copy`. Some query results could be made Copy easily, but I did not really investigate.
All paths to an ArchiveBuilder::build call update_symbols first.
Partially move cg_ssa towards using a single builder

Not all codegen backends can handle hopping between blocks well. For example Cranelift requires blocks to be terminated before switching to building a new block. Rust-gpu requires a `RefCell` to allow hopping between blocks and cg_gcc currently has a buggy implementation of hopping between blocks. This PR reduces the amount of cases where cg_ssa switches between blocks before they are finished and mostly fixes the block hopping in cg_gcc. (~~only `scalar_to_backend` doesn't handle it correctly yet in cg_gcc~~ fixed that one.)

`@antoyo` please review the cg_gcc changes.
@bjorn3
Copy link
Member Author

bjorn3 commented Feb 25, 2022

The only new test failure is ui/attributes/main-removed-2/main.rs which is a newly introduced tests that uses a proc macro.

@antoyo antoyo merged commit ddbbded into rust-lang:master Feb 25, 2022
@antoyo
Copy link
Contributor

antoyo commented Feb 25, 2022

Thanks a lot!

@bjorn3 bjorn3 deleted the rustup branch February 25, 2022 14:14
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.

6 participants