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 20 pull requests #22439

Closed
wants to merge 62 commits into from
Closed

Commits on Feb 6, 2015

  1. Note that types do not have to be declared in closures

    Without such a clarification, people who know and love closures (for instance
    programmers with a Haskell background) might fear that types would have to
    be declared in closures and that therefore using closures would be much more
    unwieldy.
    iblech committed Feb 6, 2015
    Configuration menu
    Copy the full SHA
    994ccd3 View commit details
    Browse the repository at this point in the history
  2. Fix several tiny typos

    iblech committed Feb 6, 2015
    Configuration menu
    Copy the full SHA
    526e748 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2015

  1. std: Add missing stability for core::fmt

    The `Arguments::new_v1_formatted` function was accidentally left out when this
    module was stabilized.
    alexcrichton committed Feb 12, 2015
    Configuration menu
    Copy the full SHA
    3429486 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2015

  1. Improve core::cmp docs

    steveklabnik committed Feb 13, 2015
    Configuration menu
    Copy the full SHA
    17f9d36 View commit details
    Browse the repository at this point in the history
  2. Rename fmt::Writer to fmt::Write

    This brings it in line with its namesake in `std::io`.
    
    [breaking-change]
    lambda-fairy committed Feb 13, 2015
    Configuration menu
    Copy the full SHA
    bc9084b View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2015

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

