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

Rustup #6789

Merged
merged 15 commits into from
Feb 25, 2021
Merged

Rustup #6789

merged 15 commits into from
Feb 25, 2021

Conversation

flip1995
Copy link
Member

r? @ghost

changelog: None

flip1995 and others added 15 commits February 11, 2021 15:04
directly expose copy and copy_nonoverlapping intrinsics

This effectively un-does rust-lang/rust#57997. That should help with `ptr::read` codegen in debug builds (and any other of these low-level functions that bottoms out at `copy`/`copy_nonoverlapping`), where the wrapper function will not get inlined. See the discussion in rust-lang/rust#80290 and rust-lang/rust#81163.

Cc `@bjorn3` `@therealprof`
Items are guaranteed to be HIR owner.
Update Clippy

Biweekly Clippy update

r? `@Manishearth`
Also remove `ast::Mod` which is mostly redundant now
Replace if-let and while-let with `if let` and `while let`

This pull request replaces if-let and while-let with `if let` and `while let`.

closes rust-lang/rust#82205
ast: Keep expansion status for out-of-line module items

I.e. whether a module `mod foo;` is already loaded from a file or not.
This is a pre-requisite to correctly treating inner attributes on such modules (rust-lang/rust#81661).

With this change AST structures for `mod` items diverge even more for AST structure for the crate root, which previously used `ast::Mod`.
Therefore this PR removes `ast::Mod` from `ast::Crate` in the first commit, these two things are sufficiently different from each other, at least at syntactic level.
Customization points for visiting a "`mod` item or crate root" were also removed from AST visitors (`fn visit_mod`).
`ast::Mod` itself was refactored away in the second commit in favor of `ItemKind::Mod(Unsafe, ModKind)`.
@flip1995
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented Feb 25, 2021

📌 Commit 8f8c7c2 has been approved by flip1995

@bors
Copy link
Contributor

bors commented Feb 25, 2021

⌛ Testing commit 8f8c7c2 with merge 928e72d...

@bors
Copy link
Contributor

bors commented Feb 25, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 928e72d to master...

@bors bors merged commit 928e72d into rust-lang:master Feb 25, 2021
@flip1995 flip1995 deleted the rustup branch February 25, 2021 10:10
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.

7 participants