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 12 pull requests #40403

Closed
wants to merge 31 commits into from
Closed

Rollup of 12 pull requests #40403

wants to merge 31 commits into from

Commits on Feb 25, 2017

  1. Configuration menu
    Copy the full SHA
    8a64cf7 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2017

  1. Dont bug! on user error

    bjorn3 committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    53d3c89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    54a1c8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2a40918 View commit details
    Browse the repository at this point in the history
  4. Improve a bit more

    bjorn3 committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    be49671 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    90e94d9 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2017

  1. Configuration menu
    Copy the full SHA
    9b31784 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0aceb99 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c4275c2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    df60044 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2719b84 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7cfe20c View commit details
    Browse the repository at this point in the history
  7. fix UB in repr(packed) tests

    TimNN committed Mar 8, 2017
    Configuration menu
    Copy the full SHA
    79a7ee8 View commit details
    Browse the repository at this point in the history
  8. Removed RustFMT changes

    jdhorwitz committed Mar 8, 2017
    4 Configuration menu
    Copy the full SHA
    c51a39d View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2017

  1. Configuration menu
    Copy the full SHA
    edf5dc6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14e9313 View commit details
    Browse the repository at this point in the history
  3. Implement placement-in protocol for and VecDeque

    Charlie Fan authored and F001 committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    8062cfb View commit details
    Browse the repository at this point in the history
  4. Do not bother creating StorageLive for TyNever

    Keeps MIR cleaner, `StorageLive(_: !)` makes no sense anyway.
    nagisa committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    84d1f6a View commit details
    Browse the repository at this point in the history
  5. Clean up rustdoc css

    GuillaumeGomez committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    4078b25 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#40092 - sinkuu:fix_suggestion_index, r=pnkf…

    …elix
    
    Fix suggestion span error with a line containing multibyte characters
    
    This PR fixes broken suggestions caused by multibyte characters.
    
    e.g. for this code, rustc provides a broken suggestion ([playground](https://is.gd/DWGLu7)):
    
    ```rust
    fn main() {
        let tup = (1,);
        println!("☃{}", tup[0]);
    }
    ```
    
    ```
    error: cannot index a value of type `({integer},)`
     --> <anon>:3:21
      |
    3 |     println!("☃{}", tup[0]);
      |                     ^^^^^^
      |
    help: to access tuple elements, use tuple indexing syntax as shown
      |     println!("☃{}"tup.00]);
    
    error: aborting due to previous error
    ```
    
    `CodeSuggestion::splice_lines` is misusing `Loc.col` (`CharPos`) as a byte offset when slicing source.
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    26faee0 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#40146 - bjorn3:few-infer-changes, r=pnkfelix

    Better docs of rusty parts of typeck
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    270cde9 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#40278 - GuillaumeGomez:css-cleanup, r=frewsxcv

    Clean up rustdoc css
    
    r? @rust-lang/docs
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    55de547 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#40312 - jdhorwitz:papercut, r=steveklabnik

    Papercut
    
    r? @steveklabnik
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    cb1d4c9 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#40348 - nrc:save-extern-fn, r=eddyb

    Handle extern functions and statics in save-analysis
    
    r? @eddyb
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    d042c51 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#40367 - eddyb:naked-cruft, r=nagisa

    Improve the LLVM IR we generate for trivial functions, especially #[naked] ones.
    
    These two small changes fix edef1c/libfringe#68:
    * Don't emit ZST allocas, such as when returning `()`
    * Don't emit a branch from LLVM's entry block to MIR's `START_BLOCK` unless needed
      * That is, if a loop branches back to it, although I'm not sure that's even valid MIR
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    72fc6d4 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#40369 - petrochenkov:segspan, r=eddyb

    Give spans to individual path segments in AST
    
    And use these spans in path resolution diagnostics.
    
    The spans are spans of identifiers in segments, not whole segments. I'm not sure what spans are more useful in general, but identifier spans are a better fit for resolve errors.
    
    HIR still doesn't have spans.
    
    Fixes rust-lang#38927 (comment) rust-lang#38890 (comment)
    
    r? @nrc @eddyb
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    a1b148e View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#40372 - nagisa:never-drop, r=eddyb

    Do not bother creating StorageLive for TyNever
    
    Keeps MIR cleaner, `StorageLive(_: !)` makes no sense anyway.
    
    r? @eddyb
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    7e710c5 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#40373 - TimNN:test-ub-packed, r=arielb1

    Fix UB in repr(packed) tests
    
    r? @arielb1
    
    cc rust-lang#37609 and rust-lang#27060
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    b933fc6 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#40379 - clarcharr:box_docs, r=brson

    Box docs: no allocation is done for ZSTs.
    
    Updated to add a small bit saying that ZSTs don't actually allocate on `Box::new`.
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    e63f4a6 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#40385 - arielb1:packed-again, r=eddyb

    emit !align attributes on stores of operand pairs
    
    This avoids another case of missing-align UB. cc rust-lang#40373
    
    r? @eddyb
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    0f9c735 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#40389 - F001:placementVecDeque, r=nagisa

    Implement placement-in protocol for `VecDeque`
    
    CC rust-lang#30172
    
    r? @nagisa
    Ariel Ben-Yehuda committed Mar 9, 2017
    Configuration menu
    Copy the full SHA
    cf2165a View commit details
    Browse the repository at this point in the history