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

Move around {Idx, IndexVec, IndexSlice} adjacent code #110539

Merged
merged 5 commits into from
Apr 24, 2023

Conversation

WaffleLapkin
Copy link
Member

@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative labels Apr 19, 2023
@rustbot
Copy link
Collaborator

rustbot commented Apr 19, 2023

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

This PR changes MIR

cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras

Some changes occurred to the core trait solver

cc @rust-lang/initiative-trait-system-refactor

Some changes occurred to the CTFE / Miri engine

cc @rust-lang/miri

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@WaffleLapkin WaffleLapkin removed A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) WG-trait-system-refactor The Rustc Trait System Refactor Initiative labels Apr 19, 2023
@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) WG-trait-system-refactor The Rustc Trait System Refactor Initiative labels Apr 19, 2023
@rustbot
Copy link
Collaborator

rustbot commented Apr 19, 2023

The Miri subtree was changed

cc @rust-lang/miri

Some changes occurred in src/librustdoc/clean/types.rs

cc @camelid

@WaffleLapkin WaffleLapkin changed the title Move around {Idx, IndexVec, IndexSlice} adjesent code Move around {Idx, IndexVec, IndexSlice} adjacent code Apr 21, 2023
@bors
Copy link
Contributor

bors commented Apr 22, 2023

☔ The latest upstream changes (presumably #109753) made this pull request unmergeable. Please resolve the merge conflicts.

@cjgillot
Copy link
Contributor

Great!
r=me after rebase

@WaffleLapkin
Copy link
Member Author

@bors r=cjgillot rollup

@bors
Copy link
Contributor

bors commented Apr 24, 2023

📌 Commit c0daff0 has been approved by cjgillot

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 24, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Apr 24, 2023
…, r=cjgillot

Move around `{Idx, IndexVec, IndexSlice}` adjacent code

r? `@scottmcm`
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 24, 2023
Rollup of 10 pull requests

Successful merges:

 - rust-lang#110480 (Add `known-bug` tests for 11 unsound issues)
 - rust-lang#110539 (Move around `{Idx, IndexVec, IndexSlice}` adjacent code)
 - rust-lang#110590 (Add some tests around (lack of) object safety of associated types and consts)
 - rust-lang#110602 (Ignore src/bootstrap formatting commit in .git-blame-ignore-revs)
 - rust-lang#110667 (pointer-auth-link-with-c: Fix cross compilation.)
 - rust-lang#110681 (drop few unused crates, gate libc under unix for rustc_codegen_ssa)
 - rust-lang#110685 (Some cleanups to DataflowConstProp)
 - rust-lang#110744 (bootstrap: update paths cargo-credential crate)
 - rust-lang#110750 (Add size asserts for MIR `SourceScopeData` & `VarDebugInfo`)
 - rust-lang#110760 (rustdoc: Add regression test for rust-lang#60522)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit cefb479 into rust-lang:master Apr 24, 2023
@rustbot rustbot added this to the 1.71.0 milestone Apr 24, 2023
if l < r {
return None;
},
}
}
Copy link
Member

Choose a reason for hiding this comment

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

FWIW all the formatting changes in this file are un-done again in rust-lang/miri#2856. It would be better to avoid formatting changes in Miri code as part of rustc PRs.

What happens here is that Miri has a diferent rustfmt.toml than rustc, so if you have format-on-save enabled then working on Miri inside the rustc tree will use incorrect formatting. I am not sure how to avoid that (IMO the rustc settings have pretty bad impact on code in Miri so I'd prefer to keep our rustfmt config).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, sorry. I know about this problem (it often happens with clippy...), but just didn't notice this time 😓

Copy link
Member

Choose a reason for hiding this comment

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

Sounds like a RA feature request to disable format-on-save for some subfolders...

Copy link
Member Author

Choose a reason for hiding this comment

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

I think if it could use the right config it would actually be better. I'll check with r-a people if this is possible.

@WaffleLapkin WaffleLapkin deleted the split_index_vec&slice branch April 26, 2023 13:54
@RalfJung
Copy link
Member

RalfJung commented Apr 26, 2023 via email

@WaffleLapkin
Copy link
Member Author

Maybe, I'm not sure... "r-a can execute rustfmt in such a way, that it sees the right config" and "rustfmt sees the right config by itself" both seem like plausible solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants