-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add --acyclic
option
#184
Add --acyclic
option
#184
Conversation
Re the rustfmt failure: I included a rustfmt.toml file to make it easier to diff tri_color.rs against https://github.com/rust-lang/rust/blob/925dc37313853f15dc21e42dc869b024fe488ef3/compiler/rustc_data_structures/src/graph/iterate/mod.rs. Is that silly? Should we just live with an ugly diff? I'm not sure what to make of "test with minimal versions" failure. |
Also, I added an "MIT OR Apache-2.0" license header to tri_color.rs. But based on my understanding of those licenses, that file could be licensed MPL. |
Ah. It's failing because of |
I'm going to hold back on trying to push further fixes. Please let me know how you would like to proceed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @smoelius, thank you for taking the time to work on this!
I included a rustfmt.toml file to make it easier to diff tri_color.rs […] Is that silly? Should we just live with an ugly diff?
I generally prefer to keep rustfmt
's config unchanged, but for the sake of diffing with upstream this seems like a reasonable exception to make.
I would however appreciate if you could move tri_color.rs
and rustfmt.toml
into a crate::graph::cycles
module to limit the effect of rustfmt.toml
to just crate::graph::cycles::tri_color
and not all of crate::graph::*
.
The .github/configs/skywalking-eyes.yml
file will also require an exception for the tri_color.rs
file:
paths:
- "src/**/*.rs"
paths-ignore: 👈
- "src/graph/cycles/tri_color.rs" 👈
For the minimal-versions failure you may want to add the following to Cargo.toml
at line 44:
# minimal versions
serde_repr = "0.1.12"
wyz = "0.5.1" 👈
Co-authored-by: Vincent Esche <138017+regexident@users.noreply.github.com>
That absolutely should have occurred to me. Please tell me what else you think needs to be adjusted. |
The only other thing that comes to my mind right now be adding a comment to |
Done. No worries if you think of something else. |
@regexident Are you still open to adding #18?
I tried to implement it in a way that was faithful to #18 (comment).
For example, here is the output from a run on cargo:
Nits are welcome, though.