Commits on Feb 15, 2015

  1. Include "flatmap" in docs of Option::and_then

    Some newcomers might look for a "flatMap" method on Option. Include the
    reference so that searching the page would find "and_then".
    robinst committed Feb 15, 2015
    Configuration menu
    Copy the full SHA
    dab626b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20d8222 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    52bdda7 View commit details
    Browse the repository at this point in the history
  4. Fix misoptimizations when matching against strings/slices

    When matching against strings/slices, we call the comparison function
    for strings, which takes two string slices by value. The slices are
    passed in memory, and currently we just pass in a pointer to the
    original slice. That can cause misoptimizations because we emit a call
    to llvm.lifetime.end for all by-value arguments at the end of a
    function, which in this case marks the original slice as dead.
    
    So we need to properly create copies of the slices to pass them to the
    comparison function.
    
    Fixes rust-lang#22008
    dotdash committed Feb 15, 2015
    Configuration menu
    Copy the full SHA
    4808561 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2015

  1. Address the other cases of rust-lang#22234; fix rust-lang#22234.

    The other cases: `concat_idents!`, `log_syntax!`, and `trace_macros!`,
    (these macros, with `asm!`, are handled (eagerly) in feature_gate.rs).
    pnkfelix committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    dc0797c View commit details
    Browse the repository at this point in the history
  2. std: Add Vec::from_iter comment

    Requested by Niko in rust-lang#22200 (and is good to have anyway)
    alexcrichton committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    42053b9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    531a06e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    38542cc View commit details
    Browse the repository at this point in the history
  5. Clean up visit_attribute in feature_gate.rs

     - We shouldn't be using `check_name` here at all
     - `contains_name(ref_slice(foo), bar)` is redundant, `contains_name` just iterates over its first arg and calls `check_name`
     - match would be better than a bunch of ifs
    Manishearth committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    99e39f4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    237ae45 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0001817 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d5c3194 View commit details
    Browse the repository at this point in the history
  9. CONTRIBUTING.md redux

    This redux of CONTRIBUTING.md adds in more information, including
    subsuming both compliment-bugreport.md and Note-development-policy
    in the wiki.
    
    I only glanced at the broad TOC of Note-development-policy, and did
    not use the text as the basis for the re-write. This will then address
    the last outstanding part of rust-lang#5831.
    steveklabnik committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    f645cad View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    817f3a4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    839311c View commit details
    Browse the repository at this point in the history
  12. change the signal used to test signal_reported_right

    The test "signal_reported_right" send a signal `1` to `/bin/sh`, and check
    the status code to check if the signal is reported right.
    
    Under OpenBSD, the signal `1` (`SIGHUP`) is catched by `/bin/sh`,
    resulting the test failed.
    
    Use the uncatchable signal `9` (`SIGKILL`) for test.
    semarie committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    5a6ea7a View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    79318b7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a97588c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    480ea5a View commit details
    Browse the repository at this point in the history
  16. Replace some uses of deprecated os functions

    This commit mostly replaces some of the uses of os::args with env::args.
    nagisa committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    7d941fa View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    1a133f3 View commit details
    Browse the repository at this point in the history
  18. Remove hax

    steveklabnik committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    eeee0e8 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    ad827af View commit details
    Browse the repository at this point in the history
  20. Add Gated attribute type

    Manishearth committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    5ffb7db View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    0112f3b View commit details
    Browse the repository at this point in the history
  22. Rewrite the macros chapter

    This is a more introductory document, suitable for Part II.  The arcane details
    move to an "Advanced macros" chapter in Part III.
    kmcallister committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    6cef0e5 View commit details
    Browse the repository at this point in the history
  23. fix linkage tests

    Manishearth committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    1fffdaf View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    0129002 View commit details
    Browse the repository at this point in the history
  25. Fix tests for rustc_*

    Manishearth committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    1bbf718 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    f64d71b View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    918d097 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2015

  1. Configuration menu
    Copy the full SHA
    a1b7558 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#21990 - steveklabnik:doc_core_cmp, r=huonw

    Fix up, add examples, make them all the same.
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    522091e View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#22027 - iblech:patch-1, r=steveklabnik

    The first commit adds a short note which I believe will reduce worries in people who work with closures very often and read the Rust book for their first time.
    
    The second commit consists solely of tiny typo fixes. In some cases, I changed "logical" quotations like
    
        She said, "I like programming".
    
    to
    
        She said, "I like programming."
    
    because the latter seems to be the prevalent style in the book.
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    2d94c44 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#22111 - robinst:option-docs-flatmap, r=stev…

    …eklabnik
    
    Some newcomers might look for a "flatMap" method on Option. Include the
    reference so that searching the page would find "and_then".
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    e4e4afa View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#22232 - alexcrichton:missing-fmt-stability,…

    … r=aturon
    
    The `Arguments::new_v1_formatted` function was accidentally left out when this
    module was stabilized.
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    ab51363 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#22282 - steveklabnik:gh5831, r=brson

    This redux of CONTRIBUTING.md adds in more information, including
    subsuming both compliment-bugreport.md and Note-development-policy
    in the wiki.
    
    I only glanced at the broad TOC of Note-development-policy, and did
    not use the text as the basis for the re-write. This will then address
    the last outstanding part of rust-lang#5831.
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    edac2a0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2aa3182 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#22333 - caipre:patch-1, r=steveklabnik

    The `Circle::grow` method multiplies the radius by a factor of 10, not 2.
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    4a7eed1 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#22385 - dotdash:slice_by_val_copy, r=nikoma…

    …tsakis
    
    When matching against strings/slices, we call the comparison function
    for strings, which takes two string slices by value. The slices are
    passed in memory, and currently we just pass in a pointer to the
    original slice. That can cause misoptimizations because we emit a call
    to llvm.lifetime.end for all by-value arguments at the end of a
    function, which in this case marks the original slice as dead.
    
    So we need to properly create copies of the slices to pass them to the
    comparison function.
    
    Fixes rust-lang#22008
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    34ab88e View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#22394 - alexcrichton:vec-from-iter-comment,…

    … r=brson
    
    Requested by Niko in rust-lang#22200 (and is good to have anyway)
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    071f8cc View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c0865df View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#22402 - nagisa:spring-cleanup-2, r=nikomats…

    …akis
    
    This commit mostly replaces some of the uses of os::args with env::args.
    
    This, for obvious reasons is based on top of rust-lang#22400. Do not r+ before that lands.
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    2833976 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#22408 - steveklabnik:gh19321, r=nikomatsakis

    Fixes rust-lang#19321
    
    ... I think? `make check` passes, but I'm not 100% sure that there's a test for that behavior. Thoughts?
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    be83d60 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#22410 - Reignbeaux:master, r=steveklabnik

    I just stumbled on a typo and fixed it.
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    9eed8b1 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5e0adf2 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#22404 - semarie:signal_reported_right, r=at…

    …uron
    
     The test \"signal_reported_right\" send a signal `1` to `/bin/sh`, and check
    the status code to check if the signal is reported right.
    
    Under OpenBSD, the signal `1` (`SIGHUP`) is catched by `/bin/sh`,
    resulting the test failed.
    
    Use the uncatchable signal `9` (`SIGKILL`) for test.
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    1a1ac6c View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#22364 - Manishearth:rfc-572-forbid-attr, r=…

    …nikomatsakis
    
     fixes rust-lang#22203
    
    r? @nikomatsakis
    
    This breaks code that might be using attributes randomly, so it's technically a
    
    [breaking-change]
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    4647d89 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#22311 - lfairy:consistent-fmt, r=alexcrichton

     This brings it in line with its namesake in `std::io`.
    
    [breaking-change]
    
    r? @aturon
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    bf52f2e View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#22030 - mdinger:f32_examples, r=steveklabnik

     Some examples for `std::num::Float`
    
    ~~This is WIP for making examples for `f32`. This probably won't pass `make tidy` and I'm not sure which `f32` needs documentation. rust-lang#22025 shows 2 sets of `f32` which seems split between `core` and `std`. I'm not sure which should be documented but I started doing a couple from `std`. Easy to move if that's where they go...~~
    
    ~~Gotta build it eventually to actually see if the docs actually appear where I think they will or if I'm just disillusioned.~~
    
    cc @steveklabnik
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    0e89228 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#22383 - pnkfelix:pass-features-along-during…

    …-expansion, r=huonw
    
     Pass features along during expansion
    
    Use the set of passed features to detect uses of feature-gated macros without the corresponding feature enabled.
    
    Fix rust-lang#22234.
    
    ----
    
    Also, the framework this add (passing along a reference to the features in the expansion context) is a necessary precursor for landing a properly feature-gated desugaring-based overloaded-`box` and placement-`in` (rust-lang#22181).
    
    ----
    
    This is fixing a bug, but since there might be code out there that is unknowingly taking advantage of that bug, I feel obligated to mark this as a:
    
    [breaking-change]
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    020e4e4 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#22393 - kmcallister:macros-chapter , r=stev…

    …eklabnik
    
    This is a more introductory document, suitable for Part II. The arcane details move to an "Advanced macros" chapter in Part III.
    
    Conflicts:
    	src/doc/trpl/macros.md
    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    09eb965 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    bb0bbf6 View commit details
    Browse the repository at this point in the history
  23. Fix failing tests

    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    a672498 View commit details
    Browse the repository at this point in the history
  24. fix windows

    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    10f51fc View commit details
    Browse the repository at this point in the history
  25. fix doctest

    Manishearth committed Feb 17, 2015
    Configuration menu
    Copy the full SHA
    096b105 View commit details
    Browse the repository at this point in the history