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 7 pull requests #66924

Closed
wants to merge 23 commits into from
Closed

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Dec 1, 2019

Successful merges:

Failed merges:

r? @ghost

linkmauve and others added 23 commits November 24, 2019 13:55
…-DPC

Replace .unwrap() with ? in std::os::unix::net

As people like to copy examples, this gives them good habits.
…r=oli-obk

rustc: move mir::SourceScopeLocalData to a field of SourceScopeData.

By having one `ClearCrossCrate<SourceScopeLocalData>` for each scope, as opposed to a single `ClearCrossCrate` for all the `SourceScopeLocalData`s, we can represent the fact that some scopes have `SourceScopeLocalData` associated with them, and some don't.

This is useful when doing MIR inlining across crates, because the `ClearCrossCrate` will be `Clear` for the cross-crate MIR scopes and `Set` for the local ones.

Also see rust-lang#66203 (comment) for some context around this approach.

Fixes rust-lang#51314.
libunwind_panic: adjust miri panic hack

We adjust the Miri hack in libpanic_unwind such that even with `cfg(miri)`, we build a version of libpanic_unwind that actually works.

This is needed to resolve rust-lang/rust-playground#548.

r? @oli-obk @alexcrichton
…oli-obk

handle diverging functions forwarding their return place

Fixes rust-lang/miri#1075: the shim around diverging closures turned into function pointers actually "obtains" a return place inside a diverging function, but just uses it as the return place for a diverging callee. Handle this by using NULL places.

This is kind of a hack as it breaks our invariant that all places are dereferencable, but we'd eventually let raw pointers break that anyway I assume so that seems fine.

r? @oli-obk
…=kinnison

Less minification

The goal of this PR is to remove the minification process on the `search-index.js` file. It provides great result in term of space reduction but the computation time is far too long. I'll work on this issue and will put it back once it's fast enough.

cc @nox @lqd
r? @kinnison
rustc: hide HirId's fmt::Debug output from -Z span_free_formats.

This replaces the only occurrences of `HirId {...}` from tests with paths, i.e.:
```rust
[closure@HirId { owner: DefIndex(4), local_id: 15 } q:&i32, t:&T]
```
becomes, after this PR:
```rust
[closure@foo<T>::{{closure}}#0 q:&i32, t:&T]
```

r? @oli-obk cc @michaelwoerister
rustc: don't just show raw DefIndex's in BrNamed's fmt::Debug impl.

Context: these `fmt::Debug` impls only get used with `-Z verbose` (which some tests use).

I was going to print the path like in rust-lang#66850 (or rather, use `DefId`'s `fmt::Debug`, which is close but not as nice), but then I realized that most of the `DefId`s were `crate0:DefIndex(0)`, i.e. the crate root.
As the crate root is not a lifetime, they're clearly dummies of some sort, and we don't have to print anything other than the name for them.

This means that out of all the tests, there's only 5 instances of `BrNamed` that now print the full path to the lifetime parameter, and everything else is shorter instead, which doesn't feel too bad.

cc @nikomatsakis
@Centril
Copy link
Contributor Author

Centril commented Dec 1, 2019

@bors r+ p=2000 rollup=never

@bors
Copy link
Contributor

bors commented Dec 1, 2019

📌 Commit 1569dab has been approved by Centril

@bors
Copy link
Contributor

bors commented Dec 1, 2019

🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Dec 1, 2019
@Centril Centril added rollup A PR which is a rollup and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 1, 2019
@bors
Copy link
Contributor

bors commented Dec 1, 2019

⌛ Testing commit 1569dab with merge 0e442f7ec8b17c274bb505033f69012ec2e28d53...

@RalfJung
Copy link
Member

RalfJung commented Dec 1, 2019

@bors retry

@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 Dec 1, 2019
@bors
Copy link
Contributor

bors commented Dec 1, 2019

⌛ Testing commit 1569dab with merge 704ca20f9789d5cd15a589155e46bee8350c0fdb...

@rust-highfive
Copy link
Collaborator

The job dist-arm-linux 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.

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)

@bors
Copy link
Contributor

bors commented Dec 1, 2019

💔 Test failed - checks-azure

@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 Dec 1, 2019
@RalfJung
Copy link
Member

RalfJung commented Dec 1, 2019

Well that's bad luck, this time some crates.io download failed...

@bors retry

@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 Dec 1, 2019
@bors
Copy link
Contributor

bors commented Dec 1, 2019

⌛ Testing commit 1569dab with merge 3680f4f2a3b463df5d869e960af10bde0b870926...

@rust-highfive
Copy link
Collaborator

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-12-01T20:56:33.8394399Z 
2019-12-01T20:56:33.8394436Z 
2019-12-01T20:56:33.8394493Z 
2019-12-01T20:56:33.8394527Z 
2019-12-01T20:56:33.8394662Z  - #66346 (Replace .unwrap() with ? in std::os::unix::net)
2019-12-01T20:56:33.8394773Z  - #66789 (rustc: move mir::SourceScopeLocalData to a field of SourceScopeData.)
2019-12-01T20:56:33.8394899Z  - #66822 (libunwind_panic: adjust miri panic hack)
2019-12-01T20:56:33.8395000Z  - #66827 (handle diverging functions forwarding their return place)
2019-12-01T20:56:33.8395106Z  - #66828 (Less minification)
2019-12-01T20:56:33.8395203Z  - #66850 (rustc: hide HirId's fmt::Debug output from -Z span_free_formats.)
2019-12-01T20:56:33.8395343Z  - #66874 (Miri engine: proper support for `Assert` MIR terminators)
2019-12-01T20:56:33.8395467Z  - #66907 (rustc: don't just show raw DefIndex's in BrNamed's fmt::Debug impl.)
2019-12-01T20:56:33.8395664Z AGENT_DISABLELOGPLUGIN_TESTFILEPUBLISHERPLUGIN=true
2019-12-01T20:56:33.8395766Z AGENT_DISABLELOGPLUGIN_TESTRESULTLOGPLUGIN=true
2019-12-01T20:56:33.8395862Z AGENT_HOMEDIRECTORY=C:\agents\2.160.1
2019-12-01T20:56:33.8395938Z AGENT_ID=513
---
2019-12-01T20:56:42.2684004Z   0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
2019-12-01T20:56:42.2707830Z   0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
2019-12-01T20:56:42.2707995Z curl: (22) The requested URL returned error: 502 
2019-12-01T20:56:42.2789893Z 
2019-12-01T20:56:42.2876519Z ##[error]Bash exited with code '22'.
2019-12-01T20:56:42.3113963Z ##[section]Starting: Checkout
2019-12-01T20:56:42.3225159Z ==============================================================================
2019-12-01T20:56:42.3225261Z Task         : Get sources
2019-12-01T20:56:42.3225601Z 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)

@bors
Copy link
Contributor

bors commented Dec 1, 2019

💔 Test failed - checks-azure

@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 Dec 1, 2019
@Centril
Copy link
Contributor Author

Centril commented Dec 1, 2019

@bors retry

@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 Dec 1, 2019
@bors
Copy link
Contributor

bors commented Dec 1, 2019

⌛ Testing commit 1569dab with merge 570e6dd...

bors added a commit that referenced this pull request Dec 1, 2019
Rollup of 7 pull requests

Successful merges:

 - #66346 (Replace .unwrap() with ? in std::os::unix::net)
 - #66789 (rustc: move mir::SourceScopeLocalData to a field of SourceScopeData.)
 - #66822 (libunwind_panic: adjust miri panic hack)
 - #66827 (handle diverging functions forwarding their return place)
 - #66828 (Less minification)
 - #66850 (rustc: hide HirId's fmt::Debug output from -Z span_free_formats.)
 - #66907 (rustc: don't just show raw DefIndex's in BrNamed's fmt::Debug impl.)

Failed merges:

 - #66874 (Miri engine: proper support for `Assert` MIR terminators)

r? @ghost
@rust-highfive
Copy link
Collaborator

