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 PartialEq and PartialOrd for NonZeroInt to Int #70855

Closed
wants to merge 5 commits into from

Conversation

Lucretiel
Copy link
Contributor

@Lucretiel Lucretiel commented Apr 6, 2020

Propose adding PartialEq and PartialOrd to the NonZeroInt types to compare to their inner types. Seems like a pretty obvious change, but I'm obviously open to any feedback or suggestions.

I'd also like to implement PartialEq<NonZeroInt> for Int, but I wasn't sure what the implications were for implementing traits on primitive types like that.

@rust-highfive
Copy link
Collaborator

The job mingw-check 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.
2020-04-06T20:24:52.6457995Z ========================== Starting Command Output ===========================
2020-04-06T20:24:52.6460705Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/299c897f-12de-47a8-a8a8-0aeca744daf6.sh
2020-04-06T20:24:52.6460979Z 
2020-04-06T20:24:52.6466619Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-06T20:24:52.6490404Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-06T20:24:52.6493950Z Task         : Get sources
2020-04-06T20:24:52.6494252Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-06T20:24:52.6495112Z Version      : 1.0.0
2020-04-06T20:24:52.6495294Z Author       : Microsoft
---
2020-04-06T20:24:53.6375647Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-06T20:24:53.6380954Z ##[command]git config gc.auto 0
2020-04-06T20:24:53.6384633Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-06T20:24:53.6387591Z ##[command]git config --get-all http.proxy
2020-04-06T20:24:53.6393968Z ##[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/70855/merge:refs/remotes/pull/70855/merge
---
2020-04-06T20:26:49.2795863Z  ---> 3fc1b512c57b
2020-04-06T20:26:49.2796129Z Step 6/7 : ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
2020-04-06T20:26:49.2796549Z  ---> Using cache
2020-04-06T20:26:49.2797674Z  ---> 5ee4295733f4
2020-04-06T20:26:49.2799010Z Step 7/7 : ENV SCRIPT python2.7 ../x.py test src/tools/expand-yaml-anchors &&            python2.7 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu &&            python2.7 ../x.py build --stage 0 src/tools/build-manifest &&            python2.7 ../x.py test --stage 0 src/tools/compiletest &&            python2.7 ../x.py test src/tools/tidy &&            /scripts/validate-toolstate.sh
2020-04-06T20:26:49.2800355Z  ---> 3d07a0fa42fe
2020-04-06T20:26:49.2813487Z Successfully built 3d07a0fa42fe
2020-04-06T20:26:49.2854045Z Successfully tagged rust-ci:latest
2020-04-06T20:26:49.3169879Z Built container sha256:3d07a0fa42feb5754fc13bb2f7010ebe13e4b8b8cdbebed0c75d8da320c8c8ad
2020-04-06T20:26:49.3169879Z Built container sha256:3d07a0fa42feb5754fc13bb2f7010ebe13e4b8b8cdbebed0c75d8da320c8c8ad
2020-04-06T20:26:49.3206577Z Looks like docker image is the same as before, not uploading
2020-04-06T20:26:57.5597156Z [CI_JOB_NAME=mingw-check]
2020-04-06T20:26:57.5834651Z [CI_JOB_NAME=mingw-check]
2020-04-06T20:26:57.5861885Z == clock drift check ==
2020-04-06T20:26:57.5871327Z   local time: Mon Apr  6 20:26:57 UTC 2020
2020-04-06T20:26:57.6814409Z   network time: Mon, 06 Apr 2020 20:26:57 GMT
2020-04-06T20:26:57.6840028Z Starting sccache server...
2020-04-06T20:26:57.7715861Z configure: processing command line
2020-04-06T20:26:57.7716306Z configure: 
2020-04-06T20:26:57.7717180Z configure: rust.parallel-compiler := True
---
2020-04-06T20:28:41.1701314Z     Checking core v0.0.0 (/checkout/src/libcore)
2020-04-06T20:28:43.8557308Z error[E0412]: cannot find type `Ordering` in this scope
2020-04-06T20:28:43.8557926Z    --> src/libcore/num/mod.rs:120:61
2020-04-06T20:28:43.8558357Z     |
2020-04-06T20:28:43.8558899Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:43.8559687Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:43.8561277Z 47  | |             doc_comment! {
2020-04-06T20:28:43.8561821Z ...   |
2020-04-06T20:28:43.8561821Z ...   |
2020-04-06T20:28:43.8562547Z 120 | |                 fn partial_cmp(&self, rhs: &$Int) -> Option<Ordering> {
2020-04-06T20:28:43.8564337Z ...   |
2020-04-06T20:28:43.8565048Z 129 | |     }
2020-04-06T20:28:43.8565811Z 130 | | }
2020-04-06T20:28:43.8566471Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:43.8566471Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:43.8567029Z 131 | 
2020-04-06T20:28:43.8567593Z 132 | / nonzero_integers! {
2020-04-06T20:28:43.8568349Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:43.8569508Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:43.8570500Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:43.8571523Z ...   |
2020-04-06T20:28:43.8572580Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:43.8574228Z     | |_- in this macro invocation
2020-04-06T20:28:43.8574796Z     |
2020-04-06T20:28:43.8575447Z help: possible candidates are found in other modules, you can import them into scope
2020-04-06T20:28:43.8576053Z     |
---
2020-04-06T20:28:43.8578900Z 
2020-04-06T20:28:47.3966520Z error[E0308]: mismatched types
2020-04-06T20:28:47.3967214Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.3967684Z     |
2020-04-06T20:28:47.3968325Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.3969247Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.3971466Z 47  | |             doc_comment! {
2020-04-06T20:28:47.3972132Z ...   |
2020-04-06T20:28:47.3972811Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.3973764Z     | |                               ^^^ expected `u8`, found `&u8`
2020-04-06T20:28:47.3973764Z     | |                               ^^^ expected `u8`, found `&u8`
2020-04-06T20:28:47.3974466Z ...   |
2020-04-06T20:28:47.3975103Z 129 | |     }
2020-04-06T20:28:47.3975779Z 130 | | }
2020-04-06T20:28:47.3976724Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.3977330Z 131 | 
2020-04-06T20:28:47.3977952Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.3978813Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.3980204Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.3981253Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.3982000Z ...   |
2020-04-06T20:28:47.3983283Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.3984816Z     | |_- in this macro invocation
2020-04-06T20:28:47.3985132Z 
2020-04-06T20:28:47.4050551Z error[E0308]: mismatched types
2020-04-06T20:28:47.4051216Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4051216Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4051753Z     |
2020-04-06T20:28:47.4054350Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4055721Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4057409Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4058085Z ...   |
2020-04-06T20:28:47.4058816Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4060207Z     | |                               ^^^ expected `u16`, found `&u16`
2020-04-06T20:28:47.4060207Z     | |                               ^^^ expected `u16`, found `&u16`
2020-04-06T20:28:47.4060919Z ...   |
2020-04-06T20:28:47.4061635Z 129 | |     }
2020-04-06T20:28:47.4062507Z 130 | | }
2020-04-06T20:28:47.4063302Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4063918Z 131 | 
2020-04-06T20:28:47.4064588Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4065451Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4066611Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4067624Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4068509Z ...   |
2020-04-06T20:28:47.4069393Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4071010Z     | |_- in this macro invocation
2020-04-06T20:28:47.4071353Z 
2020-04-06T20:28:47.4144947Z error[E0308]: mismatched types
2020-04-06T20:28:47.4145505Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4145505Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4145975Z     |
2020-04-06T20:28:47.4146557Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4147379Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4148783Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4149355Z ...   |
2020-04-06T20:28:47.4150142Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4151411Z     | |                               ^^^ expected `u32`, found `&u32`
2020-04-06T20:28:47.4151411Z     | |                               ^^^ expected `u32`, found `&u32`
2020-04-06T20:28:47.4152525Z ...   |
2020-04-06T20:28:47.4153704Z 129 | |     }
2020-04-06T20:28:47.4154604Z 130 | | }
2020-04-06T20:28:47.4155668Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4156260Z 131 | 
2020-04-06T20:28:47.4156898Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4157738Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4158889Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4160188Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4160975Z ...   |
2020-04-06T20:28:47.4161887Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4164278Z     | |_- in this macro invocation
2020-04-06T20:28:47.4164617Z 
2020-04-06T20:28:47.4242640Z error[E0308]: mismatched types
2020-04-06T20:28:47.4243787Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4243787Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4244270Z     |
2020-04-06T20:28:47.4244881Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4246448Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4248702Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4249718Z ...   |
2020-04-06T20:28:47.4250480Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4251483Z     | |                               ^^^ expected `u64`, found `&u64`
2020-04-06T20:28:47.4251483Z     | |                               ^^^ expected `u64`, found `&u64`
2020-04-06T20:28:47.4252266Z ...   |
2020-04-06T20:28:47.4252923Z 129 | |     }
2020-04-06T20:28:47.4253646Z 130 | | }
2020-04-06T20:28:47.4254994Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4255798Z 131 | 
2020-04-06T20:28:47.4256645Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4267326Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4268396Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4269462Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4270194Z ...   |
2020-04-06T20:28:47.4271197Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4273740Z     | |_- in this macro invocation
2020-04-06T20:28:47.4274069Z 
2020-04-06T20:28:47.4360428Z error[E0308]: mismatched types
2020-04-06T20:28:47.4361088Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4361088Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4361612Z     |
2020-04-06T20:28:47.4362302Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4363256Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4366926Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4367753Z ...   |
2020-04-06T20:28:47.4368526Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4369532Z     | |                               ^^^ expected `u128`, found `&u128`
2020-04-06T20:28:47.4369532Z     | |                               ^^^ expected `u128`, found `&u128`
2020-04-06T20:28:47.4370596Z ...   |
2020-04-06T20:28:47.4371339Z 129 | |     }
2020-04-06T20:28:47.4371963Z 130 | | }
2020-04-06T20:28:47.4372679Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4373273Z 131 | 
2020-04-06T20:28:47.4373872Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4374706Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4375594Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4376504Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4377140Z ...   |
2020-04-06T20:28:47.4377888Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4379528Z     | |_- in this macro invocation
2020-04-06T20:28:47.4379807Z 
2020-04-06T20:28:47.4464159Z error[E0308]: mismatched types
2020-04-06T20:28:47.4464907Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4464907Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4465374Z     |
2020-04-06T20:28:47.4465981Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4466810Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4468491Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4469073Z ...   |
2020-04-06T20:28:47.4469710Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4469710Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4470582Z     | |                               ^^^ expected `usize`, found `&usize`
2020-04-06T20:28:47.4471839Z 129 | |     }
2020-04-06T20:28:47.4472501Z 130 | | }
2020-04-06T20:28:47.4473211Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4473786Z 131 | 
2020-04-06T20:28:47.4473786Z 131 | 
2020-04-06T20:28:47.4474409Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4475220Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4476335Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4477505Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4478236Z ...   |
2020-04-06T20:28:47.4479221Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4480870Z     | |_- in this macro invocation
2020-04-06T20:28:47.4481162Z 
2020-04-06T20:28:47.4550126Z error[E0308]: mismatched types
2020-04-06T20:28:47.4550952Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4550952Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4551773Z     |
2020-04-06T20:28:47.4552465Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4553588Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4555392Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4556001Z ...   |
2020-04-06T20:28:47.4556698Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4557625Z     | |                               ^^^ expected `i8`, found `&i8`
2020-04-06T20:28:47.4557625Z     | |                               ^^^ expected `i8`, found `&i8`
2020-04-06T20:28:47.4558404Z ...   |
2020-04-06T20:28:47.4559072Z 129 | |     }
2020-04-06T20:28:47.4559746Z 130 | | }
2020-04-06T20:28:47.4560494Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4561134Z 131 | 
2020-04-06T20:28:47.4561777Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4562661Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4563628Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4564590Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4565445Z ...   |
2020-04-06T20:28:47.4566214Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4567968Z     | |_- in this macro invocation
2020-04-06T20:28:47.4568444Z 
2020-04-06T20:28:47.4652624Z error[E0308]: mismatched types
2020-04-06T20:28:47.4653499Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4653499Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4653971Z     |
2020-04-06T20:28:47.4654621Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4655509Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4657080Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4657682Z ...   |
2020-04-06T20:28:47.4658359Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4659809Z     | |                               ^^^ expected `i16`, found `&i16`
2020-04-06T20:28:47.4659809Z     | |                               ^^^ expected `i16`, found `&i16`
2020-04-06T20:28:47.4660537Z ...   |
2020-04-06T20:28:47.4661181Z 129 | |     }
2020-04-06T20:28:47.4661885Z 130 | | }
2020-04-06T20:28:47.4662821Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4663497Z 131 | 
2020-04-06T20:28:47.4664163Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4665347Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4666452Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4667484Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4668231Z ...   |
2020-04-06T20:28:47.4669097Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4671457Z     | |_- in this macro invocation
2020-04-06T20:28:47.4671786Z 
2020-04-06T20:28:47.4761392Z error[E0308]: mismatched types
2020-04-06T20:28:47.4762072Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4762072Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4762560Z     |
2020-04-06T20:28:47.4763218Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4764164Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4765781Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4766438Z ...   |
2020-04-06T20:28:47.4767145Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4768126Z     | |                               ^^^ expected `i32`, found `&i32`
2020-04-06T20:28:47.4768126Z     | |                               ^^^ expected `i32`, found `&i32`
2020-04-06T20:28:47.4768847Z ...   |
2020-04-06T20:28:47.4769477Z 129 | |     }
2020-04-06T20:28:47.4770197Z 130 | | }
2020-04-06T20:28:47.4770974Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4771626Z 131 | 
2020-04-06T20:28:47.4772658Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4773528Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4774509Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4775461Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4776134Z ...   |
2020-04-06T20:28:47.4776954Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4778601Z     | |_- in this macro invocation
2020-04-06T20:28:47.4778902Z 
2020-04-06T20:28:47.4850957Z error[E0308]: mismatched types
2020-04-06T20:28:47.4851714Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4851714Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4852148Z     |
2020-04-06T20:28:47.4852723Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4853542Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4855337Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4856511Z ...   |
2020-04-06T20:28:47.4857243Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4858549Z     | |                               ^^^ expected `i64`, found `&i64`
2020-04-06T20:28:47.4858549Z     | |                               ^^^ expected `i64`, found `&i64`
2020-04-06T20:28:47.4859653Z ...   |
2020-04-06T20:28:47.4860310Z 129 | |     }
2020-04-06T20:28:47.4861059Z 130 | | }
2020-04-06T20:28:47.4861879Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4862707Z 131 | 
2020-04-06T20:28:47.4863432Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4864970Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4866076Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4867004Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4867988Z ...   |
2020-04-06T20:28:47.4868770Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4870176Z     | |_- in this macro invocation
2020-04-06T20:28:47.4870473Z 
2020-04-06T20:28:47.4936659Z error[E0308]: mismatched types
2020-04-06T20:28:47.4937469Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4937469Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.4938124Z     |
2020-04-06T20:28:47.4938885Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.4940415Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.4943309Z 47  | |             doc_comment! {
2020-04-06T20:28:47.4944028Z ...   |
2020-04-06T20:28:47.4944793Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.4945816Z     | |                               ^^^ expected `i128`, found `&i128`
2020-04-06T20:28:47.4945816Z     | |                               ^^^ expected `i128`, found `&i128`
2020-04-06T20:28:47.4946606Z ...   |
2020-04-06T20:28:47.4947532Z 129 | |     }
2020-04-06T20:28:47.4948719Z 130 | | }
2020-04-06T20:28:47.4949849Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.4950650Z 131 | 
2020-04-06T20:28:47.4952003Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.4952956Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.4954028Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.4955095Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.4955915Z ...   |
2020-04-06T20:28:47.4956808Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.4958556Z     | |_- in this macro invocation
2020-04-06T20:28:47.4958971Z 
2020-04-06T20:28:47.5013676Z error[E0308]: mismatched types
2020-04-06T20:28:47.5014677Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.5014677Z    --> src/libcore/num/mod.rs:115:31
2020-04-06T20:28:47.5015984Z     |
2020-04-06T20:28:47.5016865Z 44  | / macro_rules! nonzero_integers {
2020-04-06T20:28:47.5018010Z 45  | |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T20:28:47.5020048Z 47  | |             doc_comment! {
2020-04-06T20:28:47.5020863Z ...   |
2020-04-06T20:28:47.5021754Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.5021754Z 115 | |                     self.0 == rhs
2020-04-06T20:28:47.5023229Z     | |                               ^^^ expected `isize`, found `&isize`
2020-04-06T20:28:47.5025100Z 129 | |     }
2020-04-06T20:28:47.5026039Z 130 | | }
2020-04-06T20:28:47.5027241Z     | |_- in this expansion of `nonzero_integers!`
2020-04-06T20:28:47.5028028Z 131 | 
2020-04-06T20:28:47.5028028Z 131 | 
2020-04-06T20:28:47.5028861Z 132 | / nonzero_integers! {
2020-04-06T20:28:47.5030125Z 133 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T20:28:47.5031325Z 134 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T20:28:47.5032688Z 135 | |     #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T20:28:47.5033546Z ...   |
2020-04-06T20:28:47.5034783Z 144 | |     #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T20:28:47.5037121Z     | |_- in this macro invocation
2020-04-06T20:28:47.5037578Z 
2020-04-06T20:28:49.2017633Z    Compiling libc v0.2.66
2020-04-06T20:28:51.3830152Z    Compiling autocfg v0.1.7
---
2020-04-06T20:28:52.6039993Z expected success, got: exit code: 101
2020-04-06T20:28:52.6050792Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap check
2020-04-06T20:28:52.6051297Z Build completed unsuccessfully in 0:01:54
2020-04-06T20:28:52.6113532Z == clock drift check ==
2020-04-06T20:28:52.7040726Z   local time: Mon Apr  6 20:28:52 UTC 2020
2020-04-06T20:28:54.4067167Z   network time: Mon, 06 Apr 2020 20:28:54 GMT
2020-04-06T20:28:56.7319801Z 
2020-04-06T20:28:56.7319801Z 
2020-04-06T20:28:56.7397105Z ##[error]Bash exited with code '1'.
2020-04-06T20:28:56.7413257Z ##[section]Finishing: Run build
2020-04-06T20:28:56.7473372Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-06T20:28:56.7478313Z Task         : Get sources
2020-04-06T20:28:56.7478692Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-06T20:28:56.7479022Z Version      : 1.0.0
2020-04-06T20:28:56.7479273Z Author       : Microsoft
2020-04-06T20:28:56.7479273Z Author       : Microsoft
2020-04-06T20:28:56.7479643Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-06T20:28:56.7480069Z ==============================================================================
2020-04-06T20:28:57.1178399Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-06T20:28:57.1231297Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-06T20:28:57.1326321Z Cleaning up task key
2020-04-06T20:28:57.1328173Z Start cleaning up orphan processes.
2020-04-06T20:28:57.1558197Z Terminate orphan process: pid (3431) (python)
2020-04-06T20:28:57.1703684Z ##[section]Finishing: Finalize Job

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 @rust-lang/infra. (Feature Requests)

@Dylan-DPC-zz
Copy link

r? @KodrAus

@rust-highfive
Copy link
Collaborator

The job mingw-check 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.
2020-04-06T22:56:31.1000806Z ========================== Starting Command Output ===========================
2020-04-06T22:56:31.1003328Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/332a7114-8a87-4ee1-ad2a-41d7711c12d8.sh
2020-04-06T22:56:31.1003544Z 
2020-04-06T22:56:31.1008360Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-06T22:56:31.1027536Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-06T22:56:31.1030829Z Task         : Get sources
2020-04-06T22:56:31.1031083Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-06T22:56:31.1031323Z Version      : 1.0.0
2020-04-06T22:56:31.1031486Z Author       : Microsoft
---
2020-04-06T22:56:32.3693572Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-06T22:56:32.3699065Z ##[command]git config gc.auto 0
2020-04-06T22:56:32.3702094Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-06T22:56:32.3705111Z ##[command]git config --get-all http.proxy
2020-04-06T22:56:32.3711792Z ##[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/70855/merge:refs/remotes/pull/70855/merge
---
2020-04-06T22:59:44.4171574Z  ---> 3fc1b512c57b
2020-04-06T22:59:44.4171912Z Step 6/7 : ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
2020-04-06T22:59:44.4172400Z  ---> Using cache
2020-04-06T22:59:44.4172851Z  ---> 5ee4295733f4
2020-04-06T22:59:44.4174200Z Step 7/7 : ENV SCRIPT python2.7 ../x.py test src/tools/expand-yaml-anchors &&            python2.7 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu &&            python2.7 ../x.py build --stage 0 src/tools/build-manifest &&            python2.7 ../x.py test --stage 0 src/tools/compiletest &&            python2.7 ../x.py test src/tools/tidy &&            /scripts/validate-toolstate.sh
2020-04-06T22:59:44.4175702Z  ---> 3d07a0fa42fe
2020-04-06T22:59:44.4176015Z Successfully built 3d07a0fa42fe
2020-04-06T22:59:44.4176503Z Successfully tagged rust-ci:latest
2020-04-06T22:59:44.4177183Z Built container sha256:3d07a0fa42feb5754fc13bb2f7010ebe13e4b8b8cdbebed0c75d8da320c8c8ad
2020-04-06T22:59:44.4177183Z Built container sha256:3d07a0fa42feb5754fc13bb2f7010ebe13e4b8b8cdbebed0c75d8da320c8c8ad
2020-04-06T22:59:44.4177839Z Looks like docker image is the same as before, not uploading
2020-04-06T22:59:51.8821276Z [CI_JOB_NAME=mingw-check]
2020-04-06T22:59:51.9051452Z [CI_JOB_NAME=mingw-check]
2020-04-06T22:59:51.9076407Z == clock drift check ==
2020-04-06T22:59:51.9086440Z   local time: Mon Apr  6 22:59:51 UTC 2020
2020-04-06T22:59:52.1955674Z   network time: Mon, 06 Apr 2020 22:59:52 GMT
2020-04-06T22:59:52.1979333Z Starting sccache server...
2020-04-06T22:59:52.2849429Z configure: processing command line
2020-04-06T22:59:52.2849663Z configure: 
2020-04-06T22:59:52.2850708Z configure: rust.parallel-compiler := True
---
2020-04-06T23:01:51.8686540Z    Compiling compiler_builtins v0.1.25
2020-04-06T23:01:54.6456358Z error: implementation has missing stability attribute
2020-04-06T23:01:54.6457047Z    --> src/libcore/num/mod.rs:114:13
2020-04-06T23:01:54.6457486Z     |
2020-04-06T23:01:54.6458088Z 45  |  / macro_rules! nonzero_integers {
2020-04-06T23:01:54.6458962Z 46  |  |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T23:01:54.6460523Z 48  |  |             doc_comment! {
2020-04-06T23:01:54.6461092Z ...    |
2020-04-06T23:01:54.6461092Z ...    |
2020-04-06T23:01:54.6461976Z 114 | /|             impl PartialEq<$Int> for $Ty {
2020-04-06T23:01:54.6462951Z 115 | ||                 fn eq(&self, rhs: &$Int) -> bool {
2020-04-06T23:01:54.6463875Z 116 | ||                     self.0 == *rhs
2020-04-06T23:01:54.6464849Z 117 | ||                 }
2020-04-06T23:01:54.6465606Z 118 | ||             }
2020-04-06T23:01:54.6466304Z     | ||_____________^
2020-04-06T23:01:54.6467444Z 130 |  |     }
2020-04-06T23:01:54.6468110Z 131 |  | }
2020-04-06T23:01:54.6469006Z     |  |_- in this expansion of `nonzero_integers!`
2020-04-06T23:01:54.6469782Z 132 | 
2020-04-06T23:01:54.6469782Z 132 | 
2020-04-06T23:01:54.6470437Z 133 | /  nonzero_integers! {
2020-04-06T23:01:54.6471532Z 134 | |      #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T23:01:54.6472494Z 135 | |      #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T23:01:54.6473480Z 136 | |      #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T23:01:54.6474613Z ...   |
2020-04-06T23:01:54.6475358Z 145 | |      #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T23:01:54.6477074Z     | |__- in this macro invocation
2020-04-06T23:01:54.6477378Z 
2020-04-06T23:01:54.6482818Z error: implementation has missing stability attribute
2020-04-06T23:01:54.6483501Z    --> src/libcore/num/mod.rs:120:13
2020-04-06T23:01:54.6483501Z    --> src/libcore/num/mod.rs:120:13
2020-04-06T23:01:54.6483951Z     |
2020-04-06T23:01:54.6484726Z 45  |  / macro_rules! nonzero_integers {
2020-04-06T23:01:54.6485586Z 46  |  |     ( $( #[$stability: meta] $Ty: ident($Int: ty); )+ ) => {
2020-04-06T23:01:54.6487107Z 48  |  |             doc_comment! {
2020-04-06T23:01:54.6487683Z ...    |
2020-04-06T23:01:54.6487683Z ...    |
2020-04-06T23:01:54.6488372Z 120 | /|             impl PartialOrd<$Int> for $Ty {
2020-04-06T23:01:54.6489377Z 121 | ||                 fn partial_cmp(&self, rhs: &$Int) -> Option<Ordering> {
2020-04-06T23:01:54.6490895Z 122 | ||                     Some(self.0.cmp(rhs))
2020-04-06T23:01:54.6491916Z 123 | ||                 }
2020-04-06T23:01:54.6492705Z 124 | ||             }
2020-04-06T23:01:54.6493426Z     | ||_____________^
2020-04-06T23:01:54.6494597Z 130 |  |     }
2020-04-06T23:01:54.6495410Z 131 |  | }
2020-04-06T23:01:54.6496149Z     |  |_- in this expansion of `nonzero_integers!`
2020-04-06T23:01:54.6496720Z 132 | 
2020-04-06T23:01:54.6496720Z 132 | 
2020-04-06T23:01:54.6497327Z 133 | /  nonzero_integers! {
2020-04-06T23:01:54.6498121Z 134 | |      #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU8(u8);
2020-04-06T23:01:54.6498989Z 135 | |      #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU16(u16);
2020-04-06T23:01:54.6499878Z 136 | |      #[stable(feature = "nonzero", since = "1.28.0")] NonZeroU32(u32);
2020-04-06T23:01:54.6500491Z ...   |
2020-04-06T23:01:54.6501414Z 145 | |      #[stable(feature = "signed_nonzero", since = "1.34.0")] NonZeroIsize(isize);
2020-04-06T23:01:54.6503096Z     | |__- in this macro invocation
2020-04-06T23:01:54.6503401Z 
2020-04-06T23:01:55.4507308Z error: aborting due to 2 previous errors
2020-04-06T23:01:55.4512846Z 
---
2020-04-06T23:01:55.4807665Z expected success, got: exit code: 101
2020-04-06T23:01:55.4814815Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap check
2020-04-06T23:01:55.4815152Z Build completed unsuccessfully in 0:02:03
2020-04-06T23:01:55.4869382Z == clock drift check ==
2020-04-06T23:01:55.5267260Z   local time: Mon Apr  6 23:01:55 UTC 2020
2020-04-06T23:01:55.8118326Z   network time: Mon, 06 Apr 2020 23:01:55 GMT
2020-04-06T23:01:56.4777761Z 
2020-04-06T23:01:56.4777761Z 
2020-04-06T23:01:56.4844633Z ##[error]Bash exited with code '1'.
2020-04-06T23:01:56.4858371Z ##[section]Finishing: Run build
2020-04-06T23:01:56.4917562Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-06T23:01:56.4922903Z Task         : Get sources
2020-04-06T23:01:56.4923211Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-06T23:01:56.4923694Z Version      : 1.0.0
2020-04-06T23:01:56.4923899Z Author       : Microsoft
2020-04-06T23:01:56.4923899Z Author       : Microsoft
2020-04-06T23:01:56.4924228Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-06T23:01:56.4924775Z ==============================================================================
2020-04-06T23:01:56.8009543Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-06T23:01:56.8049584Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-06T23:01:56.8135163Z Cleaning up task key
2020-04-06T23:01:56.8136987Z Start cleaning up orphan processes.
2020-04-06T23:01:56.8316376Z Terminate orphan process: pid (3456) (python)
2020-04-06T23:01:56.8457637Z ##[section]Finishing: Finalize Job

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 @rust-lang/infra. (Feature Requests)

@rust-highfive
Copy link
Collaborator

The job mingw-check 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.
2020-04-08T17:53:44.9097063Z ========================== Starting Command Output ===========================
2020-04-08T17:53:44.9100227Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/d1e47edf-f71a-4ba3-8190-482fa6ef0b85.sh
2020-04-08T17:53:44.9100760Z 
2020-04-08T17:53:44.9105741Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-08T17:53:44.9126707Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-08T17:53:44.9130079Z Task         : Get sources
2020-04-08T17:53:44.9130380Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-08T17:53:44.9130649Z Version      : 1.0.0
2020-04-08T17:53:44.9130829Z Author       : Microsoft
---
2020-04-08T17:53:45.8962714Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-08T17:53:45.8967305Z ##[command]git config gc.auto 0
2020-04-08T17:53:45.8970534Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-08T17:53:45.8973473Z ##[command]git config --get-all http.proxy
2020-04-08T17:53:45.8978800Z ##[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/70855/merge:refs/remotes/pull/70855/merge
---
2020-04-08T17:58:47.5979810Z  ---> 3fc1b512c57b
2020-04-08T17:58:47.6026408Z Step 6/7 : ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
2020-04-08T17:58:47.6027331Z  ---> Using cache
2020-04-08T17:58:47.6027680Z  ---> 5ee4295733f4
2020-04-08T17:58:47.6029175Z Step 7/7 : ENV SCRIPT python2.7 ../x.py test src/tools/expand-yaml-anchors &&            python2.7 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu &&            python2.7 ../x.py build --stage 0 src/tools/build-manifest &&            python2.7 ../x.py test --stage 0 src/tools/compiletest &&            python2.7 ../x.py test src/tools/tidy &&            /scripts/validate-toolstate.sh
2020-04-08T17:58:47.6031579Z  ---> 3d07a0fa42fe
2020-04-08T17:58:47.6031781Z Successfully built 3d07a0fa42fe
2020-04-08T17:58:47.6060124Z Successfully tagged rust-ci:latest
2020-04-08T17:58:47.6538288Z Built container sha256:3d07a0fa42feb5754fc13bb2f7010ebe13e4b8b8cdbebed0c75d8da320c8c8ad
2020-04-08T17:58:47.6538288Z Built container sha256:3d07a0fa42feb5754fc13bb2f7010ebe13e4b8b8cdbebed0c75d8da320c8c8ad
2020-04-08T17:58:47.6554511Z Looks like docker image is the same as before, not uploading
2020-04-08T17:58:57.3214633Z [CI_JOB_NAME=mingw-check]
2020-04-08T17:58:57.3477189Z [CI_JOB_NAME=mingw-check]
2020-04-08T17:58:57.3506262Z == clock drift check ==
2020-04-08T17:58:57.3510792Z   local time: Wed Apr  8 17:58:57 UTC 2020
2020-04-08T17:58:57.6340905Z   network time: Wed, 08 Apr 2020 17:58:57 GMT
2020-04-08T17:58:57.6355387Z Starting sccache server...
2020-04-08T17:58:57.7131934Z configure: processing command line
2020-04-08T17:58:57.7132161Z configure: 
2020-04-08T17:58:57.7132955Z configure: rust.parallel-compiler := True
---
2020-04-08T18:02:37.0431069Z     Checking rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-08T18:02:37.2491420Z     Checking fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-08T18:02:37.4698084Z     Checking rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-08T18:02:37.4825754Z     Checking rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-08T18:02:38.1429585Z     Checking rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-08T18:02:40.5614901Z     Checking rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-08T18:02:41.0918835Z     Checking rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-08T18:02:43.5661899Z     Checking rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-08T18:02:43.7695422Z     Checking rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-08T18:04:33.6798580Z configure: build.locked-deps    := True
2020-04-08T18:04:33.6798877Z configure: llvm.ccache          := sccache
2020-04-08T18:04:33.6799387Z configure: build.cargo-native-static := True
2020-04-08T18:04:33.6799866Z configure: dist.missing-tools   := True
2020-04-08T18:04:33.6800458Z configure: build.configure-args := ['--enable-sccache', '--disable-manage-submodu ...
2020-04-08T18:04:33.6801210Z configure: writing `config.toml` in current directory
2020-04-08T18:04:33.6801452Z configure: 
2020-04-08T18:04:33.6801929Z configure: run `python /checkout/x.py --help`
2020-04-08T18:04:33.6802158Z configure: 
---
2020-04-08T18:05:58.2840531Z Hugepagesize:       2048 kB
2020-04-08T18:05:58.2840771Z DirectMap4k:      135104 kB
2020-04-08T18:05:58.2840997Z DirectMap2M:     4059136 kB
2020-04-08T18:05:58.2841221Z DirectMap1G:     5242880 kB
2020-04-08T18:05:58.2841929Z + python2.7 ../x.py test src/tools/expand-yaml-anchors
2020-04-08T18:05:59.6721136Z Ensuring the YAML anchors in the GitHub Actions config were expanded
2020-04-08T18:05:59.6721136Z Ensuring the YAML anchors in the GitHub Actions config were expanded
2020-04-08T18:05:59.6728425Z Building stage0 tool expand-yaml-anchors (x86_64-unknown-linux-gnu)
2020-04-08T18:05:59.9151250Z    Compiling unicode-xid v0.2.0
2020-04-08T18:06:00.0343399Z    Compiling syn v1.0.11
2020-04-08T18:06:00.9218249Z    Compiling linked-hash-map v0.5.2
2020-04-08T18:06:00.9493967Z    Compiling lazy_static v1.4.0
2020-04-08T18:06:00.9493967Z    Compiling lazy_static v1.4.0
2020-04-08T18:06:01.1589221Z    Compiling yaml-rust v0.4.3
2020-04-08T18:06:05.6580901Z    Compiling quote v1.0.2
2020-04-08T18:06:21.0801671Z    Compiling thiserror-impl v1.0.5
2020-04-08T18:06:25.9804564Z    Compiling thiserror v1.0.5
2020-04-08T18:06:26.0401189Z    Compiling yaml-merge-keys v0.4.0
2020-04-08T18:06:27.2767273Z    Compiling expand-yaml-anchors v0.1.0 (/checkout/src/tools/expand-yaml-anchors)
2020-04-08T18:06:31.7435286Z Build completed successfully in 0:00:33
2020-04-08T18:06:31.7443915Z + python2.7 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu
2020-04-08T18:06:31.9922111Z     Finished dev [unoptimized] target(s) in 0.18s
2020-04-08T18:06:33.0844761Z Checking rustdoc artifacts (x86_64-unknown-linux-gnu -> i686-pc-windows-gnu)
---
2020-04-08T18:08:43.5832519Z     Checking rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-08T18:08:43.6761873Z     Checking fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-08T18:08:43.8769048Z     Checking rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-08T18:08:44.0022675Z     Checking rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-08T18:08:44.5047729Z     Checking rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-08T18:08:46.7948132Z     Checking rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-08T18:08:47.2774211Z     Checking rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-08T18:08:49.3627660Z     Checking rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-08T18:08:49.8220666Z     Checking rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-08T18:12:56.5298590Z Done!
2020-04-08T18:12:56.5299445Z some tidy checks failed
2020-04-08T18:12:56.5299649Z 
2020-04-08T18:12:56.5299753Z 
2020-04-08T18:12:56.5325008Z 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"
2020-04-08T18:12:56.5325805Z 
2020-04-08T18:12:56.5325900Z 
2020-04-08T18:12:56.5326151Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
2020-04-08T18:12:56.5326502Z Build completed unsuccessfully in 0:00:36
2020-04-08T18:12:56.5326502Z Build completed unsuccessfully in 0:00:36
2020-04-08T18:12:56.5373772Z == clock drift check ==
2020-04-08T18:12:56.5400532Z   local time: Wed Apr  8 18:12:56 UTC 2020
2020-04-08T18:12:56.8319109Z   network time: Wed, 08 Apr 2020 18:12:56 GMT
2020-04-08T18:12:59.2309603Z 
2020-04-08T18:12:59.2309603Z 
2020-04-08T18:12:59.2385197Z ##[error]Bash exited with code '1'.
2020-04-08T18:12:59.2415461Z ##[section]Finishing: Run build
2020-04-08T18:12:59.2464951Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-08T18:12:59.2469673Z Task         : Get sources
2020-04-08T18:12:59.2469979Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-08T18:12:59.2470261Z Version      : 1.0.0
2020-04-08T18:12:59.2470474Z Author       : Microsoft
2020-04-08T18:12:59.2470474Z Author       : Microsoft
2020-04-08T18:12:59.2470784Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-08T18:12:59.2471293Z ==============================================================================
2020-04-08T18:12:59.5856586Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-08T18:12:59.5898910Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/70855/merge to s
2020-04-08T18:12:59.5990810Z Cleaning up task key
2020-04-08T18:12:59.5992065Z Start cleaning up orphan processes.
2020-04-08T18:12:59.6188095Z Terminate orphan process: pid (3734) (python)
2020-04-08T18:12:59.6416657Z ##[section]Finishing: Finalize Job

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 @rust-lang/infra. (Feature Requests)

@Lucretiel
Copy link
Contributor Author

These appear to be tidy failures; it's not clear to me what's actually going wrong or if my changes are causing them.

@Dylan-DPC-zz
Copy link

@Lucretiel did you run tidy ?

@Lucretiel
Copy link
Contributor Author

Huh, I thought I ran rustfmt already. Published fixes.

@JohnTitor JohnTitor added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 12, 2020
@joelpalmer joelpalmer added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 21, 2020
@Dylan-DPC-zz
Copy link

r? @Amanieu

@rust-highfive rust-highfive assigned Amanieu and unassigned KodrAus Apr 21, 2020
Copy link
Member

@Amanieu Amanieu left a comment

Choose a reason for hiding this comment

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

I'd also like to implement PartialEq for Int, but I wasn't sure what the implications were for implementing traits on primitive types like that.

I think this is fine.

@@ -110,6 +111,20 @@ assert_eq!(size_of::<Option<core::num::", stringify!($Ty), ">>(), size_of::<", s
}
}

#[unstable(feature = "nonzero_cmp_to_int", issue = "70855")]
Copy link
Member

Choose a reason for hiding this comment

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

Trait implementations are always insta-stable. Use #[stable] instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated to stable; it wants a "since" attribute

@bors
Copy link
Contributor

bors commented Apr 25, 2020

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

@joelpalmer joelpalmer 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 May 5, 2020
@JohnCSimon
Copy link
Member

Ping from triage:
@Lucretiel can you please post your status on this PR and address the merge conflicts? Thanks.

@joelpalmer joelpalmer added S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 19, 2020
@joelpalmer
Copy link

Ping from Triage: Closing due to inactivity. Please re-open with any updates and conflicts resolved. Thank you for the PR. @Lucretiel

@joelpalmer joelpalmer closed this May 19, 2020
@Lucretiel
Copy link
Contributor Author

Updated this branch! Conflicts resolved, tidy passing. Not sure how to account for making the trait insta-stable, I'll need some guidance on that.

@Amanieu
Copy link
Member

Amanieu commented May 19, 2020

You'll need to reopen the PR or open a new one.

For the stability attribute just mark it as since 1.45.0. We'll need to run this through FCP for stabilization.

@Lucretiel
Copy link
Contributor Author

I don't have a "reopen" button available to me; maybe @joelpalmer?

@Lucretiel
Copy link
Contributor Author

Opened #72405 instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants