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 18 pull requests #57690

Closed
wants to merge 48 commits into from
Closed

Rollup of 18 pull requests #57690

wants to merge 48 commits into from

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Jan 17, 2019

Successful merges:

Failed merges:

r? @ghost

sdroege and others added 30 commits December 13, 2018 11:07
Using `!` for `c_void` would have the problem that pointers and
potentially references to an uninhabited type would be created, and at
least for references this is UB.

Also document in addition that newtype wrappers around `c_void` are not
recommended for representing opaque types (as a workaround for `extern
type` not being stable) but instead refer to the Nomicon.
…rent implementation

We need at least two variants of the enum as otherwise the compiler
complains about the #[repr(u8)] attribute and we also need at least one
variant as otherwise the enum would be uninhabitated and dereferencing
pointers to it would be UB.

As such, mark the variants not unstable because they should not actually
exist but because they are temporary implementation details until
`extern type` is stable and can be used instead.
- Cleanup the `impl PartialEq<BookFormat> for Book` implementation
- Implement `impl PartialEq<Book> for BookFormat` so it’s symmetric
  - Fixes rust-lang#53844.
- Removes the last example since it appears to be redundant with the
  previous two examples.
"trampolines", or "aliases (the default)) to allow targets to opt out of
the MergeFunctions LLVM pass. Also add a corresponding -Z option with
the same name and values.

This works around: rust-lang#57356

Motivation:

Basically, the problem is that the MergeFunctions pass, which rustc
currently enables by default at -O2 and -O3, and `extern "ptx-kernel"`
functions (specific to the NVPTX target) are currently not compatible
with each other. If the MergeFunctions pass is allowed to run, rustc can
generate invalid PTX assembly (i.e. a PTX file that is not accepted by
the native PTX assembler ptxas). Therefore we would like a way to opt
out of the MergeFunctions pass, which is what our target option does.

Related work:

The current behavior of rustc is to enable MergeFunctions at -O2 and -O3,
and also to enable the use of function aliases within MergeFunctions.
MergeFunctions both with and without function aliases is incompatible with
the NVPTX target.

clang's "solution" is to have a "-fmerge-functions" flag that opts in to
the MergeFunctions pass, but it is not enabled by default.
This may be needed with some host compilers.
A few items were referenced, but did not have links.
@Centril
Copy link
Contributor Author

Centril commented Jan 17, 2019

@bors r+ p=5

@bors
Copy link
Contributor

bors commented Jan 17, 2019

📌 Commit a9c7eb4 has been approved by Centril

@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 Jan 17, 2019
@bors
Copy link
Contributor

bors commented Jan 17, 2019

⌛ Testing commit a9c7eb4 with merge 521a3e5fc95b117d5f63f90ef269bea55b4408dd...

@bors
Copy link
Contributor

bors commented Jan 17, 2019

💔 Test failed - checks-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 Jan 17, 2019
@pietroalbini
Copy link
Member

@bors retry

Travis time travelled.

@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 Jan 17, 2019
@bors
Copy link
Contributor

bors commented Jan 17, 2019

⌛ Testing commit a9c7eb4 with merge 648a58bfa8bc3e22682b24f3c3213301af8633bf...

@bors
Copy link
Contributor

bors commented Jan 17, 2019

💔 Test failed - checks-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 Jan 17, 2019
@rust-highfive
Copy link
Collaborator

The job dist-x86_64-apple of 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:03:30]       Memory: 8 GB
[00:03:30]       Boot ROM Version: VMW71.00V.0.B64.1704110547
[00:03:30]       Apple ROM Info: [MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]Welcome to the Virtual Machine
[00:03:30]       SMC Version (system): 2.8f0
[00:03:30]       Serial Number (system): VMDjQxHArha2
[00:03:30] 
[00:03:30] hw.ncpu: 4
[00:03:30] hw.byteorder: 1234
[00:03:30] hw.memsize: 8589934592
---

[02:50:29] travis_time:end:stage2-cargo-clippy:start=1547761660604020000,finish=1547761661236943000,duration=632923000

[02:50:29] [TIMING] ToolBuild { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", tool: "cargo-clippy", path: "src/tools/clippy", mode: ToolRustc, is_optional_tool: true, source_type: Submodule, extra_features: [] } -- 0.662
The job exceeded the maximum time limit for jobs, and has been terminated.

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)

@Centril
Copy link
Contributor Author

Centril commented Jan 17, 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 Jan 17, 2019
@bors
Copy link
Contributor

bors commented Jan 18, 2019

⌛ Testing commit a9c7eb4 with merge 80f340c0079310c705dfd705911d8d0c3f259c51...

@bors
Copy link
Contributor

bors commented Jan 18, 2019

💔 Test failed - checks-travis

@rust-highfive
Copy link
Collaborator

The job dist-x86_64-apple of 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:03:27]       Memory: 8 GB
[00:03:27]       Boot ROM Version: VMW71.00V.0.B64.1704110547
[00:03:27]       Apple ROM Info: [MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]Welcome to the Virtual Machine
[00:03:27]       SMC Version (system): 2.8f0
[00:03:27]       Serial Number (system): VMD9AxtwrycD
[00:03:27] 
[00:03:27] hw.ncpu: 4
[00:03:27] hw.byteorder: 1234
[00:03:27] hw.memsize: 8589934592
---
[02:48:57] travis_time:end:stage2-cargo-miri:start=1547785965533123000,finish=1547785966136492000,duration=603369000

[02:48:57] [TIMING] ToolBuild { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", tool: "cargo-miri", path: "src/tools/miri", mode: ToolRustc, is_optional_tool: true, source_type: Submodule, extra_features: [] } -- 0.635
[02:48:59] [TIMING] Miri { stage: 2, target: "x86_64-apple-darwin" } -- 1.464
The job exceeded the maximum time limit for jobs, and has been terminated.

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 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 Jan 18, 2019
@Centril Centril closed this Jan 18, 2019
@Centril Centril deleted the rollup branch January 18, 2019 09:19
@Centril Centril added the rollup A PR which is a rollup label Oct 24, 2019
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