-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rollup of 5 pull requests #116671
Rollup of 5 pull requests #116671
Commits on Oct 10, 2023
-
Rejig some top-level
rustc_hir_pretty
functions.There are several that are unused and can be removed. And there are some calls to `to_string`, which can be expressed more nicely as a `foo_to_string` call, and then `to_string` need not be `pub`. (This requires adding `pat_to_string`).
Configuration menu - View commit details
-
Copy full SHA for b6b11c7 - Browse repository at this point
Copy the full SHA b6b11c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51e8c80 - Browse repository at this point
Copy the full SHA 51e8c80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 664b185 - Browse repository at this point
Copy the full SHA 664b185View commit details -
- Remove an out-of-date comment. (There is no `PpAnn` implementation for `hir::Crate`.) - Remove a low-value comment. - And break a very long comment.
Configuration menu - View commit details
-
Copy full SHA for 494bc85 - Browse repository at this point
Copy the full SHA 494bc85View commit details -
Remove and inline `new_from_input`, because it has a single call site. And move `attrs` into the earlier `impl` block.
Configuration menu - View commit details
-
Copy full SHA for 7d35902 - Browse repository at this point
Copy the full SHA 7d35902View commit details
Commits on Oct 11, 2023
-
Handle several
#[diagnostic::on_unimplemented]
attributes correctlyThis PR fixes an issues where rustc would ignore subsequent `#[diagnostic::on_unimplemented]` attributes. The [corresponding RFC](https://rust-lang.github.io/rfcs/3368-diagnostic-attribute-namespace.html) specifies that the first matching instance of each option is used. Invalid attributes are linted and otherwise ignored.
Configuration menu - View commit details
-
Copy full SHA for 232aaeb - Browse repository at this point
Copy the full SHA 232aaebView commit details
Commits on Oct 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a7ae2a6 - Browse repository at this point
Copy the full SHA a7ae2a6View commit details -
coverage: Rename
next_bcb
to justbcb
This is the only BCB that `TraverseCoverageGraphWithLoops::next` works with, so calling it `next_bcb` just makes the code less clear.
Configuration menu - View commit details
-
Copy full SHA for d1920c5 - Browse repository at this point
Copy the full SHA d1920c5View commit details -
coverage: Use a
VecDeque
for loop traversal worklistsThe previous code was storing the worklist in a vector, and then selectively adding items to the start or end of the vector. That's a perfect use-case for a double-ended queue. This change also reveals that the existing code was a bit confused about which end of the worklist is the front or back. For now, items are always removed from the front of the queue (instead of the back), and code that adds items to the queue has been flipped, to preserve the existing behaviour.
Configuration menu - View commit details
-
Copy full SHA for ea3fb7b - Browse repository at this point
Copy the full SHA ea3fb7bView commit details -
coverage: Store a graph reference in the graph traversal struct
Having to keep passing in a graph reference was a holdover from when the graph was partly mutated during traversal. As of rust-lang#114354 that is no longer necessary, so we can simplify the traversal code by storing a graph reference as a field in `TraverseCoverageGraphWithLoops`.
Configuration menu - View commit details
-
Copy full SHA for 15360b3 - Browse repository at this point
Copy the full SHA 15360b3View commit details -
coverage: Don't store loop backedges in the traversal context
As long as we store the loop header BCB, we can look up its incoming loop backedges as needed.
Configuration menu - View commit details
-
Copy full SHA for 59f4f1c - Browse repository at this point
Copy the full SHA 59f4f1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d99ab97 - Browse repository at this point
Copy the full SHA d99ab97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8309097 - Browse repository at this point
Copy the full SHA 8309097View commit details -
Rollup merge of rust-lang#116593 - tgross35:no-jump-tables-docs, r=co…
…mpiler-errors Add unstable book page for the no-jump-tables codegen option See tracking issue: rust-lang#116592
Configuration menu - View commit details
-
Copy full SHA for 54c528e - Browse repository at this point
Copy the full SHA 54c528eView commit details -
Rollup merge of rust-lang#116625 - nnethercote:rustc_hir_pretty, r=fe…
…e1-dead `rustc_hir_pretty` cleanups Just some improvements I found while looking through this code. r? ``@fee1-dead``
Configuration menu - View commit details
-
Copy full SHA for 4b1867a - Browse repository at this point
Copy the full SHA 4b1867aView commit details -
Rollup merge of rust-lang#116642 - weiznich:diagnostic_on_unimplement…
…ed_improvements, r=compiler-errors Handle several `#[diagnostic::on_unimplemented]` attributes correctly This PR fixes an issues where rustc would ignore subsequent `#[diagnostic::on_unimplemented]` attributes. The [corresponding RFC](https://rust-lang.github.io/rfcs/3368-diagnostic-attribute-namespace.html) specifies that the first matching instance of each option is used. Invalid attributes are linted and otherwise ignored.
Configuration menu - View commit details
-
Copy full SHA for 5f90bee - Browse repository at this point
Copy the full SHA 5f90beeView commit details -
Rollup merge of rust-lang#116654 - Zalathar:reloop-traversal, r=oli-obk
coverage: Clarify loop-edge detection and graph traversal This is a collection of improvements to two semi-related pieces of code: - The code in `counters` that detects which graph edges don't exit a loop, and would therefore be good candidates to have their coverage computed as an expression rather than having a physical counter. - The code in `graph` that traverses the coverage BCB graph in a particular order, and tracks loops and loop edges along the way (which is relevant to the above). I was originally only planning to make the `graph` changes, but there was going to be a lot of indentation churn in `counters` anyway, and once I started looking I noticed a lot of opportunities for simplification. --- `@rustbot` label +A-code-coverage
Configuration menu - View commit details
-
Copy full SHA for 4832811 - Browse repository at this point
Copy the full SHA 4832811View commit details -
Rollup merge of rust-lang#116669 - ehuss:fix-platform-table, r=nikic
Fix mips platform support entries. The table entries for these MIPS entries were broken because they had the wrong number of columns (from rust-lang#116503). Additionally, there was a conflict with rust-lang#115238, which made the same change (but on different lines, so git didn't complain).
Configuration menu - View commit details
-
Copy full SHA for 6ccc521 - Browse repository at this point
Copy the full SHA 6ccc521View commit details