Skip to content

Remove a loop which runs exactly once #65827

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

Merged
merged 1 commit into from
Nov 3, 2019
Merged

Remove a loop which runs exactly once #65827

merged 1 commit into from
Nov 3, 2019

Conversation

AnthonyMikh
Copy link
Contributor

@AnthonyMikh AnthonyMikh commented Oct 25, 2019

Though the code seems to work properly, it is worth removing the loop entirely in order to not confuse the reader.

r? @estebank

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 25, 2019
@rust-highfive
Copy link
Contributor

The job x86_64-gnu-llvm-6.0 of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-10-25T19:16:08.1958895Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-10-25T19:16:08.2146464Z ##[command]git config gc.auto 0
2019-10-25T19:16:08.2222725Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-10-25T19:16:08.2298228Z ##[command]git config --get-all http.proxy
2019-10-25T19:16:08.2442445Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/65827/merge:refs/remotes/pull/65827/merge
---
2019-10-25T19:22:25.8915899Z    Compiling serde_json v1.0.40
2019-10-25T19:22:27.6303156Z    Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
2019-10-25T19:22:38.9407364Z     Finished release [optimized] target(s) in 1m 27s
2019-10-25T19:22:38.9485451Z tidy check
2019-10-25T19:22:39.3909079Z tidy error: /checkout/src/librustc_errors/emitter.rs:1821: line longer than 100 chars
2019-10-25T19:22:41.1837240Z some tidy checks failed
2019-10-25T19:22:41.1837365Z Found 484 error codes
2019-10-25T19:22:41.1837444Z Found 0 error codes with no tests
2019-10-25T19:22:41.1838112Z Done!
2019-10-25T19:22:41.1838112Z Done!
2019-10-25T19:22:41.1838149Z 
2019-10-25T19:22:41.1838174Z 
2019-10-25T19:22:41.1839079Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor"
2019-10-25T19:22:41.1839182Z 
2019-10-25T19:22:41.1839227Z 
2019-10-25T19:22:41.1842432Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
2019-10-25T19:22:41.1842919Z Build completed unsuccessfully in 0:01:31
2019-10-25T19:22:41.1842919Z Build completed unsuccessfully in 0:01:31
2019-10-25T19:22:41.1899622Z == clock drift check ==
2019-10-25T19:22:41.1919365Z   local time: Fri Oct 25 19:22:41 UTC 2019
2019-10-25T19:22:41.3276932Z   network time: Fri, 25 Oct 2019 19:22:41 GMT
2019-10-25T19:22:41.3281346Z == end clock drift check ==
2019-10-25T19:22:42.6618293Z 
2019-10-25T19:22:42.6718767Z ##[error]Bash exited with code '1'.
2019-10-25T19:22:42.6753295Z ##[section]Starting: Checkout
2019-10-25T19:22:42.6754992Z ==============================================================================
2019-10-25T19:22:42.6755050Z Task         : Get sources
2019-10-25T19:22:42.6755118Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@estebank
Copy link
Contributor

r=me after making the line shorten than 100 chars to keep tidy happy.

@Mark-Simulacrum
Copy link
Member

Can you squash the commits into just one?

@JohnCSimon
Copy link
Member

Ping from triage
@estebank this looks like it's ready for merge
@Mark-Simulacrum @AnthonyMikh
Thanks.

@estebank
Copy link
Contributor

estebank commented Nov 2, 2019

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 2, 2019

📌 Commit 159d8a4 has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 2, 2019
@bors
Copy link
Collaborator

bors commented Nov 3, 2019

⌛ Testing commit 159d8a4 with merge 8b07292...

bors added a commit that referenced this pull request Nov 3, 2019
Remove a loop which runs exactly once

Though the code seems to work properly, it is worth removing the loop entirely in order to not confuse the reader.

r? @estebank
@bors
Copy link
Collaborator

bors commented Nov 3, 2019

☀️ Test successful - checks-azure
Approved by: estebank
Pushing 8b07292 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 3, 2019
@bors bors merged commit 159d8a4 into rust-lang:master Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants