Skip to content

Rollup of 5 pull requests #25129

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

Merged
merged 87 commits into from
May 6, 2015
Merged

Rollup of 5 pull requests #25129

merged 87 commits into from
May 6, 2015

Conversation

pnkfelix and others added 30 commits April 30, 2015 14:27
Namely, we need to catch cases like `trait Child : Parent { }` where
`Parent` itself defines methods.
The new functionality being tested here is that a drop impl bounded by
`UserDefined` does not cause dropck to inject its conservative
constraints on region inference.
This + DST coercions (rust-lang#24619) would allow code like `Rc<RefCell<Box<Trait>>>` to
be simplified to `Rc<RefCell<Trait>>`.
Stack overflow detection does not currently work with MUSL, so this test needs
to be disabled.
- I found n error in the book, before contributing the patch to fix it, I had to find where they were hosted
- It took me quite look to find where within the rust-lang *organisation* it was!
Without the inline annotation this:
    str::from_utf8_unchecked( slice::from_raw_parts( ptr, len ) )
doesn't get inlined which can be pretty brutal performance-wise
when used in an inner loop of a low level string manipulation method.
- `FIle::open` is for opening a file in read-only mode
- `FIle::create` is for opening a file in write-only mode, which is what we want instead for this example to make sense
Since the hashmap and its hasher are implemented in different crates, we
currently can't benefit from inlining, which means that especially for
small, fixed size keys, there is a huge overhead in hash calculations,
because the compiler can't apply optimizations that only apply for these
keys.

Fixes the brainfuck benchmark in rust-lang#24014.
This way, the module index renders only the first sentence as a short
description.
This + DST coercions (rust-lang#24619) would allow code like `Rc<RefCell<Box<Trait>>>` to be simplified to `Rc<RefCell<Trait>>`.
Since the hashmap and its hasher are implemented in different crates, we
currently can't benefit from inlining, which means that especially for
small, fixed size keys, there is a huge overhead in hash calculations,
because the compiler can't apply optimizations that only apply for these
keys.

Fixes the brainfuck benchmark in rust-lang#24014.
Manishearth and others added 18 commits May 5, 2015 09:24
…eklabnik

 I corrected several spelling errors in the external documentation.
 This did not render as intended:

>This is defined in RFC 5737 - 192.0.2.0/24 (TEST-NET-1) - 198.51.100.0/24 (TEST-NET-2) - 203.0.113.0/24 (TEST-NET-3)

vs.

> This is defined in RFC 5737
- 192.0.2.0/24 (TEST-NET-1)
- 198.51.100.0/24 (TEST-NET-2)
- 203.0.113.0/24 (TEST-NET-3)
 `str`s is messy but string is incorrect.
…, r=steveklabnik

 Right now it's all hosted over GitHub pages so https doesn't work, so only link
to the http version.
Generalize dropck to ignore item-less traits

Fix rust-lang#24805.

(This is the reopened + rebased version of PR rust-lang#24898)
…r=nikomatsakis

This test has deadlocked on Windows once or twice now and we've had lots of
problems in the past of threads panicking when the process is being shut down.
One of the two threads in this test is guaranteed to panic because of the
`.unwrap()` on the `send` calls, so just call `recv` on both receivers after the
test executes to ensure that both threads are dying/dead.
Also, as @huonw guessed, move semantics really _does_ make more sense as
a sub-chapter of ownership.
…atsakis

Also, as @huonw guessed, move semantics really _does_ make more sense as
a sub-chapter of ownership.
…richton

This also made me realize that I wasn't using the correct term,
'associated functions', rather than 'static methods'. So I corrected
that in the method syntax chapter.
The indentation in this example is messed up. The `_ => break,` line was using a tab instead of spaces to indent.
…xcrichton

I've added backticks in a few places to ensure correct highlighting in the HTML output (cf rust-lang#25062). 

Other changes include:

* Remove use of `1.` and `2.` separated by a code block as this was being rendered as two separate lists beginning at 1.
* Correct the spelling of successful in two places (from "succesful").

Other changes are a result of reflowing text to stay within the 80 character limit.
@rust-highfive
Copy link
Contributor

r? @pcwalton

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

@steveklabnik
Copy link
Member Author

@bors: r+ p=1000

@bors
Copy link
Collaborator

bors commented May 5, 2015

📌 Commit d507c38 has been approved by steveklabnik

@steveklabnik steveklabnik assigned steveklabnik and unassigned pcwalton May 5, 2015
bors added a commit that referenced this pull request May 5, 2015
@bors
Copy link
Collaborator

bors commented May 5, 2015

⌛ Testing commit d507c38 with merge 252b544...

@bors bors merged commit d507c38 into rust-lang:master May 6, 2015
@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.