Cap lints at warn when cargo installing#6647
Cap lints at warn when cargo installing#6647dwijnand wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
r? @ehuss (rust_highfive has picked a reviewer for you, use r? to override) |
|
I've been pondering this, since I feel a little uncomfortable with how However, I can't think of a clearly better way to handle it. What do you think about, instead of adding a new mode, add |
|
I tried that approach first but there's a condition later that errors. Something about single crates? My use case passed if I torn out the condition, but I assumed it was there for a reason. I don't get CompileMode either. |
Are you maybe thinking of |
|
Yeah that sounds familiar. Ok, I'll try the other way. |
c9ce929 to
4fb36a4
Compare
|
@ehuss this is now a 1-line change. WDYT? |
|
Hm, I'm sorry, I was mistaken about something. With this change, warnings will be displayed for all dependencies (normally they are cap-lint allow). I was thinking that rustc would only honor the last Personally I would try to go with the simplest approach, at least for resolving the issue. I'm thinking maybe just adding a flag to |
I'm with you on that assumption. Sounds like a bug in rustc.
I'm generally anti "boolean blindness". Seeing as you describe it as "set cap lints allow" I'd just call it cap lints and represent allow as a value. I'll propose it and we can go back to boolean if not. |
4fb36a4 to
714bacf
Compare
|
☔ The latest upstream changes (presumably #6687) made this pull request unmergeable. Please resolve the merge conflicts. |
714bacf to
80608ae
Compare
80608ae to
f6d1d12
Compare
|
Just to be clear, this only affects |
Fixes #3453