-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #42922
Rollup of 5 pull requests #42922
Conversation
frewsxcv
commented
Jun 27, 2017
- Successful merges: Create more error codes #42519, change binding name of for loop lowering to appease clippy #42871, only set "overruled by outer forbid" once for lint groups, by group name #42874, Reword OsStr docs to clarify that utf8 may contain nulls #42905, compiletest: show details why GDB failed to execute. #42917
- Failed merges:
With the latest change to for loop lowering, a `_next` binding was introduced. Unfortunately, this disturbs clippy's `used_underscore_binding` lint. This commit just renames the binding to `__next` so clippy will be happy. It should have no other effect.
Long ago, in the before-time, the find_lint method was created with the unused_variables ("unused_variable" in the singular, as it was called at the time) attribute in anticipation of using the session and span in the handling of renamed lints (31b7d64), and indeed, the session and span came to be used in this method, while the unused_variables attribute remained (1ad1e2e). In modern times, the session and span are again no longer used (ca81d3d); it seems we can safely prune them from the method signature, for justice, and mercy.
Previously, conflicting forbid/allow attributes for a lint group would result in a separate "allow(L) overruled by outer forbid(L)" error for every lint L in the group. This was needlessly and annoyingly verbose; we prefer to just have one error pointing out the conflicting attributes. Resolves rust-lang#42873.
…des, r=QuietMisdreavus Create more error codes Fixes rust-lang#31174. Part of rust-lang#42229. cc @Susurrus
…ielb1 change binding name of for loop lowering to appease clippy With the latest change to for loop lowering (rust-lang#42634), a `_next` binding was introduced. Unfortunately, this [disturbs](https://github.com/Manishearth/rust-clippy/issues/1846) clippy's `used_underscore_binding` lint. This commit just renames the binding to `__next` so clippy will be happy. It should have no other effect.
…bid, r=nikomatsakis only set "overruled by outer forbid" once for lint groups, by group name Previously, conflicting forbid/allow attributes for a lint group would result in a separate "allow(L) overruled by outer forbid(L)" error for every lint L in the group. This was needlessly and annoyingly verbose; we prefer to just have one error pointing out the conflicting attributes. (Also, while we're touching context.rs, clean up some unused arguments.) Resolves rust-lang#42873.
…labnik Reword OsStr docs to clarify that utf8 may contain nulls The use of the word "but" in the OsStr docs implies (at least to me) that valid UTF-8 does not contain null bytes. Using "which" instead makes it clear that valid UTF-8 may contain null bytes.
…Simulacrum compiletest: show details why GDB failed to execute. Help finding reasons of spurious errors due to GDB failing to run (rust-lang#42693).
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @arielb1 (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@bors r+ p=10 |
📌 Commit d7a5508 has been approved by |
☀️ Test successful - status-appveyor, status-travis |