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

Update clippy and miri submodule #47881

Merged
merged 1 commit into from
Feb 5, 2018
Merged

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Jan 30, 2018

r? @Manishearth

cc @kennytm I needed to touch the miri submodule's Cargo.toml to make sure that clippy gets the newest compiletest_rs. This will not fix miri, but since I touched the miri submodule, will this PR fail?

miri is unfixable until #46882 is merged

@kennytm
Copy link
Member

kennytm commented Jan 30, 2018

Oops. Yes this will fail 🤔

Perhaps temporarily apply this diff:

diff --git a/src/ci/docker/x86_64-gnu-tools/checktools.sh b/src/ci/docker/x86_64-gnu-tools/checktools.sh
index b9268fe62e..85f57f9648 100755
--- a/src/ci/docker/x86_64-gnu-tools/checktools.sh
+++ b/src/ci/docker/x86_64-gnu-tools/checktools.sh
@@ -32,7 +32,8 @@ cat "$TOOLSTATE_FILE"
 
 # If this PR is intended to update one of these tools, do not let the build pass
 # when they do not test-pass.
-for TOOL in rls rustfmt miri clippy; do
+# FIXME: Skipping miri check until #46882 is merged
+for TOOL in rls rustfmt clippy; do
     echo "Verifying status of $TOOL..."
     if echo "$CHANGED_FILES" | grep -q "^M[[:blank:]]src/tools/$TOOL$"; then
         echo "This PR updated 'src/tools/$TOOL', verifying if status is 'test-pass'..."

@kennytm kennytm added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jan 30, 2018
@Manishearth
Copy link
Member

r=me when it's fixed

@@ -469,7 +469,8 @@ tool_extended!((self, builder),
target: builder.build.build,
});
};
Miri, miri, "src/tools/miri", "miri", {};
// FIXME(oli-obk) reenable after #46882
//Miri, miri, "src/tools/miri", "miri", {};
Copy link
Member

Choose a reason for hiding this comment

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

This line shouldn't need to be commented out.

@oli-obk
Copy link
Contributor Author

oli-obk commented Jan 31, 2018

travis likes it now

@kennytm
Copy link
Member

kennytm commented Jan 31, 2018

@bors r=Manishearth p=3

@bors
Copy link
Contributor

bors commented Jan 31, 2018

📌 Commit 0d2639c has been approved by Manishearth

@kennytm kennytm 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 Jan 31, 2018
@bors
Copy link
Contributor

bors commented Jan 31, 2018

⌛ Testing commit 0d2639c891bd8a72961e90e5cdf8268ee7ebf2a6 with merge e8f71315df58978c985f4ee78158d7f8b3f7c441...

@bors
Copy link
Contributor

bors commented Jan 31, 2018

💔 Test failed - status-appveyor

@oli-obk
Copy link
Contributor Author

oli-obk commented Jan 31, 2018

Hmmm... clippy's appveyor works, rustcs fails with

error: linking with `link.exe` failed: exit code: 1561
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/tmp/clippy_test_build_base\\enum-glob-import-crate.enum_glob_import_crate0.rcgu.o" "/tmp/clippy_test_build_base\\enum-glob-import-crate.enum_glob_import_crate1.rcgu.o" "/tmp/clippy_test_build_base\\enum-glob-import-crate.enum_glob_import_crate2.rcgu.o" "/OUT:/tmp/clippy_test_build_base\\enum-glob-import-crate.stage-id.exe" "/tmp/clippy_test_build_base\\enum-glob-import-crate.crate.allocator.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/LIBPATH:/tmp/clippy_test_build_base" "/LIBPATH:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\release" "/LIBPATH:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2-tools\\release/deps" "/LIBPATH:/tmp/clippy_test_build_base\\enum-glob-import-crate.stage-id.aux" "/LIBPATH:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/LIBPATH:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "std-8c525ca5930ac7cd.dll.lib" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-3d7fcf367f7cd6b3.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
  = note: LINK : warning LNK4044: unrecognized option '/tmp/clippy_test_build_base\enum-glob-import-crate.enum_glob_import_crate0.rcgu.o'; ignored
          LINK : warning LNK4044: unrecognized option '/tmp/clippy_test_build_base\enum-glob-import-crate.enum_glob_import_crate1.rcgu.o'; ignored
          LINK : warning LNK4044: unrecognized option '/tmp/clippy_test_build_base\enum-glob-import-crate.enum_glob_import_crate2.rcgu.o'; ignored
          LINK : warning LNK4044: unrecognized option '/tmp/clippy_test_build_base\enum-glob-import-crate.crate.allocator.rcgu.o'; ignored
          LINK : warning LNK4001: no object files specified; libraries used
          LINK : warning LNK4068: /MACHINE not specified; defaulting to X64
          LINK : fatal error LNK1561: entry point must be defined
          

