Skip to content
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 long error explanation for E0578 #65471

Merged
merged 2 commits into from
Nov 1, 2019

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Oct 16, 2019

Part of #61137

r? @kinnison

Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comma comment, otherwise 👍

@@ -1661,6 +1661,30 @@ match eco {
```
"##,

E0578: r##"
A module cannot be found and therefore, the visibility cannot be determined.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comma here is odd. Either 'therefore' is an optional part of the sentence in which case it needs a comma before as well as after, or it's not optional and the comma is unnecessary.

e.g.

A module cannot be found and, therefore, the visibility cannot be determined.

vs.

A module cannot be found and therefore the visibility cannot be determined.

@rust-highfive
Copy link
Collaborator

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-16T11:31:50.0468546Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-10-16T11:31:50.0643794Z ##[command]git config gc.auto 0
2019-10-16T11:31:50.0727084Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-10-16T11:31:50.0776362Z ##[command]git config --get-all http.proxy
2019-10-16T11:31:50.0941759Z ##[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/65471/merge:refs/remotes/pull/65471/merge
---
2019-10-16T12:34:52.6003637Z .................................................................................................... 1600/9196
2019-10-16T12:34:58.0176154Z .................................................................................................... 1700/9196
2019-10-16T12:35:11.4378370Z .............................i...............i...................................................... 1800/9196
2019-10-16T12:35:19.1766083Z .................................................................................................... 1900/9196
2019-10-16T12:35:34.0767542Z ...................iiiii............................................................................ 2000/9196
2019-10-16T12:35:44.8408025Z .................................................................................................... 2200/9196
2019-10-16T12:35:48.0253452Z .................................................................................................... 2300/9196
2019-10-16T12:35:53.1921692Z .................................................................................................... 2400/9196
2019-10-16T12:36:15.7501126Z .................................................................................................... 2500/9196
---
2019-10-16T12:39:18.7482928Z ......................i...............i............................................................. 4800/9196
2019-10-16T12:39:30.8303684Z .................................................................................................... 4900/9196
2019-10-16T12:39:37.4843771Z .................................................................................................... 5000/9196
2019-10-16T12:39:48.4820555Z .................................................................................................... 5100/9196
2019-10-16T12:39:54.9940720Z ......................ii.ii......................................................................... 5200/9196
2019-10-16T12:40:05.9293698Z .................................................................................................... 5400/9196
2019-10-16T12:40:16.2918018Z ........................................................................................i........... 5500/9196
2019-10-16T12:40:24.8252012Z .................................................................................................... 5600/9196
2019-10-16T12:40:30.0528507Z .................................................................................................... 5700/9196
2019-10-16T12:40:30.0528507Z .................................................................................................... 5700/9196
2019-10-16T12:40:41.2796290Z .....................................................................................ii...i..ii..... 5800/9196
2019-10-16T12:41:08.7465416Z .................................................................................................... 6000/9196
2019-10-16T12:41:16.7227741Z .................................................................................................... 6100/9196
2019-10-16T12:41:21.6534149Z .................................................................................................... 6200/9196
2019-10-16T12:41:21.6534149Z .................................................................................................... 6200/9196
2019-10-16T12:41:36.1916697Z .......i..ii........................................................................................ 6300/9196
2019-10-16T12:41:56.4927766Z ...................................................................i................................ 6500/9196
2019-10-16T12:41:58.7779730Z .................................................................................................... 6600/9196
2019-10-16T12:42:01.4443017Z .........................................i.......................................................... 6700/9196
2019-10-16T12:42:05.5472452Z .................................................................................................... 6800/9196
---
2019-10-16T12:46:46.0027268Z  finished in 5.484
2019-10-16T12:46:46.0236616Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-16T12:46:46.1986089Z 
2019-10-16T12:46:46.2015099Z running 153 tests
2019-10-16T12:46:49.5627119Z i....iii......iii..iiii...i.............................i..i..................i....i...........ii.i. 100/153
2019-10-16T12:46:51.6218968Z i..iiii..............i.........iii.i.........ii......
2019-10-16T12:46:51.6219627Z 
2019-10-16T12:46:51.6219685Z  finished in 5.598
2019-10-16T12:46:51.6400252Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-16T12:46:51.8033246Z 
---
2019-10-16T12:46:53.9390552Z  finished in 2.299
2019-10-16T12:46:53.9603073Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-16T12:46:54.1190284Z 
2019-10-16T12:46:54.1193027Z running 9 tests
2019-10-16T12:46:54.1193800Z iiiiiiiii
2019-10-16T12:46:54.1194156Z 
2019-10-16T12:46:54.1196956Z  finished in 0.159
2019-10-16T12:46:54.1398978Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-16T12:46:54.3040825Z 
---
2019-10-16T12:47:12.7743410Z  finished in 18.634
2019-10-16T12:47:12.7953922Z Check compiletest suite=debuginfo mode=debuginfo-gdb+lldb (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-16T12:47:12.9606385Z 
2019-10-16T12:47:12.9606906Z running 123 tests
2019-10-16T12:47:39.0355280Z .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....ii..........iiii..........i...ii...i.......ii. 100/123
2019-10-16T12:47:44.0599651Z i.i.i......iii.i.....ii
2019-10-16T12:47:44.0602800Z 
2019-10-16T12:47:44.0603173Z  finished in 31.264
2019-10-16T12:47:44.0615011Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-16T12:47:44.0615549Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2019-10-16T13:01:12.6464817Z 
2019-10-16T13:01:12.6466299Z    Doc-tests core
2019-10-16T13:01:17.8152367Z 
2019-10-16T13:01:17.8153576Z running 2405 tests
2019-10-16T13:01:29.4843158Z ......iiiii......................................................................................... 100/2405
2019-10-16T13:01:40.6630061Z ...............................................................................ii................... 200/2405
2019-10-16T13:02:07.4670909Z .i.................................................................................................. 400/2405
2019-10-16T13:02:07.4670909Z .i.................................................................................................. 400/2405
2019-10-16T13:02:18.5530844Z ................................................i..i.................iiii........................... 500/2405
2019-10-16T13:02:39.7894215Z .................................................................................................... 700/2405
2019-10-16T13:02:50.7538060Z .................................................................................................... 800/2405
2019-10-16T13:03:01.5489256Z .................................................................................................... 900/2405
2019-10-16T13:03:12.9439413Z .................................................................................................... 1000/2405
---
2019-10-16T13:07:33.5895019Z 
2019-10-16T13:07:33.5900399Z running 994 tests
2019-10-16T13:07:56.4258523Z i................................................................................................... 100/994
2019-10-16T13:08:08.8605918Z .................................................................................................... 200/994
2019-10-16T13:08:17.7444937Z ...................iii......i......i...i......i..................................................... 300/994
2019-10-16T13:08:23.7401932Z .................................................................................................... 400/994
2019-10-16T13:08:31.9990340Z .....................................i..i.................................ii........................ 500/994
2019-10-16T13:08:47.7794203Z .................................................................................................... 700/994
2019-10-16T13:08:47.7794203Z .................................................................................................... 700/994
2019-10-16T13:08:56.3737790Z ....................iiii............................................................................ 800/994
2019-10-16T13:09:12.8284810Z .................................................................................................... 900/994
2019-10-16T13:09:20.8478850Z ..........................................iiii................................................
2019-10-16T13:09:20.8484263Z 
2019-10-16T13:09:20.8544328Z  finished in 204.106
2019-10-16T13:09:20.8564800Z Testing term stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-16T13:09:21.0911393Z    Compiling term v0.0.0 (/checkout/src/libterm)
---
2019-10-16T13:25:56.1531957Z 
2019-10-16T13:25:56.1532027Z failures:
2019-10-16T13:25:56.1532068Z 
2019-10-16T13:25:56.1532406Z ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0578 (line 10380) stdout ----
2019-10-16T13:25:56.1532492Z error[E0433]: failed to resolve: could not find `Sea` in `{{root}}`
2019-10-16T13:25:56.1532787Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10383:11
2019-10-16T13:25:56.1532840Z   |
2019-10-16T13:25:56.1532891Z 5 | pub (in ::Sea) struct Shark; // error!
2019-10-16T13:25:56.1532962Z   |           ^^^ could not find `Sea` in `{{root}}`
2019-10-16T13:25:56.1533046Z error: cannot find macro `foo` in this scope
2019-10-16T13:25:56.1533756Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10381:1
2019-10-16T13:25:56.1533823Z   |
2019-10-16T13:25:56.1533869Z 3 | foo!();
2019-10-16T13:25:56.1533869Z 3 | foo!();
2019-10-16T13:25:56.1533933Z   | ^^^
2019-10-16T13:25:56.1533966Z 
2019-10-16T13:25:56.1534014Z error: aborting due to 2 previous errors
2019-10-16T13:25:56.1534176Z 
2019-10-16T13:25:56.1534518Z For more information about this error, try `rustc --explain E0433`.
2019-10-16T13:25:56.1534599Z Some expected error codes were not found: ["E0578"]
2019-10-16T13:25:56.1534941Z ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0578 (line 10392) stdout ----
2019-10-16T13:25:56.1535006Z error[E0433]: failed to resolve: maybe a missing crate `Sea`?
2019-10-16T13:25:56.1535313Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10394:20
2019-10-16T13:25:56.1535366Z   |
2019-10-16T13:25:56.1535415Z 4 |     pub (in crate::Sea) struct Shark;
2019-10-16T13:25:56.1535487Z   |                    ^^^ maybe a missing crate `Sea`?
2019-10-16T13:25:56.1535580Z error: aborting due to previous error
2019-10-16T13:25:56.1535612Z 
2019-10-16T13:25:56.1535902Z For more information about this error, try `rustc --explain E0433`.
2019-10-16T13:25:56.1536131Z Couldn't compile the test.
---
2019-10-16T13:25:56.1540892Z == clock drift check ==
2019-10-16T13:25:56.1541107Z   local time: Wed Oct 16 13:25:56 UTC 2019
2019-10-16T13:25:56.3947668Z   network time: Wed, 16 Oct 2019 13:25:56 GMT
2019-10-16T13:25:56.3947835Z == end clock drift check ==
2019-10-16T13:25:57.1542463Z ##[error]Bash exited with code '1'.
2019-10-16T13:25:57.1592040Z ##[section]Starting: Checkout
2019-10-16T13:25:57.1594454Z ==============================================================================
2019-10-16T13:25:57.1594522Z Task         : Get sources
2019-10-16T13:25:57.1594593Z 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)

@JohnTitor JohnTitor added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Oct 16, 2019
@GuillaumeGomez GuillaumeGomez force-pushed the long-err-explanation-E0578 branch from 683b378 to f76e1f8 Compare October 17, 2019 08:19
Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@GuillaumeGomez
Copy link
Member Author

@bors: r=kinnison,Dylan-DPC

@bors
Copy link
Contributor

bors commented Oct 17, 2019

📌 Commit ee4db41ece73eeedbb6d9205c6a4ba16608f36e2 has been approved by kinnison,Dylan-DPC

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 17, 2019
@Dylan-DPC-zz
Copy link

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Oct 17, 2019

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Oct 17, 2019

📌 Commit ee4db41ece73eeedbb6d9205c6a4ba16608f36e2 has been approved by Dylan-DPC

bors added a commit that referenced this pull request Oct 18, 2019
Rollup of 17 pull requests

Successful merges:

 - #65016 (Always inline `mem::{size_of,align_of}` in debug builds)
 - #65197 (Prepare `MutVisitor`s to handle interned projections)
 - #65201 (Disable Go and OCaml bindings when building LLVM)
 - #65364 (Collect occurrences of empty blocks for mismatched braces diagnostic)
 - #65417 (Add more coherence tests)
 - #65434 (Add long error explanation for E0577)
 - #65455 (Avoid unnecessary `TokenTree` to `TokenStream` conversions)
 - #65472 (Use a sharded dep node to dep node index map)
 - #65480 (Speed up `LexicalResolve::expansion()`)
 - #65496 (properly document panics in div_euclid and rem_euclid)
 - #65508 (add option to ping llvm ice-breakers to triagebot)
 - #65511 (save-analysis: Nest tables when processing impl block definitions)
 - #65513 (reorder fmt docs for more clarity)
 - #65532 (doc: make BitSet intro more short)
 - #65540 (show up some extra info when t!() fails)
 - #65549 (Fix left/right shift typo in wrapping rotate docs)
 - #65552 (Clarify diagnostics when using `~` as a unary op)

Failed merges:

 - #65471 (Add long error explanation for E0578)

r? @ghost
bors added a commit that referenced this pull request Oct 19, 2019
Rollup of 19 pull requests

Successful merges:

 - #65016 (Always inline `mem::{size_of,align_of}` in debug builds)
 - #65197 (Prepare `MutVisitor`s to handle interned projections)
 - #65201 (Disable Go and OCaml bindings when building LLVM)
 - #65334 (Add long error explanation for E0575)
 - #65364 (Collect occurrences of empty blocks for mismatched braces diagnostic)
 - #65455 (Avoid unnecessary `TokenTree` to `TokenStream` conversions)
 - #65472 (Use a sharded dep node to dep node index map)
 - #65480 (Speed up `LexicalResolve::expansion()`)
 - #65493 (Add long error explanation for E0584)
 - #65496 (properly document panics in div_euclid and rem_euclid)
 - #65498 (Plugins deprecation: don’t suggest simply removing the attribute)
 - #65508 (add option to ping llvm ice-breakers to triagebot)
 - #65511 (save-analysis: Nest tables when processing impl block definitions)
 - #65513 (reorder fmt docs for more clarity)
 - #65532 (doc: make BitSet intro more short)
 - #65535 (rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct.)
 - #65540 (show up some extra info when t!() fails)
 - #65549 (Fix left/right shift typo in wrapping rotate docs)
 - #65552 (Clarify diagnostics when using `~` as a unary op)

Failed merges:

 - #65390 (Add long error explanation for E0576)
 - #65434 (Add long error explanation for E0577)
 - #65471 (Add long error explanation for E0578)

r? @ghost
@bors
Copy link
Contributor

bors commented Oct 19, 2019

☔ The latest upstream changes (presumably #65570) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 19, 2019
@bors bors added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Oct 19, 2019
@bors
Copy link
Contributor

bors commented Oct 21, 2019

🔒 Merge conflict

This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again.

How do I rebase?

Assuming self is your fork and upstream is this repository, you can resolve the conflict following these steps:

  1. git checkout long-err-explanation-E0578 (switch to your branch)
  2. git fetch upstream master (retrieve the latest master)
  3. git rebase upstream/master -p (rebase on top of it)
  4. Follow the on-screen instruction to resolve conflicts (check git status if you got lost).
  5. git push self long-err-explanation-E0578 --force-with-lease (update this PR)

You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial.

Please avoid the "Resolve conflicts" button on GitHub. It uses git merge instead of git rebase which makes the PR commit history more difficult to read.

Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Cargo.lock conflict is handled during merge and rebase. This is normal, and you should still perform step 5 to update this PR.

Error message
Auto-merging src/librustc_resolve/error_codes.rs
CONFLICT (content): Merge conflict in src/librustc_resolve/error_codes.rs
Automatic merge failed; fix conflicts and then commit the result.

@Dylan-DPC-zz
Copy link

r? @Dylan-DPC

@GuillaumeGomez
Copy link
Member Author

Rebased.

@bors
Copy link
Contributor

bors commented Oct 25, 2019

☔ The latest upstream changes (presumably #65793) made this pull request unmergeable. Please resolve the merge conflicts.

@jonas-schievink
Copy link
Contributor

Part of #64903

That looks like the wrong issue

@GuillaumeGomez
Copy link
Member Author

@jonas-schievink Indeed, and that's not the first time even though it seemed like I entered the link correctly. This is rather strange... Anyway, updated the link.

@GuillaumeGomez GuillaumeGomez force-pushed the long-err-explanation-E0578 branch from 32d33fb to d000695 Compare October 29, 2019 12:50
@GuillaumeGomez
Copy link
Member Author

Rebased.

@bors
Copy link
Contributor

bors commented Oct 31, 2019

☔ The latest upstream changes (presumably #65990) made this pull request unmergeable. Please resolve the merge conflicts.

@GuillaumeGomez GuillaumeGomez force-pushed the long-err-explanation-E0578 branch from a6451aa to bfe9c9e Compare October 31, 2019 13:27
@GuillaumeGomez
Copy link
Member Author

Rebased (and let's hope it's the last time ><).

@Dylan-DPC-zz
Copy link

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Oct 31, 2019

📌 Commit bfe9c9e has been approved by Dylan-DPC

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 31, 2019
tmandry added a commit to tmandry/rust that referenced this pull request Oct 31, 2019
…-E0578, r=Dylan-DPC

Add long error explanation for E0578

Part of rust-lang#61137

r? @kinnison
bors added a commit that referenced this pull request Oct 31, 2019
Rollup of 14 pull requests

Successful merges:

 - #65112 (Add lint and tests for unnecessary parens around types)
 - #65459 (Fix `-Zunpretty=mir-cfg` to render multiple items)
 - #65471 (Add long error explanation for E0578)
 - #65857 (rustdoc: Resolve module-level doc references more locally)
 - #65914 (Use structured suggestion for unnecessary bounds in type aliases)
 - #65945 (Optimize long-linker-command-line test)
 - #65946 (Make `promote_consts` emit the errors when required promotion fails)
 - #65960 (doc: reword iter module example and mention other methods)
 - #65963 (update submodules to rust-lang)
 - #65972 (Fix libunwind build: Define __LITTLE_ENDIAN__ for LE targets)
 - #65977 (Fix incorrect diagnostics for expected type in E0271 with an associated type)
 - #65995 (Add error code E0743 for "C-variadic has been used on a non-foreign function")
 - #65997 (Fix outdated rustdoc of Once::init_locking function)
 - #66005 (vxWorks: remove code related unix socket)

Failed merges:

r? @ghost
tmandry added a commit to tmandry/rust that referenced this pull request Nov 1, 2019
…-E0578, r=Dylan-DPC

Add long error explanation for E0578

Part of rust-lang#61137

r? @kinnison
bors added a commit that referenced this pull request Nov 1, 2019
Rollup of 16 pull requests

Successful merges:

 - #65112 (Add lint and tests for unnecessary parens around types)
 - #65470 (Don't hide ICEs from previous incremental compiles)
 - #65471 (Add long error explanation for E0578)
 - #65857 (rustdoc: Resolve module-level doc references more locally)
 - #65902 (Make ItemContext available for better diagnositcs)
 - #65914 (Use structured suggestion for unnecessary bounds in type aliases)
 - #65946 (Make `promote_consts` emit the errors when required promotion fails)
 - #65960 (doc: reword iter module example and mention other methods)
 - #65963 (update submodules to rust-lang)
 - #65972 (Fix libunwind build: Define __LITTLE_ENDIAN__ for LE targets)
 - #65977 (Fix incorrect diagnostics for expected type in E0271 with an associated type)
 - #65995 (Add error code E0743 for "C-variadic has been used on a non-foreign function")
 - #65997 (Fix outdated rustdoc of Once::init_locking function)
 - #66002 (Stabilize float_to_from_bytes feature)
 - #66005 (vxWorks: remove code related unix socket)
 - #66018 (Revert PR 64324: dylibs export generics again (for now))

Failed merges:

r? @ghost
@bors bors merged commit bfe9c9e into rust-lang:master Nov 1, 2019
@GuillaumeGomez GuillaumeGomez deleted the long-err-explanation-E0578 branch November 1, 2019 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

7 participants