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 E0574 #65308

Merged
merged 2 commits into from
Oct 16, 2019

Conversation

GuillaumeGomez
Copy link
Member

Part of #61137.

@rust-highfive
Copy link
Collaborator

Some changes occurred in diagnostic error codes

cc @GuillaumeGomez

@rust-highfive
Copy link
Collaborator

r? @matthewjasper

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 11, 2019
@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-11T13:24:37.7839592Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-10-11T13:24:37.7932170Z ##[command]git config gc.auto 0
2019-10-11T13:24:37.8036088Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-10-11T13:24:37.8352156Z ##[command]git config --get-all http.proxy
2019-10-11T13:24:37.8520008Z ##[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/65308/merge:refs/remotes/pull/65308/merge
---
2019-10-11T14:35:32.9841957Z .................................................................................................... 1600/9146
2019-10-11T14:35:41.4348535Z .................................................................................................... 1700/9146
2019-10-11T14:35:54.7796597Z .................i...............i.................................................................. 1800/9146
2019-10-11T14:36:03.1903146Z .................................................................................................... 1900/9146
2019-10-11T14:36:20.9740479Z ........iiiii....................................................................................... 2000/9146
2019-10-11T14:36:32.4568183Z .................................................................................................... 2200/9146
2019-10-11T14:36:35.8016737Z .................................................................................................... 2300/9146
2019-10-11T14:36:42.4063065Z .................................................................................................... 2400/9146
2019-10-11T14:36:49.6028218Z .................................................................................................... 2500/9146
---
2019-10-11T14:40:10.6212264Z .................................................................................................... 4700/9146
2019-10-11T14:40:18.9895219Z .i...............i.................................................................................. 4800/9146
2019-10-11T14:40:32.0939810Z .................................................................................................... 4900/9146
2019-10-11T14:40:38.7579243Z .................................................................................................... 5000/9146
2019-10-11T14:40:51.8065700Z ...............................................................................................ii.ii 5100/9146
2019-10-11T14:41:03.8570047Z .................................................................................................... 5300/9146
2019-10-11T14:41:15.1974558Z .................................................................................................... 5400/9146
2019-10-11T14:41:23.0394210Z .............................................................i...................................... 5500/9146
2019-10-11T14:41:31.3656133Z .................................................................................................... 5600/9146
2019-10-11T14:41:31.3656133Z .................................................................................................... 5600/9146
2019-10-11T14:41:39.8126909Z .................................................................................................... 5700/9146
2019-10-11T14:41:51.4396804Z ..........................................................ii...i..ii...........i.................... 5800/9146
2019-10-11T14:42:20.9148230Z .................................................................................................... 6000/9146
2019-10-11T14:42:31.2847175Z .................................................................................................... 6100/9146
2019-10-11T14:42:31.2847175Z .................................................................................................... 6100/9146
2019-10-11T14:42:45.2920175Z ................................................................i..ii............................... 6200/9146
2019-10-11T14:43:21.2838391Z .................................................................................................... 6400/9146
2019-10-11T14:43:23.7365627Z ........................i........................................................................... 6500/9146
2019-10-11T14:43:26.3909328Z .................................................................................................i.. 6600/9146
2019-10-11T14:43:29.6461400Z .................................................................................................... 6700/9146
---
2019-10-11T14:48:50.4166935Z  finished in 6.591
2019-10-11T14:48:50.4403209Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-11T14:48:50.6350136Z 
2019-10-11T14:48:50.6350484Z running 153 tests
2019-10-11T14:48:54.4699757Z i....iii......iii..iiii....i.............................i..i..................i....i............ii. 100/153
2019-10-11T14:48:56.8538605Z i.i..iiii..............i.........iii.i.......ii......
2019-10-11T14:48:56.8540834Z 
2019-10-11T14:48:56.8543478Z  finished in 6.414
2019-10-11T14:48:56.8754245Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-11T14:48:57.0593212Z 
---
2019-10-11T14:48:59.4058826Z  finished in 2.530
2019-10-11T14:48:59.4355246Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-11T14:48:59.6264824Z 
2019-10-11T14:48:59.6265135Z running 9 tests
2019-10-11T14:48:59.6266030Z iiiiiiiii
2019-10-11T14:48:59.6266474Z 
2019-10-11T14:48:59.6270653Z  finished in 0.190
2019-10-11T14:48:59.6464691Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-11T14:48:59.8348221Z 
---
2019-10-11T14:49:20.6579915Z  finished in 21.011
2019-10-11T14:49:20.6877701Z Check compiletest suite=debuginfo mode=debuginfo-gdb+lldb (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-11T14:49:20.8717973Z 
2019-10-11T14:49:20.8718387Z running 123 tests
2019-10-11T14:49:49.4282083Z .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....ii..........iiii..........i...ii...i.......ii. 100/123
2019-10-11T14:49:55.0186545Z i.i.i......iii.i.....ii
2019-10-11T14:49:55.0188501Z 
2019-10-11T14:49:55.0190125Z  finished in 34.331
2019-10-11T14:49:55.0204141Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-11T14:49:55.0207264Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2019-10-11T15:05:22.6261389Z 
2019-10-11T15:05:22.6262489Z    Doc-tests core
2019-10-11T15:05:28.5013255Z 
2019-10-11T15:05:28.5014272Z running 2405 tests
2019-10-11T15:05:41.9624818Z ......iiiii......................................................................................... 100/2405
2019-10-11T15:05:54.7693524Z ...............................................................................ii................... 200/2405
2019-10-11T15:06:25.6626371Z .i.................................................................................................. 400/2405
2019-10-11T15:06:25.6626371Z .i.................................................................................................. 400/2405
2019-10-11T15:06:38.3317412Z ................................................i..i.................iiii........................... 500/2405
2019-10-11T15:07:02.8401022Z .................................................................................................... 700/2405
2019-10-11T15:07:15.4304593Z .................................................................................................... 800/2405
2019-10-11T15:07:27.9568827Z .................................................................................................... 900/2405
2019-10-11T15:07:40.6120474Z .................................................................................................... 1000/2405
---
2019-10-11T15:12:42.0786638Z 
2019-10-11T15:12:42.0787848Z running 994 tests
2019-10-11T15:13:08.0699943Z i................................................................................................... 100/994
2019-10-11T15:13:22.1854817Z .................................................................................................... 200/994
2019-10-11T15:13:32.4453805Z ...................iii......i......i...i......i..................................................... 300/994
2019-10-11T15:13:39.3907917Z .................................................................................................... 400/994
2019-10-11T15:13:48.9482961Z .....................................i..i.................................ii........................ 500/994
2019-10-11T15:14:07.1720820Z .................................................................................................... 700/994
2019-10-11T15:14:07.1720820Z .................................................................................................... 700/994
2019-10-11T15:14:17.0610903Z ....................iiii............................................................................ 800/994
2019-10-11T15:14:34.9671755Z .................................................................................................... 900/994
2019-10-11T15:14:44.1892343Z ..........................................iiii................................................
2019-10-11T15:14:44.1896085Z 
2019-10-11T15:14:44.2035817Z  finished in 232.839
2019-10-11T15:14:44.2066309Z Testing term stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-11T15:14:44.4606680Z    Compiling term v0.0.0 (/checkout/src/libterm)
---
2019-10-11T15:33:38.3620195Z 
2019-10-11T15:33:38.3620241Z failures:
2019-10-11T15:33:38.3620268Z 
2019-10-11T15:33:38.3620927Z ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0574 (line 10258) stdout ----
2019-10-11T15:33:38.3621004Z error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>`
2019-10-11T15:33:38.3621349Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10265:23
2019-10-11T15:33:38.3621422Z   |
2019-10-11T15:33:38.3621467Z 9 |     Jak::Daxter { i } => {} // ok!
2019-10-11T15:33:38.3621519Z   |                       ^^ expected one of `.`, `;`, `?`, `}`, or an operator here
2019-10-11T15:33:38.3621569Z 
2019-10-11T15:33:38.3621763Z error: expected one of `.`, `?`, `{`, or an operator, found `}`
2019-10-11T15:33:38.3622076Z   --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10267:1
2019-10-11T15:33:38.3622188Z 8  | match  {
2019-10-11T15:33:38.3622410Z    | ----- while parsing this match expression
2019-10-11T15:33:38.3622410Z    | ----- while parsing this match expression
2019-10-11T15:33:38.3622461Z 9  |     Jak::Daxter { i } => {} // ok!
2019-10-11T15:33:38.3622522Z 10 | }
2019-10-11T15:33:38.3622746Z    |  - expected one of `.`, `?`, `{`, or an operator here
2019-10-11T15:33:38.3622851Z    | ^ unexpected token
2019-10-11T15:33:38.3622882Z 
2019-10-11T15:33:38.3622929Z error[E0433]: failed to resolve: use of undeclared type or module `Jax`
2019-10-11T15:33:38.3623194Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10263:11
2019-10-11T15:33:38.3623194Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10263:11
2019-10-11T15:33:38.3623261Z   |
2019-10-11T15:33:38.3623304Z 7 | let eco = Jax::Daxter { i: 1 };
2019-10-11T15:33:38.3623353Z   |           ^^^ use of undeclared type or module `Jax`
2019-10-11T15:33:38.3623452Z error: aborting due to 3 previous errors
2019-10-11T15:33:38.3623480Z 
2019-10-11T15:33:38.3623720Z For more information about this error, try `rustc --explain E0433`.
2019-10-11T15:33:38.3623938Z Couldn't compile the test.
2019-10-11T15:33:38.3623938Z Couldn't compile the test.
2019-10-11T15:33:38.3624361Z ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0574 (line 10245) stdout ----
2019-10-11T15:33:38.3624416Z error[E0308]: mismatched types
2019-10-11T15:33:38.3624774Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10252:35
2019-10-11T15:33:38.3624820Z   |
2019-10-11T15:33:38.3624957Z 9 | let sauron = Mordor::TheRing { x: () }; // ok!
2019-10-11T15:33:38.3625021Z   |                                   ^^ expected usize, found ()
2019-10-11T15:33:38.3625103Z   = note: expected type `usize`
2019-10-11T15:33:38.3625144Z              found type `()`
2019-10-11T15:33:38.3625187Z 
2019-10-11T15:33:38.3625227Z error: aborting due to previous error
---
2019-10-11T15:33:38.3627255Z == clock drift check ==
2019-10-11T15:33:38.3627301Z   local time: Fri Oct 11 15:33:38 UTC 2019
2019-10-11T15:33:38.4931341Z   network time: Fri, 11 Oct 2019 15:33:38 GMT
2019-10-11T15:33:38.4932174Z == end clock drift check ==
2019-10-11T15:33:38.9278081Z ##[error]Bash exited with code '1'.
2019-10-11T15:33:38.9329950Z ##[section]Starting: Checkout
2019-10-11T15:33:38.9333418Z ==============================================================================
2019-10-11T15:33:38.9333480Z Task         : Get sources
2019-10-11T15:33:38.9333572Z 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)

@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-12T12:54:49.8282072Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-10-12T12:54:49.8293708Z ##[command]git config gc.auto 0
2019-10-12T12:54:49.8319253Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-10-12T12:54:49.8370824Z ##[command]git config --get-all http.proxy
2019-10-12T12:54:49.8496716Z ##[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/65308/merge:refs/remotes/pull/65308/merge
---
2019-10-12T13:51:08.1953325Z .................................................................................................... 1600/9171
2019-10-12T13:51:14.3429642Z .................................................................................................... 1700/9171
2019-10-12T13:51:26.1719236Z ......................i...............i............................................................. 1800/9171
2019-10-12T13:51:33.0433166Z .................................................................................................... 1900/9171
2019-10-12T13:51:46.7870815Z .............iiiii.................................................................................. 2000/9171
2019-10-12T13:51:56.6682538Z .................................................................................................... 2200/9171
2019-10-12T13:51:59.0500342Z .................................................................................................... 2300/9171
2019-10-12T13:52:04.3291277Z .................................................................................................... 2400/9171
2019-10-12T13:52:24.8246739Z .................................................................................................... 2500/9171
---
2019-10-12T13:55:13.8303529Z ....................i...............i............................................................... 4800/9171
2019-10-12T13:55:24.8870795Z .................................................................................................... 4900/9171
2019-10-12T13:55:30.8305338Z .................................................................................................... 5000/9171
2019-10-12T13:55:40.9110050Z .................................................................................................... 5100/9171
2019-10-12T13:55:46.8609334Z ....................ii.ii........................................................................... 5200/9171
2019-10-12T13:55:56.9205210Z .................................................................................................... 5400/9171
2019-10-12T13:56:06.5156625Z ......................................................................................i............. 5500/9171
2019-10-12T13:56:14.1848487Z .................................................................................................... 5600/9171
2019-10-12T13:56:19.2634766Z .................................................................................................... 5700/9171
2019-10-12T13:56:19.2634766Z .................................................................................................... 5700/9171
2019-10-12T13:56:29.2524302Z ...................................................................................ii...i..ii....... 5800/9171
2019-10-12T13:56:53.3340778Z .................................................................................................... 6000/9171
2019-10-12T13:57:02.6735373Z .................................................................................................... 6100/9171
2019-10-12T13:57:02.6735373Z .................................................................................................... 6100/9171
2019-10-12T13:57:09.5452941Z .........................................................................................i..ii...... 6200/9171
2019-10-12T13:57:36.5584258Z .................................................................................................... 6400/9171
2019-10-12T13:57:40.6011089Z .................................................i.................................................. 6500/9171
2019-10-12T13:57:42.6024180Z .................................................................................................... 6600/9171
2019-10-12T13:57:44.9035176Z ......................i............................................................................. 6700/9171
---
2019-10-12T14:02:07.7811258Z  finished in 5.310
2019-10-12T14:02:07.7984793Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-12T14:02:07.9392587Z 
2019-10-12T14:02:07.9393134Z running 153 tests
2019-10-12T14:02:10.9304466Z i....iii......iii..iiii....i..............................i.i..................i....i............ii. 100/153
2019-10-12T14:02:12.8024644Z i.i...iiii.............i.........iii.i.......ii......
2019-10-12T14:02:12.8025273Z 
2019-10-12T14:02:12.8032409Z  finished in 5.004
2019-10-12T14:02:12.8207086Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-12T14:02:12.9668493Z 
---
2019-10-12T14:02:14.9497145Z  finished in 2.129
2019-10-12T14:02:14.9670316Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-12T14:02:15.1118191Z 
2019-10-12T14:02:15.1118438Z running 9 tests
2019-10-12T14:02:15.1119626Z iiiiiiiii
2019-10-12T14:02:15.1121580Z 
2019-10-12T14:02:15.1127357Z  finished in 0.145
2019-10-12T14:02:15.1304150Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-12T14:02:15.2770534Z 
---
2019-10-12T14:02:32.6242050Z  finished in 17.493
2019-10-12T14:02:32.6424321Z Check compiletest suite=debuginfo mode=debuginfo-gdb+lldb (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-12T14:02:32.7944447Z 
2019-10-12T14:02:32.7945076Z running 123 tests
2019-10-12T14:02:55.2965736Z .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....ii..........iiii..........i...ii...i.......ii. 100/123
2019-10-12T14:02:59.6681040Z i.i.i......iii.i.....ii
2019-10-12T14:02:59.6683909Z 
2019-10-12T14:02:59.6689897Z  finished in 27.026
2019-10-12T14:02:59.6698530Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-12T14:02:59.6703640Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2019-10-12T14:14:57.5161584Z 
2019-10-12T14:14:57.5162256Z    Doc-tests core
2019-10-12T14:15:02.2148416Z 
2019-10-12T14:15:02.2149445Z running 2405 tests
2019-10-12T14:15:12.9482274Z ......iiiii......................................................................................... 100/2405
2019-10-12T14:15:23.2674027Z ...............................................................................ii................... 200/2405
2019-10-12T14:15:47.4389521Z .i.................................................................................................. 400/2405
2019-10-12T14:15:47.4389521Z .i.................................................................................................. 400/2405
2019-10-12T14:15:57.4310678Z ................................................i..i.................iiii........................... 500/2405
2019-10-12T14:16:16.8940415Z .................................................................................................... 700/2405
2019-10-12T14:16:27.3797653Z .................................................................................................... 800/2405
2019-10-12T14:16:37.7276758Z .................................................................................................... 900/2405
2019-10-12T14:16:47.7589566Z .................................................................................................... 1000/2405
---
2019-10-12T14:20:35.1967424Z ...thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/mutex.rs:689:13
2019-10-12T14:20:35.1973124Z .thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
2019-10-12T14:20:35.1976881Z   left: `1`,
2019-10-12T14:20:35.1979404Z  right: `2`', src/libstd/sync/mutex.rs:653:13
2019-10-12T14:20:35.2020052Z ..........thread '<unnamed>' panicked at 'test panic in inner thread to poison RwLock', src/libstd/sync/rwlock.rs:791:13
2019-10-12T14:20:35.2029978Z ...thread '<unnamed>' panicked at 'test panic in inner thread to poison RwLock', src/libstd/sync/rwlock.rs:768:13
2019-10-12T14:20:35.2082549Z ..thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/rwlock.rs:705:13
2019-10-12T14:20:35.2083387Z .thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/rwlock.rs:.635:13
2019-10-12T14:20:35.2084717Z ...thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/rwlock.rs:611:13
2019-10-12T14:20:35.2085289Z thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/rwlock.rs:623:13
2019-10-12T14:20:37.2453311Z .........................thread '<unnamed>' panicked at 'What the answer to my lifetimes dilemma is?', src/libstd/sys_common/remutex.rs:233:13
2019-10-12T14:20:37.2487826Z ........................ 700/763
---
2019-10-12T14:20:44.4497506Z 
2019-10-12T14:20:44.4498996Z running 994 tests
2019-10-12T14:21:05.1547278Z i................................................................................................... 100/994
2019-10-12T14:21:16.4211457Z .................................................................................................... 200/994
2019-10-12T14:21:24.6969215Z ...................iii......i......i...i......i..................................................... 300/994
2019-10-12T14:21:30.3805656Z .................................................................................................... 400/994
2019-10-12T14:21:37.9808024Z .....................................i..i.................................ii........................ 500/994
2019-10-12T14:21:52.5685375Z .................................................................................................... 700/994
2019-10-12T14:21:52.5685375Z .................................................................................................... 700/994
2019-10-12T14:22:00.5794931Z ....................iiii............................................................................ 800/994
2019-10-12T14:22:15.4008728Z .................................................................................................... 900/994
2019-10-12T14:22:22.9689177Z ..........................................iiii................................................
2019-10-12T14:22:22.9690104Z 
2019-10-12T14:22:22.9744041Z  finished in 183.900
2019-10-12T14:22:22.9760933Z Testing term stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-12T14:22:23.1769667Z    Compiling term v0.0.0 (/checkout/src/libterm)
---
2019-10-12T14:37:04.9572686Z 
2019-10-12T14:37:04.9572719Z failures:
2019-10-12T14:37:04.9572739Z 
2019-10-12T14:37:04.9572967Z ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0574 (line 10278) stdout ----
2019-10-12T14:37:04.9573008Z warning: module `Mordor` should have a snake case name
2019-10-12T14:37:04.9573186Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10279:5
2019-10-12T14:37:04.9573236Z   |
2019-10-12T14:37:04.9573268Z 3 | mod Mordor {
2019-10-12T14:37:04.9573303Z   |     ^^^^^^ help: convert the identifier to snake case: `mordor`
2019-10-12T14:37:04.9573391Z   = note: `#[warn(non_snake_case)]` on by default
2019-10-12T14:37:04.9573414Z 
2019-10-12T14:37:04.9573414Z 
2019-10-12T14:37:04.9573447Z error[E0451]: field `x` of struct `main::Mordor::TheRing` is private
2019-10-12T14:37:04.9573653Z  --> /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md:10285:32
2019-10-12T14:37:04.9573687Z   |
2019-10-12T14:37:04.9573719Z 9 | let sauron = Mordor::TheRing { x: 1 }; // ok!
2019-10-12T14:37:04.9573772Z   |                                ^^^^ field `x` is private
2019-10-12T14:37:04.9573825Z error: aborting due to previous error
2019-10-12T14:37:04.9573845Z 
2019-10-12T14:37:04.9574032Z For more information about this error, try `rustc --explain E0451`.
2019-10-12T14:37:04.9574172Z Couldn't compile the test.
---
2019-10-12T14:37:04.9574873Z == clock drift check ==
2019-10-12T14:37:04.9574922Z   local time: Sat Oct 12 14:37:04 UTC 2019
2019-10-12T14:37:04.9574956Z   network time: Sat, 12 Oct 2019 14:37:04 GMT
2019-10-12T14:37:04.9574989Z == end clock drift check ==
2019-10-12T14:37:04.9628320Z ##[error]Bash exited with code '1'.
2019-10-12T14:37:04.9675340Z ##[section]Starting: Checkout
2019-10-12T14:37:04.9676694Z ==============================================================================
2019-10-12T14:37:04.9676865Z Task         : Get sources
2019-10-12T14:37:04.9676916Z 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)

