Skip to content

Conversation

Constantin and others added 19 commits January 3, 2017 07:19
Matching enums with named fields in the previous way yielded the "non_shorthand_field_patterns" warning.
The new code shows the shorthand syntax as well as field renaming, so it should be exhaustive ;-)
The book currently claims that the `size` and `align` fields in the
trait object vtable are not used, but this is false. These two fields
are used by the stable `mem::size_of_val` and `mem::align_of_val`
functions.

See the `ty::TyDynamic` case of the `glue::size_and_align_of_dst`
function in librustc_trans, which is used to implement both intrinsics
in the unsized case.
book: match enum warning

Matching enums with named fields in the previous way yielded the "non_shorthand_field_patterns" warning.
The new code shows the shorthand syntax as well as field renaming, so it should be exhaustive ;-)
…nd-38830, r=steveklabnik

Update struct_expr grammar for field init shorthand.

Part of the work for rust-lang#38830 .

r? @steveklabnik
…ze-and-align, r=steveklabnik

book: size and align in trait object vtables are used

The book currently claims that the `size` and `align` fields in the
trait object vtable are not used, but this is false. These two fields
are used by the stable `mem::size_of_val` and `mem::align_of_val`
functions.

See the `ty::TyDynamic` case of the `glue::size_and_align_of_dst`
function in librustc_trans, which is used to implement both intrinsics
in the unsized case.

r? @steveklabnik
Docs for atomic orderings: link to the 'nomicon article for further reading
…umeGomez

Add more references between lowercase/uppercase operations.

None
build: Mention rustbuild in Makefile.in comments

I think this patch will help newcomers like myself with the build system. I didn't understand that the make targets listed in the Makefile.in comments only worked with the old system, until it was pointed out to me in rust-lang#39256.
@steveklabnik
Copy link
Contributor Author

@bors: r+ p=1

@bors
Copy link
Collaborator

bors commented Jan 23, 2017

📌 Commit d7c5f0d has been approved by steveklabnik

@bors
Copy link
Collaborator

bors commented Jan 23, 2017

⌛ Testing commit d7c5f0d with merge a583f6f...

bors added a commit that referenced this pull request Jan 23, 2017
Rollup of 7 pull requests

- Successful merges: #38794, #38956, #38993, #39191, #39200, #39233, #39258
- Failed merges:
@bors
Copy link
Collaborator

bors commented Jan 24, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: steveklabnik
Pushing a583f6f to master...

@bors bors merged commit d7c5f0d into rust-lang:master Jan 24, 2017
@bors bors mentioned this pull request Jan 24, 2017
5 tasks
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants