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 7 pull requests #37937

Merged
merged 16 commits into from
Nov 23, 2016
Merged

Rollup of 7 pull requests #37937

merged 16 commits into from
Nov 23, 2016

Commits on Nov 17, 2016

  1. Clarify the reference's status.

    The former wording only gave part of the picture, we want to be crystal
    clear about this.
    steveklabnik committed Nov 17, 2016
    Configuration menu
    Copy the full SHA
    c5e6dfc View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2016

  1. Provide hint when cast needs a dereference

    For a given code:
    
    ```rust
    vec![0.0].iter().map(|s| s as i16).collect::<Vec<i16>>();
    ```
    
    display:
    
    ```nocode
    error: casting `&f64` as `i16` is invalid
     --> foo.rs:2:35
      |
    2 |     vec![0.0].iter().map(|s| s as i16).collect::<Vec<i16>>();
      |                              -    ^^^ cannot cast `&f64` as `i16`
      |                              |
      |                              did you mean `*s`?
    ```
    
    instead of:
    
    ```nocode
    error: casting `&f64` as `i16` is invalid
     --> <anon>:2:30
      |
    2 |     vec![0.0].iter().map(|s| s as i16).collect();
      |                              ^^^^^^^^
      |
      = help: cast through a raw pointer first
    ```
    estebank committed Nov 20, 2016
    Configuration menu
    Copy the full SHA
    ec24442 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2016

  1. Configuration menu
    Copy the full SHA
    ff433da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e795d38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9170ddf View commit details
    Browse the repository at this point in the history
  4. Use SmallVec for TypeWalker's stack.

    The change also adds the missing `SmallVec::truncate` method.
    nnethercote committed Nov 21, 2016
    Configuration menu
    Copy the full SHA
    f72685f View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2016

  1. Configuration menu
    Copy the full SHA
    c0464ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12f3caf View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2016

  1. Rollup merge of rust-lang#37442 - estebank:cast-deref-hint, r=jonatha…

    …ndturner
    
    Provide hint when cast needs a dereference
    
    For a given code:
    
    ``` rust
    vec![0.0].iter().map(|s| s as i16).collect::<Vec<i16>>();
    ```
    
    display:
    
    ``` nocode
    error: casting `&f64` as `i16` is invalid
     --> file3.rs:2:35
      |
    2 |     vec![0.0].iter().map(|s| s as i16).collect::<Vec<i16>>();
      |                              -    ^^^
      |                              |
      |                              did you mean `*s`?
    ```
    
    instead of:
    
    ``` nocode
    error: casting `&f64` as `i16` is invalid
     --> <anon>:2:30
      |
    2 |     vec![0.0].iter().map(|s| s as i16).collect();
      |                              ^^^^^^^^
      |
      = help: cast through a raw pointer first
    ```
    
    Fixes rust-lang#37338.
    GuillaumeGomez committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    464cce9 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#37760 - nnethercote:TypeWalker-SmallVector,…

    … r=arielb1
    
    Type walker small vector
    
    These two changes avoid allocations on some hot paths and speed up a few workloads (some from rustc-benchmarks, as well as the workload from rust-lang#36799) by 1--2%.
    GuillaumeGomez committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    496a411 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#37836 - steveklabnik:remove-incorrect-refer…

    …ence-comment, r=GuillaumeGomez
    
    Clarify the reference's status.
    
    The former wording only gave part of the picture, we want to be crystal
    clear about this.
    
    /cc @petrochenkov, who had concerns about rust-lang#37820
    GuillaumeGomez committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    067ffdd View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#37851 - jneem:master, r=sanxiyn

    Add a regression test for issue 23699.
    
    This should close rust-lang#23699
    GuillaumeGomez committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    761c738 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#37913 - GuillaumeGomez:socket-v4, r=frewsxcv

    Add missing examples for SocketAddrV4
    
    r? @steveklabnik
    
    cc @frewsxcv
    GuillaumeGomez committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    881115c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#37925 - jtdowney:env-args-doc-links, r=stev…

    …eklabnik
    
    Add some internal docs links for Args/ArgsOs
    
    In many places the docs link to other sections and I noticed it was lacking here. Not sure if there is a standard for if inter-linking is appropriate.
    GuillaumeGomez committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    cfc7fce View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#37938 - michaelwoerister:move-myriad-closur…

    …es, r=eddyb
    
    Move the myriad-closures.rs test case to run-pass-full test suite.
    
    r? @eddyb
    GuillaumeGomez committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    90a2671 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#37940 - michaelwoerister:ich-struct-constru…

    …ctors, r=nikomatsakis
    
    ICH: Add test case for struct constructor expressions.
    
    r? @nikomatsakis
    GuillaumeGomez committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    d2c600a View commit details
    Browse the repository at this point in the history