Move the HIR CFG to rustc_ast_borrowck#64231
Merged
bors merged 1 commit intorust-lang:masterfrom Sep 7, 2019
Merged
Conversation
No new code should be using it.
Contributor
|
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
Contributor
Collaborator
|
📌 Commit 10f46b6 has been approved by |
Centril
added a commit
to Centril/rust
that referenced
this pull request
Sep 7, 2019
Move the HIR CFG to `rustc_ast_borrowck` No new code should be using it.
bors
added a commit
that referenced
this pull request
Sep 7, 2019
Rollup of 10 pull requests Successful merges: - #63919 (Use hygiene for AST passes) - #63927 (Filter linkcheck spurious failure) - #64149 (rustc_codegen_llvm: give names to non-alloca variable values.) - #64192 (Bail out when encountering likely missing turbofish in parser) - #64231 (Move the HIR CFG to `rustc_ast_borrowck`) - #64233 (Correct pluralisation of various diagnostic messages) - #64236 (reduce visibility) - #64240 (Include compiler-rt in the source tarball) - #64241 ([doc] Added more prereqs and note about default directory) - #64243 (Move injection of attributes from command line to `libsyntax_ext`) Failed merges: r? @ghost
Closed
Contributor
|
So...how do we access |
Contributor
|
Probably just add % cargo check --all --all-targets --
Compiling clippy-mini-macro-test v0.2.0 (/home/lzutao/forked/rust/clippy/mini-macro)
Compiling clippy_lints v0.0.212 (/home/lzutao/forked/rust/clippy/clippy_lints)
error[E0616]: field `graph` of struct `rustc_ast_borrowck::cfg::CFG` is private
--> clippy_lints/src/cognitive_complexity.rs:51:17
|
51 | let n = cfg.graph.len_nodes() as u64;
| ^^^^^^^^^
error[E0616]: field `graph` of struct `rustc_ast_borrowck::cfg::CFG` is private
--> clippy_lints/src/cognitive_complexity.rs:52:17
|
52 | let e = cfg.graph.len_edges() as u64;
| ^^^^^^^^^ |
Contributor
Author
|
I'll open a PR to remove the use of |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No new code should be using it.