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 16 pull requests #25172

Closed
wants to merge 41 commits into from
Closed

Conversation

cactorium and others added 30 commits April 18, 2015 08:28
The error can also occur in cases where a type annotation will not help.
The new example uses a `char` iterator instead of `i32`, to avoid interplay
between type inference and the default type for integer literals.
This appears to not have too much of a detrimental effect, but it
doesn't seem to be what is intended either.

antlr doesn't mind that `PLUS` isn't declared in `tokens` and happily
uses the `PLUS` that appears later in the file, but the generated
RustLexer.tokens had PLUS at the end rather than where it was intended:

NOT=10
TILDE=11
PLUT=12
MINUS=13
...
PLUS=56
There were some tokens used in the grammar but not declared. Antlr
doesn't really seem to care and happily uses them, but they appear in
RustLexer.tokens in a potentially-unexpected order.
To prevent the reference grammar from getting out of sync with the real
grammar, panic if RustLexer.tokens contains an unknown token in a
similar way that verify.rs panics if it encounters an unknown binary
operation token.
PR rust-lang#24611 added these for other architectures, but missed
the `#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]`
version of the module. The values are the same.
Remove printing of secret number at final source.
Nothing uses it anymore.
The error message was misleading, so I adjusted it, and I also added the long diagnostics for this error (resolves one point in rust-lang#24407).

I was unsure about how to phrase the error message. Is “generic parameter binding” the correct term for this?
…klabnik

Unsafe destructors were removed, added remarks about needed feature gates.

cc rust-lang#16676 
r? @steveklabnik
…, r=alexcrichton

I know this is the most trivial thing since it's *just* the model lexer, not the real lexer, but [it is simpler to read](rust-lang#15883 (comment)) and it'd be great if it was up to date but [it's been rotting](rust-lang#22379) and this is a tiny bit of that.

Thanks!!!!!!
Building with `--target=mipsel-unknown-linux-gnu` currently results in the following errors, fixed by this PR:

```
rustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/mipsel-unknown-linux-gnu/lib/libstd
/vol/rust/src/libstd/os/linux/raw.rs:76:21: 76:28 error: use of undeclared type name `c_ulong`
/vol/rust/src/libstd/os/linux/raw.rs:76         pub st_dev: c_ulong,
                                                            ^~~~~~~
/vol/rust/src/libstd/os/linux/raw.rs:83:22: 83:29 error: use of undeclared type name `c_ulong`
/vol/rust/src/libstd/os/linux/raw.rs:83         pub st_rdev: c_ulong,
                                                             ^~~~~~~
/vol/rust/src/libstd/sys/common/net2.rs:210:52: 210:70 error: unresolved name `libc::TCP_KEEPIDLE`
/vol/rust/src/libstd/sys/common/net2.rs:210         setsockopt(&self.inner, libc::IPPROTO_TCP, libc::TCP_KEEPIDLE,
```
…steveklabnik

Enhance Google-ability of `.fold()` by mentioning 'reduce' and 'inject' in the docs.

Motivation: [This thread on users.rust-lang.org](https://users.rust-lang.org/t/find-the-shortest-string-in-a-vector/1247)
…bnik

I noticed this feature added in rust-lang#23289 was missing from the `Search tricks`. Thanks!

r? @steveklabnik
Let me know if I didn't follow correct procedure - seems a trivial change and no one that can be automatically tested.
Remove printing of secret number at final source.
@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

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

@steveklabnik
Copy link
Member Author

@bors: r+ p=1

@bors
Copy link
Contributor

bors commented May 7, 2015

📌 Commit 6499747 has been approved by steveklabnik

@steveklabnik
Copy link
Member Author

@bors: force

@bors
Copy link
Contributor

bors commented May 7, 2015

⌛ Testing commit 6499747 with merge 0008719...

@steveklabnik
Copy link
Member Author

prioritizing this since i'll be around for the next few hours

@bors
Copy link
Contributor

bors commented May 7, 2015

💔 Test failed - auto-linux-64-nopt-t

@Manishearth
Copy link
Member

test net::tcp::tests::fast_rebind ... FAILED

this is network-dependent (intermittent) I presume?

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.