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

Rollup of 14 pull requests #49939

Merged
merged 32 commits into from
Apr 14, 2018
Merged

Rollup of 14 pull requests #49939

merged 32 commits into from
Apr 14, 2018

Conversation

kennytm
Copy link
Member

@kennytm kennytm commented Apr 13, 2018

Successful merges: #49908, #49876, #49916, #49951, #49465, #49922, #49866, #49915, #49886, #49913, #49852, #49958, #49871, #49864

Failed merges:

ollie27 and others added 10 commits March 28, 2018 22:49
If the compiler docs aren't going to include the test crate then it may as well be included with std.
This commit adds even more pessimization to use the cached `TokenStream` inside
of an AST node. As a reminder the `proc_macro` API requires taking an arbitrary
AST node and transforming it back into a `TokenStream` to hand off to a
procedural macro. Such functionality isn't actually implemented in rustc today,
so the way `proc_macro` works today is that it stringifies an AST node and then
reparses for a list of tokens.

This strategy unfortunately loses all span information, so we try to avoid it
whenever possible. Implemented in rust-lang#43230 some AST nodes have a `TokenStream`
cache representing the tokens they were originally parsed from. This
`TokenStream` cache, however, has turned out to not always reflect the current
state of the item when it's being tokenized. For example `#[cfg]` processing or
macro expansion could modify the state of an item. Consequently we've seen a
number of bugs (rust-lang#48644 and rust-lang#49846) related to using this stale cache.

This commit tweaks the usage of the cached `TokenStream` to compare it to our
lossy stringification of the token stream. If the tokens that make up the cache
and the stringified token stream are the same then we return the cached version
(which has correct span information). If they differ, however, then we will
return the stringified version as the cache has been invalidated and we just
haven't figured that out.

Closes rust-lang#48644
Closes rust-lang#49846
Previously, generate-deriving-span-tests.py would regenerate all the tests anew, even if they hadn't changed. This creates unnecessary diffs that only change the copyright year. Now we check to see if any of the content of the test has changed before generating the new one.
@rust-highfive
Copy link
Collaborator

r? @petrochenkov

(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 Apr 13, 2018
@kennytm
Copy link
Member Author

kennytm commented Apr 13, 2018

@bors r+ p=12

@bors
Copy link
Contributor

bors commented Apr 13, 2018

📌 Commit 27a7ed1 has been approved by kennytm

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

bors commented Apr 13, 2018

⌛ Testing commit 27a7ed1ba52036881c2f64c786e1cc60f99984ca with merge df279c51196460542faba4d684f10d88922b2ae9...

@bors
Copy link
Contributor

bors commented Apr 13, 2018

💔 Test failed - status-travis

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

Your PR failed on Travis (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.
[00:07:57] 127 |             _ => Lrc::new(vec![]),
[00:07:57]     |                           ^^^^^^ expected reference, found struct `std::vec::Vec`
[00:07:57]     |
[00:07:57]     = note: expected type `&rustc::ty::Slice<rustc::traits::Clause<'_>>`
[00:07:57]                found type `std::vec::Vec<_>`
[00:07:57]     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[00:07:57]
[00:07:57] error[E0308]: mismatched types
[00:07:57]    --> librustc_traits/lowering.rs:131:17
[00:07:57]     |
[00:07:57] 131 |                 program_clauses_for_associated_type_value(tcx, def_id)
[00:07:57]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected reference, found struct `std::vec::Vec`
[00:07:57]     |
[00:07:57]     = note: expected type `std::sync::Arc<&'tcx rustc::ty::Slice<rustc::traits::Clause<'tcx>>>`
[00:07:57]                found type `std::sync::Arc<std::vec::Vec<rustc::traits::Clause<'_>>>`
[00:07:57]
[00:07:57] error[E0308]: mismatched types
[00:07:57]    --> librustc_traits/lowering.rs:133:26
[00:07:57]     |
[00:07:57] 133 |                 Lrc::new(vec![])
[00:07:57]     |                          ^^^^^^ expected reference, found struct `std::vec::Vec`
[00:07:57]     |
[00:07:57]     = note: expected type `&rustc::ty::Slice<rustc::traits::Clause<'_>>`
[00:07:57]                found type `std::vec::Vec<_>`
[00:07:57]     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[00:07:57]
[00:07:57] error[E0277]: the trait bound `&rustc::ty::Slice<rustc::traits::Goal<'_>>: std::iter::FromIterator<_>` is not satisfied
[00:07:57]    --> librustc_traits/lowering.rs:292:67
[00:07:57]     |
[00:07:57] 292 |         hypotheses: where_clauses.into_iter().map(|wc| wc.into()).collect(),
[00:07:57]     |                                                                   ^^^^^^^ a collection of type `&rustc::ty::Slice<rustc::traits::Goal<'_>>` cannot be built from an iterator over elements of type `_`
[00:07:57]     |
[00:07:57]     = help: the trait `std::iter::FromIterator<_>` is not implemented for `&rustc::ty::Slice<rustc::traits::Goal<'_>>`
---
[00:07:57]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_traits librustc_traits/lib.rs --color always --error-format json --crate-type dylib --emit=dep-info,metadata -C prefer-dynamic -C debug-assertions=off -C overflow-checks=on -C metadata=514151e0c679572e -C extra-filename=-514151e0c679572e --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C incremental=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps --extern bitflags=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbitflags-1dffe97d0651361b.rmeta --extern rustc_data_structures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-c43c75e6fa38c52c.rmeta --extern log=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblog-75f2b25c19b6a07d.rmeta --extern graphviz=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libgraphviz-e790766762a27d5b.rmeta --extern syntax_pos=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax_pos-5726b7c8b62bc86c.rmeta --extern syntax=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax-ee064adeca477563.rmeta --extern rustc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc-faf6f68107bf25e3.rmeta -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/backtrace-sys-8b35e3c2ea935fab/out/.libs -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/miniz-sys-63734d0048644b22/out` (exit code: 101)
[00:07:57] warning: build failed, waiting for other jobs to finish...
[00:08:23] error: build failed
[00:08:23] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--color" "always" "--features" " jemalloc" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json"
[00:08:23] expected success, got: exit code: 101
[00:08:23] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1085:9
---
$ ls -lat $HOME/Library/Logs/DiagnosticReports/
ls: cannot access /home/travis/Library/Logs/DiagnosticReports/: No such file or directory
travis_time:end:0148e153:start=1523635449151315637,finish=1523635449161561919,duration=10246282
travis_fold:end:after_failure.2
travis_fold:start:after_failure.3
travis_time:start:07b53a78
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
find: `/home/travis/Library/Logs/DiagnosticReports': No such file or directory
travis_time:end:07b53a78:start=1523635449169036891,finish=1523635449176700836,duration=7663945
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:043eef50
$ dmesg | grep -i kill
[   11.337887] init: failsafe main process (1093) killed by TERM signal

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)

1 similar comment
@rust-highfive
Copy link
Collaborator

Your PR failed on Travis (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.
[00:07:57] 127 |             _ => Lrc::new(vec![]),
[00:07:57]     |                           ^^^^^^ expected reference, found struct `std::vec::Vec`
[00:07:57]     |
[00:07:57]     = note: expected type `&rustc::ty::Slice<rustc::traits::Clause<'_>>`
[00:07:57]                found type `std::vec::Vec<_>`
[00:07:57]     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[00:07:57]
[00:07:57] error[E0308]: mismatched types
[00:07:57]    --> librustc_traits/lowering.rs:131:17
[00:07:57]     |
[00:07:57] 131 |                 program_clauses_for_associated_type_value(tcx, def_id)
[00:07:57]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected reference, found struct `std::vec::Vec`
[00:07:57]     |
[00:07:57]     = note: expected type `std::sync::Arc<&'tcx rustc::ty::Slice<rustc::traits::Clause<'tcx>>>`
[00:07:57]                found type `std::sync::Arc<std::vec::Vec<rustc::traits::Clause<'_>>>`
[00:07:57]
[00:07:57] error[E0308]: mismatched types
[00:07:57]    --> librustc_traits/lowering.rs:133:26
[00:07:57]     |
[00:07:57] 133 |                 Lrc::new(vec![])
[00:07:57]     |                          ^^^^^^ expected reference, found struct `std::vec::Vec`
[00:07:57]     |
[00:07:57]     = note: expected type `&rustc::ty::Slice<rustc::traits::Clause<'_>>`
[00:07:57]                found type `std::vec::Vec<_>`
[00:07:57]     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[00:07:57]
[00:07:57] error[E0277]: the trait bound `&rustc::ty::Slice<rustc::traits::Goal<'_>>: std::iter::FromIterator<_>` is not satisfied
[00:07:57]    --> librustc_traits/lowering.rs:292:67
[00:07:57]     |
[00:07:57] 292 |         hypotheses: where_clauses.into_iter().map(|wc| wc.into()).collect(),
[00:07:57]     |                                                                   ^^^^^^^ a collection of type `&rustc::ty::Slice<rustc::traits::Goal<'_>>` cannot be built from an iterator over elements of type `_`
[00:07:57]     |
[00:07:57]     = help: the trait `std::iter::FromIterator<_>` is not implemented for `&rustc::ty::Slice<rustc::traits::Goal<'_>>`
---
[00:07:57]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_traits librustc_traits/lib.rs --color always --error-format json --crate-type dylib --emit=dep-info,metadata -C prefer-dynamic -C debug-assertions=off -C overflow-checks=on -C metadata=514151e0c679572e -C extra-filename=-514151e0c679572e --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C incremental=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/incremental -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps --extern bitflags=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbitflags-1dffe97d0651361b.rmeta --extern rustc_data_structures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-c43c75e6fa38c52c.rmeta --extern log=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblog-75f2b25c19b6a07d.rmeta --extern graphviz=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libgraphviz-e790766762a27d5b.rmeta --extern syntax_pos=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax_pos-5726b7c8b62bc86c.rmeta --extern syntax=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax-ee064adeca477563.rmeta --extern rustc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc-faf6f68107bf25e3.rmeta -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/backtrace-sys-8b35e3c2ea935fab/out/.libs -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/miniz-sys-63734d0048644b22/out` (exit code: 101)
[00:07:57] warning: build failed, waiting for other jobs to finish...
[00:08:23] error: build failed
[00:08:23] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--color" "always" "--features" " jemalloc" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json"
[00:08:23] expected success, got: exit code: 101
[00:08:23] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1085:9
---
$ ls -lat $HOME/Library/Logs/DiagnosticReports/
ls: cannot access /home/travis/Library/Logs/DiagnosticReports/: No such file or directory
travis_time:end:0148e153:start=1523635449151315637,finish=1523635449161561919,duration=10246282
travis_fold:end:after_failure.2
travis_fold:start:after_failure.3
travis_time:start:07b53a78
$ find $HOME/Library/Logs/DiagnosticReports -type f -name '*.crash' -not -name '*.stage2-*.crash' -not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' -exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; -exec head -750 {} \; -exec echo travis_fold":"end:crashlog \; || true
find: `/home/travis/Library/Logs/DiagnosticReports': No such file or directory
travis_time:end:07b53a78:start=1523635449169036891,finish=1523635449176700836,duration=7663945
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:043eef50
$ dmesg | grep -i kill
[   11.337887] init: failsafe main process (1093) killed by TERM signal

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)

@kennytm kennytm changed the title Rollup of 12 pull requests Rollup of 11 pull requests Apr 13, 2018
@kennytm
Copy link
Member Author

kennytm commented Apr 13, 2018

@bors r+

Removed #49626 (conflict with master)

@bors
Copy link
Contributor

bors commented Apr 13, 2018

📌 Commit 4e7cb67 has been approved by kennytm

@bors
Copy link
Contributor

bors commented Apr 14, 2018

⌛ Testing commit e681ba2 with merge b57085ecbf8131bfc26a27ecbcfb7b9f08dd0ffb...

@bors
Copy link
Contributor

bors commented Apr 14, 2018

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 14, 2018
@kennytm
Copy link
Member Author

kennytm commented Apr 14, 2018

x86_64-msvc failed. Something about linking in NLL revision...

---- [run-pass] run-pass\borrowck\two-phase-control-flow-split-before-activation.rs stdout ----
	
error in revision `nll`: compilation failed!
status: exit code: 101
command: PATH="C:\projects\rust\build\x86_64-pc-windows-msvc\stage2\bin;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.14393.0\x64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64;C:\projects\rust\build\x86_64-pc-windows-msvc\stage0-tools\x86_64-pc-windows-msvc\release\deps;C:\projects\rust\build\x86_64-pc-windows-msvc\stage0-sysroot\lib\rustlib\x86_64-pc-windows-msvc\lib;C:\Program Files (x86)\Inno Setup 5;C:\Python27;C:\msys64\mingw64\bin;C:\msys64\usr\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\7-Zip;C:\Program Files\Microsoft\Web Platform Installer;C:\Tools\GitVersion;C:\Tools\PsTools;C:\Program Files\Git LFS;C:\Program Files (x86)\Subversion\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Tools\WebDriver;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin;C:\Ruby193\bin;C:\Tools\NUnit\bin;C:\Tools\xUnit;C:\Tools\MSpec;C:\Tools\Coverity\bin;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Program Files\Java\jdk1.8.0\bin;C:\Python27;C:\Program Files\nodejs;C:\Program Files (x86)\iojs;C:\Program Files\iojs;C:\Users\appveyor\AppData\Roaming\npm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\MSBuild\14.0\Bin;C:\Tools\NuGet;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn;C:\Program Files\Microsoft SQL Server\130\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Apache\Maven\bin;C:\Python27\Scripts;C:\Tools\NUnit3;C:\Program Files\Mercurial;C:\Program Files\LLVM\bin;C:\Program Files\dotnet;C:\Tools\curl\bin;C:\Program Files\Amazon\AWSCLI;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\140;C:\Tools\vcpkg;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\PowerShell\6.0.0;C:\Program Files\erl9.2\bin;C:\Program Files (x86)\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files (x86)\Yarn\bin;C:\Program Files (x86)\NSIS;C:\Tools\Octopus;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\ProgramData\chocolatey\bin;C:\Users\appveyor\AppData\Roaming\npm;C:\Users\appveyor\AppData\Local\Yarn\bin;C:\Program Files\AppVeyor\BuildAgent;C:\projects\rust;C:\projects\rust\handle" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2\\bin\\rustc.exe" "C:\\projects\\rust\\src/test\\run-pass\\borrowck\\two-phase-control-flow-split-before-activation.rs" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass" "--target=x86_64-pc-windows-msvc" "--cfg" "nll" "-C" "prefer-dynamic" "-o" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass\\borrowck\\two-phase-control-flow-split-before-activation.stage2-x86_64-pc-windows-msvc.exe" "-Crpath" "-O" "-Zunstable-options" "-Lnative=C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\native\\rust-test-helpers" "-L" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass\\borrowck\\two-phase-control-flow-split-before-activation.stage2-x86_64-pc-windows-msvc.aux"
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
error: linking with `C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe` failed: exit code: 1104
  |
  = 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" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass\\borrowck\\two-phase-control-flow-split-before-activation.two_phase_control_flow_split_before_activation0-317d481089b8c8fe83113de504472633.rs.rcgu.o" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass\\borrowck\\two-phase-control-flow-split-before-activation.two_phase_control_flow_split_before_activation1-317d481089b8c8fe83113de504472633.rs.rcgu.o" "/OUT:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass\\borrowck\\two-phase-control-flow-split-before-activation.stage2-x86_64-pc-windows-msvc.exe" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass\\borrowck\\two-phase-control-flow-split-before-activation.crate.allocator.rcgu.o" "/OPT:REF,ICF" "/DEBUG" "/LIBPATH:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass" "/LIBPATH:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\native\\rust-test-helpers" "/LIBPATH:C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\test\\run-pass\\borrowck\\two-phase-control-flow-split-before-activation.stage2-x86_64-pc-windows-msvc.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-f0e8d18879b4c390.dll.lib" "C:\\projects\\rust\\build\\x86_64-pc-windows-msvc\\stage2\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-5bfcbb829d19e246.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
  = note: LINK : fatal error LNK1104: cannot open file 'C:\projects\rust\build\x86_64-pc-windows-msvc\test\run-pass\borrowck\two-phase-control-flow-split-before-activation.stage2-x86_64-pc-windows-msvc.exe'
          
error: aborting due to previous error
------------------------------------------
thread '[run-pass] run-pass\borrowck\two-phase-control-flow-split-before-activation.rs' panicked at 'explicit panic', tools\compiletest\src\runtest.rs:2919:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
    [run-pass] run-pass\borrowck\two-phase-control-flow-split-before-activation.rs
test result: FAILED. 2939 passed; 1 failed; 23 ignored; 0 measured; 0 filtered out
thread 'main' panicked at 'Some tests failed', tools\compiletest\src\main.rs:486:22

@kennytm
Copy link
Member Author

kennytm commented Apr 14, 2018

@bors retry

I don't see anything relevant to this failure.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 14, 2018
Cleanup liballoc use statements

Some modules were still using the deprecated `allocator` module, use the
`alloc` module instead.

Some modules were using `super` while it's not needed.

Some modules were more or less ordering them, and other not, so the
latter have been modified to match the others.
Add to_bytes and from_bytes to primitive integers

Discussion issue turned tracking issue: rust-lang#49792
…ures, r=GuillaumeGomez

add target features when extracting and running doctests

When rendering documentation, rustdoc will happily load target features into the cfg environment from the current target, but fails to do this when doing anything with doctests. This would lead to situations where, thanks to rust-lang#48759, functions tagged with `#[target_feature]` couldn't run doctests, thanks to the automatic `#[doc(cfg(target_feature = "..."))]`.

Currently, there's no way to pass codegen options to rustdoc that will affect its rustc sessions, but for now this will let you use target features that come default on the platform you're targeting.

Fixes rust-lang#49723
@kennytm kennytm changed the title Rollup of 11 pull requests Rollup of 14 pull requests Apr 14, 2018
@kennytm
Copy link
Member Author

kennytm commented Apr 14, 2018

@bors r+

Added #49958, #49871, #49864

@bors
Copy link
Contributor

bors commented Apr 14, 2018

📌 Commit 0e9d6f9 has been approved by kennytm

@bors
Copy link
Contributor

bors commented Apr 14, 2018

⌛ Testing commit 0e9d6f9 with merge 21dae95...

bors added a commit that referenced this pull request Apr 14, 2018
Rollup of 14 pull requests

Successful merges: #49908, #49876, #49916, #49951, #49465, #49922, #49866, #49915, #49886, #49913, #49852, #49958, #49871, #49864

Failed merges:
@bors
Copy link
Contributor

bors commented Apr 14, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: kennytm
Pushing 21dae95 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup 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.