The job i686-apple 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-12-01T22:56:31.7582930Z test result: ok. 1 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out
2019-12-01T22:56:31.7583460Z 
2019-12-01T22:56:31.7591100Z  finished in 4.045
2019-12-01T22:56:31.7592320Z [TIMING] DocTest { compiler: Compiler { stage: 2, host: "i686-apple-darwin" }, path: "src/doc/rustc", name: "rustc", is_ext_doc: false } -- 4.045
2019-12-01T22:56:32.5534600Z tmp.js:2
2019-12-01T22:56:32.5538260Z searchIndex["alloc"] = {"doc":"The Rust core allocation and collections library","i":[[0,"alloc","alloc","Memory allocation APIs",null,null],[3,"Excess","alloc::alloc","Represents the combination of a starting address and a…",null,null],[12,"0","","",0,null],[12,"1","","",0,null],[3,"Layout","","Layout of a block of memory.",null,null],[3,"LayoutErr","","The parameters given to `Layout::from_size_align` or some…",null,null],[3,"AllocErr","","The `AllocErr` error indicates an allocation failure that…",null,null],[3,"CannotReallocInPlace","","The `CannotReallocInPlace` error is used when…",null,null],[8,"GlobalAlloc","","A memory allocator that can be registered as the standard…",null,null],[10,"alloc","","Allocate memory as described by the given `layout`.",1,[[["self"],["layout"]]]],[10,"dealloc","","Deallocate the block of memory at the given `ptr` pointer…",1,[[["self"],["layout"]]]],[11,"alloc_zeroed","","Behaves like `alloc`, but also ensures that the contents…",1,[[["self"],["lay
2019-12-01T22:56:32.5538820Z 
2019-12-01T22:56:32.5539000Z ReferenceError: addSearchOptions is not defined
2019-12-01T22:56:32.5539090Z     at Object.<anonymous> (tmp.js:2:161112)
2019-12-01T22:56:32.5539200Z     at Module._compile (module.js:577:32)
2019-12-01T22:56:32.5540050Z     at loadContent (/Users/runner/runners/2.160.1/work/1/s/src/tools/rustdoc-js-std/tester.js:166:7)
2019-12-01T22:56:32.5540930Z     at main (/Users/runner/runners/2.160.1/work/1/s/src/tools/rustdoc-js-std/tester.js:264:19)
2019-12-01T22:56:32.5541730Z     at Object.<anonymous> (/Users/runner/runners/2.160.1/work/1/s/src/tools/rustdoc-js-std/tester.js:344:14)
2019-12-01T22:56:32.5541860Z     at Module._compile (module.js:577:32)
2019-12-01T22:56:32.5542000Z     at Object.Module._extensions..js (module.js:586:10)
2019-12-01T22:56:32.5542190Z     at Module.load (module.js:494:32)
2019-12-01T22:56:32.5542290Z     at tryModuleLoad (module.js:453:12)
2019-12-01T22:56:32.5542390Z     at Function.Module._load (module.js:445:3)
2019-12-01T22:56:32.5583130Z 
2019-12-01T22:56:32.5583130Z 
2019-12-01T22:56:32.5584280Z command did not execute successfully: "/usr/local/bin/node" "src/tools/rustdoc-js-std/tester.js" "i686-apple-darwin"
2019-12-01T22:56:32.5584570Z 
2019-12-01T22:56:32.5584610Z 
2019-12-01T22:56:32.5596610Z failed to run: /Users/runner/runners/2.160.1/work/1/s/build/bootstrap/debug/bootstrap test
2019-12-01T22:56:32.5596800Z Build completed unsuccessfully in 1:39:04
2019-12-01T22:56:32.5596800Z Build completed unsuccessfully in 1:39:04
2019-12-01T22:56:32.5668760Z == clock drift check ==
2019-12-01T22:56:32.5736430Z   local time: Sun Dec  1 22:56:32 UTC 2019
2019-12-01T22:56:32.6965820Z   network time: Sun, 01 Dec 2019 22:56:32 GMT
2019-12-01T22:56:32.6968830Z == end clock drift check ==
2019-12-01T22:56:32.7021510Z 
2019-12-01T22:56:32.7149370Z ##[error]Bash exited with code '1'.
2019-12-01T22:56:32.7198800Z ##[section]Starting: Checkout
2019-12-01T22:56:32.7202180Z ==============================================================================
2019-12-01T22:56:32.7202300Z Task         : Get sources
2019-12-01T22:56:32.7202410Z 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)

@bors
Copy link
Contributor

bors commented Dec 1, 2019

💔 Test failed - checks-azure

@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 Dec 1, 2019
@dtolnay dtolnay mentioned this pull request Dec 2, 2019
@Centril Centril closed this Dec 2, 2019
@Centril Centril deleted the rollup-r7pljxh branch December 2, 2019 03:07
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-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants