Skip to content

Rollup of 22 pull requests - #22149

Closed
Manishearth wants to merge 45 commits into
rust-lang:masterfrom
Manishearth:rollup
Closed

Rollup of 22 pull requests#22149
Manishearth wants to merge 45 commits into
rust-lang:masterfrom
Manishearth:rollup

Conversation

ranma42and others added 30 commits February 4, 2015 01:25
As per rust-lang/rfcs#601, replace `be` with `become` as reserved
keyword for tail call optimization.
From Issue 21829 clarify equivalency of tuples
No point sending people to a page which just says "this is now part of
the Rust book".
When self.start > self.end, these iterators simply return None,
so we adjust the size_hint to just return zero in this case.
Certain optimizations can be implemented in and outside libstd if we
know we can trust the size_hint for all inputs to for example
Range<usize>.
This corrects the ExactSizeIterator implementations, which IMO were
unsound and incorrect previously, since they allowed a range like (2..1)
to return a size_hint of -1us in when debug assertions are turned off.
This was correct in the EBNF, but not in the prose (which seems to have
been copied-and-pasted from regular string literals).
- c-link-to-rust-staticlib: use EXTRACFLAGS defined by tools.mk for
choose the good libraries to link to.
- no-stack-check: disabled for openbsd (no segmented stacks here)
- symbols-are-reasonable: use portable grep pattern
- target-specs: use POSIX form for options when invoking grep
- use-extern-for-plugins: disable as OpenBSD only support x86_64 for now
Update reference.md:
- derive() no longer supports Zero trait
- derive() now supports Copy trait
Crate types from multiple sources appear to be deduplicated properly, but not
deduplicated if they come from the command line arguments. At worst, this used
to cause compiler failures when `--crate-type=lib,rlib` (the same as
`--crate-type=rlib,rlib`, at least at the time of this commit) is provided and
generate the output multiple times otherwise.
(with multiple impls to further exercise correct trait-matching.)
- add namespace
- add function parens
like sending a raw pointer slice across thread boundaries.
When trying to build against a newer, local LLVM version it might be
preferable to have a flag to disable the LLVM version check instead of
having to modify the configure script.
Fixesrust-lang#21998
I also noticed that all of the tests iterate through values up to 500. Just out of curiosity, was the choice of 500 arbitrary? I was thinking that it might make more sense to iterate up to 127 due to ASCII's character range (or if non-ASCII characters are being tested intentionally, either 255 or 511 for a nice `2^n - 1` value).
As per rust-lang/rfcs#601, replace `be` with `become` as reserved
keyword for tail call optimization.
Add `QPath` construction support to `ExtCtxt`. Allows compiler plugins to generate calls with UFCS.
…-object-cast, r=eddyb
Given `<expr> as Box<Trait>`, infer that `Box<_>` is expected type for `<expr>`.
…eklabnik
No point sending people to a page which just says "this is now part of
the Rust book" (that page being http://doc.rust-lang.org/rustdoc.html).
When self.start > self.end, these iterators simply return None,
so we adjust the size_hint to just return zero in this case.
Certain optimizations can be implemented in and outside libstd if we
know we can trust the size_hint for all inputs to for example
Range<usize>.
This corrects the ExactSizeIterator implementations, which IMO were
unsound and incorrect previously, since they allowed a range like (2..1)
to return a size_hint of -1us in when debug assertions are turned off.
…mcallister
This was correct in the EBNF, but not in the prose (which seems to have
been copied-and-pasted from regular string literals).
- c-link-to-rust-staticlib: use `EXTRACFLAGS` defined by tools.mk for
choose the good libraries to link to.
tools.mk define a variable `EXTRACFLAGS` that contains the needed library per target. So it is better to use it, instead of duplicate the code here. I keep the `ifndef IS_WINDOWS` has tools.mk define something for WINDOWS... so I don't change things that I couldn't test.
- no-stack-check: disabled for openbsd (no segmented stacks here)
- symbols-are-reasonable: use portable grep pattern
- target-specs: use POSIX form for options when invoking grep
- use-extern-for-plugins: disable as OpenBSD only support x86_64 for now
…ichton
Rename several remaining `Show`s to Debug, `String`s to Display (mostly in comments and docs).
Update reference.md:
- derive() no longer supports Zero trait
- derive() now supports Copy trait
…abnik
The fallback font for a serif font should also be serif, not sans serif.
…lexcrichton
I started to write up some docs on this, and then realized I was just repeating http://huonw.github.io/blog/2015/01/peeking-inside-trait-objects/ but worse. @huonw previously said that we can use this content if we wanted, so I made some tweaks and integrated it into the book.
Fixesrust-lang#21707
…chton
Crate types from multiple sources appear to be deduplicated properly, but not
deduplicated if they come from the command line arguments. At worst, this used
to cause compiler failures when `--crate-type=lib,rlib` (the same as
`--crate-type=rlib,rlib`, at least at the time of this commit) is provided and
generate the output multiple times otherwise.
r? @alexcrichton
…eklabnik
Based off rust-lang#21843, it looks like the syntax in the Closures guide is outdated.
This is to allow for use cases like sending a raw pointer slice across thread boundaries.
When trying to build against a newer, local LLVM version it might be
preferable to have a flag to disable the LLVM version check instead of
having to modify the configure script.
Fixesrust-lang#21998 r? @alexcrichton
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@Manishearth

Copy link
Copy Markdown
MemberAuthor

Don't review yet. Still adding some more PRs (this was the autogen one)

@Manishearth

Copy link
Copy Markdown
MemberAuthor

Alex is doing this one.

@CentrilCentril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollupA PR which is a rollup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

20 participants

@Manishearth@rust-highfive@Centril@huonw@ranma42@hugwijst@sanxiyn@iKevinY@caspark@Gankra@geofft@semarie@alkor@nagisa@pnkfelix@cllns@octplane@lukesteensen@steveklabnik@Kimundi