-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Fix all non-bug lints. Switch to let
statements.
#56956
Conversation
I'm embarrassed to admit I can't find where those unknown origin globals are coming from. If you can point out their source I'll update those docs. |
Ah, right after submit I found it. Unique DOM ids are automatically added to window. |
☔ The latest upstream changes (presumably #57108) made this pull request unmergeable. Please resolve the merge conflicts. |
@JohnHeitmann Please avoid merge commits; we'd prefer rebasing instead. :) |
fa906e9
to
95d6298
Compare
Sorry about that. I force-pushed a clean rebase. I kept the two separate commits to keep the more interesting changes apart from the search and replace change. |
☔ The latest upstream changes (presumably #57006) made this pull request unmergeable. Please resolve the merge conflicts. |
This change fixes all non-bug lints. A few lint rules are tweaked, and a few code lines are tweaked (almost all dead code elimination). Also, update the rustdoc-js tester in anticipation of let/const statements.
2900a94
to
2878ab8
Compare
cc @GuillaumeGomez for changes to JS Do we run eslint in CI? Is it particularly time-intensive? @rust-lang/infra Would it be possible to slot it into one of our existing builders? |
Note: https://caniuse.com/#search=let
I can't find anything about |
While it runs fast, eslint is a node app. Another thread made it sound like node was a challenging dependency to impose upon some distros, so I assumed this would be a best-effort tool used by humans. If node is ok in the build after all I could take a look at adding this to CI. |
We already depend on nodejs to run the |
This is my plan for moving this forward. Please steer me if this looks like the wrong direction:
|
If you need to run a specific travis instance on your PR without trying to merge it, you can edit the travis.yml file to run a specific builder on pull requests as well instead of just the "auto" branch. (I'd recommend also renaming the PR here to add "WIP" to it so bors doesn't accidentally merge the travis configuration change.) |
…elative to method names.
Remove the leak-check and its associated machinery. Replace with making the solver aware of universes.
Amazingly, this scenario was not tested for trait matching.
This is the pattern we no longer accept.
they are subsumed by `hr-subtype/hr-subtype.rs` and other tests
In NLL, ReVid is all there is, but I might want to repurpose.
In particular, when we want to indicate that there is a connection between the self type and the other types.
Still not great, but good enough to land this PR.
i_e is not defined, so in some cases this block cannot work. Furthermore, the toggle-wrapper is added after this block runs, so the hasClass(toggle-wrapper) check never seems to run. This appears to be dead code.
I just did something horribly wrong in my git workflow on this branch and I'm not confident I can back it out without tagging more unrelated issues. Closing this out to start from a fresh branch. |
After these changes there is only one error report remaining from the linter, and that appears to be a real bug.
The first commit has all the non-trivial changes. The second is a mechanical s/var/let/.
cc: #51735