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

Rolling up PRs in the queue #12535

Closed
wants to merge 18 commits into from
Closed

Commits on Feb 25, 2014

  1. rustc: Don't error on the rlib symlinks

    This commit implements a layman's version of realpath() for metadata::loader to
    use in order to not error on symlinks pointing to the same file.
    
    Closes rust-lang#12459
    alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    8922fa0 View commit details
    Browse the repository at this point in the history
  2. Use lines_any() when parsing output form "ar"

    On windows lines are delimited with \r\n while on unix they're delimited with
    \n.
    
    cc rust-lang#12471
    alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    53b9484 View commit details
    Browse the repository at this point in the history
  3. Remove some obsolete ignored tests

    * compile-fail/vec-add.rs is obsolete, there are no mutable
      vectors any more, rust-lang#2711 is closed
    * compile-fail/issue-1451.rs is obsolete, there are no more
      structural records, rust-lang#1451 is closed
    * compile-fail/issue-2074.rs is obsolete, an up to date test
      is in run-pass/nested-enum-same-names.rs, rust-lang#2074 is closed
    * compile-fail/omitted-arg-wrong-types.rs is obsolete, rust-lang#2093
      is closed
    fhahn authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    3ca0167 View commit details
    Browse the repository at this point in the history
  4. std: make .swap_remove return Option<T>.

    This is one of the last raw "indexing" method on vectors that returns
    `T` instead of the Option.
    huonw authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    16e635c View commit details
    Browse the repository at this point in the history
  5. std: Add Vec.reserve for rounding-up reservation.

    `.reserve_exact` can cause pathological O(n^2) behaviour, so providing a
    `.reserve` that ensures that capacity doubles (if you step 1, 2, ..., n)
    is more efficient.
    
    cc rust-lang#11949
    huonw authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    ac64db9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3cc9531 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    84a8893 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dad52cf View commit details
    Browse the repository at this point in the history
  9. syntax: record multibyte chars' positions absolutely, not relative to

    file.
    
    Previously multibyte UTF-8 chars were being recorded as byte offsets
    from the start of the file, and then later compared against global byte
    positions, resulting in the compiler possibly thinking it had a byte
    position pointing inside a multibyte character, if there were multibyte
    characters in any non-crate files. (Although, sometimes the byte offsets
    line up just right to not ICE, but that was a coincidence.)
    
    Fixes rust-lang#11136.
    Fixes rust-lang#11178.
    huonw authored and alexcrichton committed Feb 25, 2014
    2 Configuration menu
    Copy the full SHA
    ff79a44 View commit details
    Browse the repository at this point in the history
  10. syntax: calculate positions of multibyte characters more correctly.

    They are still are not completely correct, since it does not handle
    graphemes at all, just codepoints, but at least it handles the common
    case correctly.
    
    The calculation was previously very wrong (rather than just a little bit
    wrong): it wasn't accounting for the fact that every character is 1
    byte, and so multibyte characters were pretending to be zero width.
    
    cc rust-lang#8706
    huonw authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    8812e8a View commit details
    Browse the repository at this point in the history
  11. Mark by-value parameters that are passed on the stack as nocapture

    The by-value argument is a copy that is only valid for the duration of
    the function call, therefore keeping any pointer to it that outlives the
    call is illegal.
    dotdash authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    0309104 View commit details
    Browse the repository at this point in the history
  12. syntax: allow stmt/expr macro invocations to be delimited by {}.

    This makes using control-flow-y macros like `spawn! { ... }` more fluent
    and natural.
    
    cc rust-lang#11892.
    huonw authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    6757053 View commit details
    Browse the repository at this point in the history
  13. Match binding is assignment

    In its first pass, namely gather_loans, the borrow checker tracks the
    initialization sites among other things it does. It does so for let
    bindings with initializers but not for bindings in match arms, which are
    effectively also assignments. This patch does that for borrow checker.
    
    Closes rust-lang#12452.
    edwardw authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    4690ab0 View commit details
    Browse the repository at this point in the history
  14. Run the travis build as one large command

    It appears that travis doesn't stop running script commands after the first one
    fails (see travis-ci/travis-ci#1066), so chain all our
    commands together with && for now.
    alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    a7b1d65 View commit details
    Browse the repository at this point in the history
  15. Update source code layout in src/

    with the new modules that moved from extra,
    and with other undocumented folders.
    also add a note about potential changes.
    papanikge authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    54abbda View commit details
    Browse the repository at this point in the history
  16. Tutorial: Add std::num::sqrt to the example.

    We should be using the package std::num::sqrt instead of the sqrt function that was defined to return 0.0
    Jag Talon authored and alexcrichton committed Feb 25, 2014
    Configuration menu
    Copy the full SHA
    7fc7c37 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    35f2da4 View commit details
    Browse the repository at this point in the history
  18. Test fixes from rollup

    alexcrichton committed Feb 25, 2014
    5 Configuration menu
    Copy the full SHA
    7d85546 View commit details
    Browse the repository at this point in the history