src/librustc_resolve/error_codes.rs Outdated Show resolved Hide resolved
src/librustc_resolve/error_codes.rs Outdated Show resolved Hide resolved
@matthewjasper matthewjasper added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 13, 2019
@matthewjasper
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Oct 15, 2019

📌 Commit 9f392c4 has been approved by matthewjasper

@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 15, 2019
tmandry added a commit to tmandry/rust that referenced this pull request Oct 15, 2019
…-E0574, r=matthewjasper

Add long error explanation for E0574

Part of rust-lang#61137.
bors added a commit that referenced this pull request Oct 15, 2019
Rollup of 14 pull requests

Successful merges:

 - #64603 (Reducing spurious unused lifetime warnings.)
 - #64623 (Remove last uses of gensyms)
 - #65235 (don't assume we can *always* find a return type hint in async fn)
 - #65242 (Fix suggestion to constrain trait for method to be found)
 - #65265 (Cleanup librustc mir err codes)
 - #65293 (Optimize `try_expand_impl_trait_type`)
 - #65307 (Try fix incorrect "explicit lifetime name needed")
 - #65308 (Add long error explanation for E0574)
 - #65353 (save-analysis: Don't ICE when resolving qualified type paths in struct members)
 - #65389 (Return `false` from `needs_drop` for all zero-sized arrays.)
 - #65402 (Add troubleshooting section to PGO chapter in rustc book.)
 - #65425 (Optimize `BitIter`)
 - #65438 (Organize `never_type`  tests)
 - #65444 (Implement AsRef<[T]> for List<T>)

Failed merges:

 - #65390 (Add long error explanation for E0576)

r? @ghost
@bors bors merged commit 9f392c4 into rust-lang:master Oct 16, 2019
@GuillaumeGomez GuillaumeGomez deleted the long-err-explanation-E0574 branch October 16, 2019 08:22
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.

4 participants