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 33 pull requests #35571

Closed
wants to merge 74 commits into from
Closed

Commits on Aug 4, 2016

  1. Provide a cleaner documentation for 'write!'

    Cengiz Can committed Aug 4, 2016
    Configuration menu
    Copy the full SHA
    15be66d View commit details
    Browse the repository at this point in the history
  2. Use consistent spelling for word 'implementor'

    Cengiz Can committed Aug 4, 2016
    Configuration menu
    Copy the full SHA
    800aa92 View commit details
    Browse the repository at this point in the history
  3. Be more explicit about duck typing

    Cengiz Can committed Aug 4, 2016
    Configuration menu
    Copy the full SHA
    c630bea View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2016

  1. Configuration menu
    Copy the full SHA
    751d43a View commit details
    Browse the repository at this point in the history
  2. Update HashMap docs regarding DoS protection

    Because of changes to how Rust acquires randomness HashMap is not
    guaranteed to be DoS resistant. This commit reflects these changes in
    the docs themselves and provides an alternative method to creating
    a hash that is resistant if needed.
    mgattozzi committed Aug 5, 2016
    Configuration menu
    Copy the full SHA
    2683e84 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2016

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

Commits on Aug 7, 2016

  1. Update E0023 to the new format

    Added some extra code to check for the appropriate ending for numbers ==
    1 vs. not 1 in error messages.
    
    Added an extra test so that the plural suffix is seen and exercised.
    pcn committed Aug 7, 2016
    Configuration menu
    Copy the full SHA
    2c563c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abe1cc7 View commit details
    Browse the repository at this point in the history
  3. Finish fixing the operator precedence tables

    Add the unstable `:` colon and `<-` inplace operators.
    ubsan committed Aug 7, 2016
    Configuration menu
    Copy the full SHA
    7c1bb9a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    56eba5a View commit details
    Browse the repository at this point in the history
  5. Updated the messages for E0017

    - Fix note message, fix tests.
    pcn committed Aug 7, 2016
    Configuration menu
    Copy the full SHA
    ec1ef79 View commit details
    Browse the repository at this point in the history
  6. Fix formatting of module layout example

    Novotnik, Petr committed Aug 7, 2016
    Configuration menu
    Copy the full SHA
    98c6770 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f07f093 View commit details
    Browse the repository at this point in the history
  8. Updated E0087 to new format

    Christian Poveda committed Aug 7, 2016
    Configuration menu
    Copy the full SHA
    8b111a7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e40df1c View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2016

  1. Configuration menu
    Copy the full SHA
    e28521e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6e17ec View commit details
    Browse the repository at this point in the history
  3. book: update example patterns to be more clear

    When using Point { x: 0, y: 0 } and showing pattern matching decomposing
    x and y individually its hard to understand. By using a different value
    for x and a different value for y it is more clear.
    cardoe committed Aug 8, 2016
    Configuration menu
    Copy the full SHA
    18565c6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bd2bd6c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a403ddf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6eb0218 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ee38609 View commit details
    Browse the repository at this point in the history
  8. add test for issue rust-lang#29053

    Felix Rath committed Aug 8, 2016
    Configuration menu
    Copy the full SHA
    3c04ba2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    daf7c60 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    40b2e51 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    156c822 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    da8fed5 View commit details
    Browse the repository at this point in the history
  13. Update E0008 to new format

    srdja committed Aug 8, 2016
    Configuration menu
    Copy the full SHA
    0cb8439 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0a98d73 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ee076dd View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ae9c09d View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2016

  1. Configuration menu
    Copy the full SHA
    b5ead00 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2adc07f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0e8ec43 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    71a34d7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    20ea8cb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0a3564a View commit details
    Browse the repository at this point in the history
  7. Update E0007 to new format

    srdja committed Aug 9, 2016
    Configuration menu
    Copy the full SHA
    aa40ec7 View commit details
    Browse the repository at this point in the history
  8. E0128 update error format

    circuitfox committed Aug 9, 2016
    Configuration menu
    Copy the full SHA
    766a0ab View commit details
    Browse the repository at this point in the history
  9. E0263 updated to new format. rust-lang#35518

    Jakub Hlusička committed Aug 9, 2016
    Configuration menu
    Copy the full SHA
    46265a0 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2016

  1. Configuration menu
    Copy the full SHA
    70e760f View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#35279 - cengizIO:master, r=brson

    Provide a cleaner documentation for 'write!'
    
    Hello!
    
    This is my attempt to fix rust-lang#35110
    
    Any feedback is more than welcome!
    
    Cheers!
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    96c39d2 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#35358 - vadimcn:vscode, r=steveklabnik

    Ignore VS Code settings directory
    
    r? @steveklabnik
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    0996264 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#35371 - mgattozzi:master, r=steveklabnik

    Update HashMap docs regarding DoS protection
    
    Because of changes to how Rust acquires randomness HashMap is not
    guaranteed to be DoS resistant. This commit reflects these changes in
    the docs themselves and provides an alternative method to creating
    a hash that is resistant if needed.
    
    This fixes rust-lang#33817 and includes relevant information regarding changes made in rust-lang#33086
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    192c8b0 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#35396 - munyari:e0191, r=jonathandturner

    Update E0191 to the new error format
    
    Part of rust-lang#35233
    
    "r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    1bad68b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#35445 - pcn:update-E0017-to-new-format, r=a…

    …rielb1
    
    Update e0017 to new format
    
    Updated `span_err!` to use `struct_span_err!` and provide a `span_label` that describes the error in context.
    
    Updated the test to look for the `span_label`s that are provided now.
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    52258c7 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#35446 - pcn:update-E0023-to-new-format, r=j…

    …onathandturner
    
    Update E0023 to the new format
    
    Added some extra code to check for the appropriate ending for numbers ==
    1 vs. not 1 in error messages.
    
    Added an extra test so that the plural suffix is seen and exercised.
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    c867f6c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#35448 - srinivasreddy:rf_compiletest, r=nik…

    …omatsakis
    
    run rustfmt on compiletest folder in src/tools/ folder
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    7a1015e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    41b00f1 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#35452 - ubsan:precedence, r=steveklabnik

    Finish fixing the operator precedence tables
    
    Add the unstable `:` colon and `<-` inplace operators.
    
    r? @steveklabnik
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    7316d22 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#35458 - GuillaumeGomez:test_string_ICE, r=a…

    …lexcrichton
    
    Add run-pass test for issue 33498
    
    Fixes rust-lang#33498.
    
    r? @alexcrichton
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    4ac3a9d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#35465 - cardoe:pattern-book-update, r=steve…

    …klabnik
    
    book: update example patterns to be more clear
    
    When using Point { x: 0, y: 0 } and showing pattern matching decomposing
    x and y individually its hard to understand. By using a different value
    for x and a different value for y it is more clear.
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    2c7a05b View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#35466 - xitep:master, r=steveklabnik

    book: fix formatting of module layout example
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    7377583 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#35470 - munyari:e0214, r=jonathandturner

    Update E0214 to the new error format
    
    Part of rust-lang#35233
    
    Addresses rust-lang#35383
    "r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    9c1e4cb View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#35477 - GuillaumeGomez:fix_E0132, r=jonatha…

    …ndturner
    
    Fix E0132 error display
    
    Error and note now use the same span.
    
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    2c78c42 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#35482 - frewsxcv:patch-31, r=GuillaumeGomez

    Remove unnecessary `main` functions in doc examples.
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    3d5fe6b View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#35484 - KiChjang:e0205-bonus, r=GuillaumeGomez

    Shrink E0205 span label to the trait being implemented
    
    Part of rust-lang#35233.
    Extension of rust-lang#35468.
    Closes rust-lang#35382.
    
    r? @GuillaumeGomez
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    a8d123b View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#35486 - KiChjang:e0081-bonus, r=jonathandtu…

    …rner
    
    Shrink span to variant discriminant expression for E0081
    
    Part of rust-lang#35233.
    Extension of rust-lang#35353.
    Fixes rust-lang#35224.
    
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    1a96a6d View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#35504 - razielgn:updated-e0026-to-new-forma…

    …t, r=jonathandturner
    
    Updated E0026 to new format.
    
    Part of rust-lang#35233.
    Fixes rust-lang#35497.
    
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    e44c7ed View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#35505 - futile:test_29053, r=nikomatsakis

    Add test for issue rust-lang#29053
    
    This PR adds a test for rust-lang#29053 (currently fails on stage 0, but works with stage 1, as it should).
    
    Fixes rust-lang#29053
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    10cbe14 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#35507 - hank-der-hafenarbeiter:master, r=jo…

    …nathandturner
    
    Updated Error mesage to new format for E0221
    
    Part of rust-lang#35386
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    d021df3 View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#35524 - garekkream:update-E0162-new-error-f…

    …ormat, r=jonathandturner
    
    Update E0162 to the new format
    
    Part of rust-lang#35233.
    Fixes rust-lang#35268.
    
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    8a0d0a6 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#35526 - munyari:e0033, r=jonathandturner

    Update E0033 to the new error format
    
    Part of rust-lang#35233
    
    Addresses rust-lang#35498
    "r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    dddc8d5 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#35528 - Vassah:master, r=jonathandturner

    Update Error Format for E0091 and E0092
    
    Addresses [rust-lang#35228](rust-lang#35228) and [rust-lang#35229](rust-lang#35229) as part of [rust-lang#35233](rust-lang#35233).
    
    Please let me know if there are any issues; first time contributor.
    
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    5847faa View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#35530 - srdja:master, r=jonathandturner

    Update E0008 and E0007 to new format
    
    Part of rust-lang#35233
    A fix for rust-lang#35496
    
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    c65f1a5 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#35532 - KiChjang:e0004-follow-up, r=jonatha…

    …ndturner
    
    Do not span across nodes for E0004
    
    Part of rust-lang#35233.
    Fixes rust-lang#35529.
    
    r? @arielb1
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    ecbb3e3 View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#35536 - hank-der-hafenarbeiter:E0433, r=jon…

    …athandturner
    
    Updated E0433 to new error message. (no bonus)
    
    Part of rust-lang#35345
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    61915b4 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#35537 - munyari:e0038, r=jonathandturner

    Update E0038 to the new error format
    
    Part of rust-lang#35233
    
    Addresses rust-lang#35500
    "r? @jonathandturner
    
    This doesn't compile yet, and I need help. In my naive solution, adding the span label makes our error message a mutable `errors::DiagnosticBuilder` pointer.
    
    ```bash
    python src/bootstrap/bootstrap.py --step check-cfail E0038 --stage 1
    ```
    
    ```
    Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
       Compiling rustc v0.0.0 (file:///home/nash/code/rust/src/librustc)
    src/librustc/traits/error_reporting.rs:735:9: 735:12 error: mismatched types [E0308]
    src/librustc/traits/error_reporting.rs:735         err
                                                       ^~~
    src/librustc/traits/error_reporting.rs:735:9: 735:12 help: run `rustc --explain E0308` to see a detailed explanation
    src/librustc/traits/error_reporting.rs:735:9: 735:12 note: expected type `core::option::Option<errors::DiagnosticBuilder<'tcx>>`
    src/librustc/traits/error_reporting.rs:735:9: 735:12 note:    found type `core::option::Option<&mut errors::DiagnosticBuilder<'_>>`
    error: aborting due to previous error
    error: Could not compile `rustc`.
    
    To learn more, run the command again with --verbose.
    
    command did not execute successfully: "/home/nash/code/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "-j" "4" "--target" "x86_64-unknown-linux-gnu" "--release" "--features" " jemalloc" "--manifest-path" "/home/nash/code/rust/src/rustc/Cargo.toml"
    expected success, got: exit code: 101
    ```
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    0e71e44 View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#35541 - hank-der-hafenarbeiter:E0045, r=jon…

    …athandturner
    
    Updated E0045 to new error format (no bonus)
    
    Part of rust-lang#35501
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    01d61a1 View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#35552 - theypsilon:master, r=jonathandturner

    Update error message E0384 to new format
    
    Part of rust-lang#35233
    Fixes rust-lang#35184
    
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    785d0f5 View commit details
    Browse the repository at this point in the history
  31. Rollup merge of rust-lang#35554 - murarth:insert-str-issue, r=apasel422

    Add tracking issue for `String::insert_str`
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    928d105 View commit details
    Browse the repository at this point in the history
  32. Rollup merge of rust-lang#35555 - circuitfox:E0128-update-error-forma…

    …t, r=jonathandturner
    
    E0128 update error format
    
    Fixes rust-lang#35508
    
    Part of rust-lang#35233
    
    r? @jonathandturner
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    5506990 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    11a6619 View commit details
    Browse the repository at this point in the history
  34. Rollup merge of rust-lang#35562 - birkenfeld:as-mut-doc, r=steveklabnik

    Remove redundant `&mut ref mut` in doc for Result::as_mut()
    
    While a good example of how `&mut ref mut` is a no-op, I don't think we should show that here :)
    See https://users.rust-lang.org/t/mnemonic-for-reading-qualifiers/6853
    
    r? @steveklabnik
    steveklabnik authored Aug 10, 2016
    Configuration menu
    Copy the full SHA
    0db7846 View commit details
    Browse the repository at this point in the history