I guess there's no /tmp directory on windows.

@kennytm kennytm 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 31, 2018
@oli-obk
Copy link
Contributor Author

oli-obk commented Feb 1, 2018

I am dumping the files in env!("OUT_DIR") now, so this should work on any platform

@kennytm
Copy link
Member

kennytm commented Feb 1, 2018

@bors r=Manishearth

@bors
Copy link
Contributor

bors commented Feb 1, 2018

📌 Commit 7d45eef has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Feb 1, 2018

⌛ Testing commit 7d45eef with merge 6297ce6...

bors added a commit that referenced this pull request Feb 1, 2018
Update clippy and miri submodule

r? @Manishearth

cc @kennytm I needed to touch the miri submodule's Cargo.toml to make sure that clippy gets the newest compiletest_rs. This will not fix miri, but since I touched the miri submodule, will this PR fail?

miri is unfixable until #46882 is merged
@bors
Copy link
Contributor

bors commented Feb 1, 2018

💔 Test failed - status-travis

@kennytm
Copy link
Member

kennytm commented Feb 1, 2018

Legit.

[01:18:51] error[E0063]: missing field `approximate` in initializer of `rustc_errors::CodeSuggestion`
[01:18:51]    --> tools/clippy/clippy_lints/src/utils/mod.rs:636:16
[01:18:51]     |
[01:18:51] 636 |     let sugg = rustc_errors::CodeSuggestion {
[01:18:51]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `approximate`
[01:18:51] 
[01:18:51] error[E0063]: missing field `approximate` in initializer of `rustc_errors::CodeSuggestion`
[01:18:51]    --> tools/clippy/clippy_lints/src/utils/mod.rs:636:16
[01:18:51]     |
[01:18:51] 636 |     let sugg = rustc_errors::CodeSuggestion {
[01:18:51]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `approximate`
[01:18:51] 
[01:18:55] error: aborting due to previous error
[01:18:55] 
[01:18:55] error: Could not compile `clippy_lints`.

@pietroalbini
Copy link
Member

@oli-obk ping from triage!

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

kennytm commented Feb 5, 2018

@bors r=Manishearth

@bors
Copy link
Contributor

bors commented Feb 5, 2018

📌 Commit 70717f2 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Feb 5, 2018

⌛ Testing commit 70717f2 with merge 6c04c41...

bors added a commit that referenced this pull request Feb 5, 2018
Update clippy and miri submodule

r? @Manishearth

cc @kennytm I needed to touch the miri submodule's Cargo.toml to make sure that clippy gets the newest compiletest_rs. This will not fix miri, but since I touched the miri submodule, will this PR fail?

miri is unfixable until #46882 is merged
@bors
Copy link
Contributor

bors commented Feb 5, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: Manishearth
Pushing 6c04c41 to master...

@bors bors merged commit 70717f2 into rust-lang:master Feb 5, 2018
kennytm-githubbot added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Feb 5, 2018
Tested on commit rust-lang/rust@6c04c41.

🎉 clippy-driver on windows: build-fail → test-pass.
🎉 clippy-driver on linux: build-fail → test-pass.
@oli-obk oli-obk deleted the miri_clippy branch February 5, 2018 18:05
@oli-obk
Copy link
Contributor Author

oli-obk commented Feb 5, 2018

We are green 🎉 https://rust-lang-nursery.github.io/rust-toolstate/

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.

5 participants