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 19 pull requests #39563

Merged
merged 56 commits into from
Feb 5, 2017
Merged

Rollup of 19 pull requests #39563

merged 56 commits into from
Feb 5, 2017

Commits on Jan 9, 2017

  1. Support unprivileged symlink creation in Windows

    Symlink creation on Windows has in the past basically required admin;
    it’s being opened up a bit in the Creators Update, so that at least
    people who have put their computers into Developer Mode will be able to
    create symlinks without special privileges. (Microsoft are being
    cautious about it all; the Developer Mode requirement makes it so that
    it this won’t be as helpful as I’d like, but it’s still an improvement
    over requiring admin.)
    
    Because of compatibility concerns, they’ve hidden this new functionality
    behind a new flag in the CreateSymbolicLink dwFlags:
    SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE. So we add this flag in
    order to join the party.
    
    Older Windows doesn’t like this new flag, though, so if we encounter
    ERROR_INVALID_PARAMETER we try again without the new flag.
    
    Sources:
    
    - https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/
      is the official announcement (search for CreateSymbolicLink)
    
    - https://news.ycombinator.com/item?id=13096354 on why the new flag.
    
    - https://twitter.com/richturn_ms/status/818167548269051905 confirming
      that Developer Mode will still be required.
    chris-morgan committed Jan 9, 2017
    Configuration menu
    Copy the full SHA
    02ae1e1 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2017

  1. Add 128-bit atomics

    Amanieu committed Jan 10, 2017
    Configuration menu
    Copy the full SHA
    9903975 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2017

  1. branchless .filter(_).count()

    llogiq committed Jan 16, 2017
    Configuration menu
    Copy the full SHA
    6c94089 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2017

  1. fix style nits

    llogiq committed Jan 17, 2017
    Configuration menu
    Copy the full SHA
    27f7615 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2017

  1. add test case for filter+count

    llogiq committed Jan 18, 2017
    Configuration menu
    Copy the full SHA
    b40432c View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2017

  1. Expand documentation of process::exit and exec

    Show a conventional way to use process::exit when destructors are considered important and also
    mention that the same caveats wrt destructors apply to exec as well.
    nagisa committed Jan 19, 2017
    Configuration menu
    Copy the full SHA
    c2eab73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2bafbba View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2017

  1. Separate emscripten args

    pepyakin committed Jan 20, 2017
    Configuration menu
    Copy the full SHA
    62c088c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24cb5b7 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2017

  1. add explanation, fix test

    llogiq committed Jan 24, 2017
    Configuration menu
    Copy the full SHA
    bfabe81 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2017

  1. Fix full path being output with rustdoc -h

    rustdoc would output the full path to the binary when calling it with
    the `-h` or `--help` flags. This is undesired behavior. It has been
    replaced with a hardcoded string `rustdoc` to fix the issue.
    
    Fixes rust-lang#39310
    mgattozzi committed Jan 26, 2017
    Configuration menu
    Copy the full SHA
    bb34856 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2017

  1. Fix a few impl stability attributes

    The versions show up in rustdoc.
    ollie27 committed Jan 29, 2017
    Configuration menu
    Copy the full SHA
    9128f61 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2017

  1. Configuration menu
    Copy the full SHA
    395f23c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89f9767 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    823e185 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a0efdf3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8e793eb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    51e5cb5 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2017

  1. Add a name for the parameter to TryFrom::try_from.

    Although signatures with anonymous parameters may not be deprecated or
    removed at this point, the team seems to agree that the ability to have
    an anonymous parameter is unfortunate historical baggage, and that we
    shouldn't create new code that uses it.
    
    Context: rust-lang#33417 (comment)
    jimmycuadra committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    2add6ac View commit details
    Browse the repository at this point in the history
  2. rustbuild: Add x.py to source tarballs

    We should be sure to add our build system entry point!
    
    Closes rust-lang#39476
    alexcrichton committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    681bc5c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2cc84df View commit details
    Browse the repository at this point in the history
  4. Fix make tidy

    canndrew committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    c570cd6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5dbaefb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    085f046 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5c90dd7 View commit details
    Browse the repository at this point in the history
  8. Fix test

    canndrew committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    6a99573 View commit details
    Browse the repository at this point in the history
  9. Fix test

    canndrew committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    40c9538 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2017

  1. Fix test

    canndrew committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    7444d07 View commit details
    Browse the repository at this point in the history
  2. Expand defaulted unit test

    canndrew committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    42f3ac5 View commit details
    Browse the repository at this point in the history
  3. README path correction

    king6cong committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    b4ef361 View commit details
    Browse the repository at this point in the history
  4. libstd/net: Add peek APIs to UdpSocket and TcpStream

    These methods enable socket reads without side-effects. That is,
    repeated calls to peek() return identical data. This is accomplished
    by providing the POSIX flag MSG_PEEK to the underlying socket read
    operations.
    
    This also moves the current implementation of recv_from out of the
    platform-independent sys_common and into respective sys/windows and
    sys/unix implementations. This allows for more platform-dependent
    implementations.
    Tyler Julian committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    a40be08 View commit details
    Browse the repository at this point in the history
  5. Make builtin derives a SyntaxExtension

    This allows builtin derives to be registered and
    resolved, just like other derive types.
    keeperofdakeys committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    0477daf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0a7380d View commit details
    Browse the repository at this point in the history
  7. Move derive macro expansion into the MacroExpander

    This removes the expand_derives function, and sprinkles
    the functionality throughout the Invocation Collector,
    Expander and Resolver.
    keeperofdakeys committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    fbdd038 View commit details
    Browse the repository at this point in the history
  8. Provide Entry-like API for Option

    This implements rust-lang#39288.
    
    Thanks to @steveklabnik and @oli-obk for their review comments :)
    shahn committed Feb 4, 2017
    Configuration menu
    Copy the full SHA
    8e02ad0 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2017

  1. Update pretty test for derive attributes

    Remove attr-variant-data.rs since it relies on quirks
    in legacy custom derive resolution (undefined derives
    only print a warning).
    
    Add a new test which uses a defined proc macro derive,
    and tests pretty printing of proc macro derive
    attributes.
    keeperofdakeys committed Feb 5, 2017
    Configuration menu
    Copy the full SHA
    a201348 View commit details
    Browse the repository at this point in the history
  2. correct version in which more_struct_aliases was/will be stable

    The stabilizing commit is 5056a43, which is not in 1.14, but is (at
    time of writing) on the 1.16 beta branch.
    zackmdavis committed Feb 5, 2017
    Configuration menu
    Copy the full SHA
    5e06aee View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#38518 - nagisa:exec-doc, r=alexcrichton

    Expand documentation of process::exit and exec
    
    Show a conventional way to use process::exit when destructors are considered important and also
    mention that the same caveats wrt destructors apply to exec as well.
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    001bfb9 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#38921 - chris-morgan:windows-unprivileged-s…

    …ymlink-creation, r=alexcrichton
    
    Support unprivileged symlink creation in Windows
    
    Symlink creation on Windows has in the past basically required admin; it’s being opened up a bit in the Creators Update, so that at least people who have put their computers into Developer Mode will be able to create symlinks without special privileges. (It’s unclear from what Microsoft has said whether Developer Mode will be required in the final Creators Update release, but sadly I expect it still will be, so this *still* won’t be as helpful as I’d like.)
    
    Because of compatibility concerns, they’ve hidden this new functionality behind a new flag in the CreateSymbolicLink dwFlags: `SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE`. So we add this flag in order to join the party.
    
    Sources:
    
    - https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/ is the official announcement (search for CreateSymbolicLink)
    
    - https://news.ycombinator.com/item?id=13096354 on why the new flag.
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    6a4c906 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#38959 - Amanieu:atomic128, r=alexcrichton

    Add 128-bit atomics
    
    This is currently only supported on AArch64 since that is the only target which unconditionally supports 128-bit atomic operations.
    
    cc rust-lang#35118
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    c4c6c49 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#38983 - APTy:udp-peek, r=aturon

    Add peek APIs to std::net
    
    Adds "peek" APIs to `std::net` sockets, including:
    - `UdpSocket.peek()`
    - `UdpSocket.peek_from()`
    - `TcpStream.peek()`
    
    These methods enable socket reads without side-effects. That is, repeated calls to `peek()` return identical data. This is accomplished by providing the POSIX flag `MSG_PEEK` to the underlying socket read operations.
    
    This also moves the current implementation of `recv_from` out of the platform-independent `sys_common` and into respective `sys/windows` and `sys/unix` implementations. This allows for more platform-dependent implementations where necessary.
    
    Fixes rust-lang#38980
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    ca202fe View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#39009 - canndrew:default-unit-warnings, r=n…

    …ikomatsakis
    
    Add warning for () to ! switch
    
    With feature(never_type) enabled diverging type variables will default to `!` instead of `()`. This can cause breakages where a trait is resolved on such a type.
    
    This PR emits a future-compatibility warning when it sees this happen.
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    4f8ce9e View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#39107 - llogiq:branchless_filter_count, r=a…

    …lexcrichton
    
    branchless .filter(_).count()
    
    I found that the branchless version is only slower if we have little to no branch misses, which usually isn't the case. I notice speedups between -5% (perfect prediction) and 60% (real world data).
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    8163b4b View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#39193 - pepyakin:emcc-strip-panic-rt, r=ale…

    …xcrichton
    
    Tell emscripten to remove exception handling code when panic=abort
    
    Fixes rust-lang#36900
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    49cd748 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#39289 - shahn:option_entry, r=alexcrichton

    Provide Entry-like API for Option
    
    This implements rust-lang#39288.
    
    I am wondering whether to use std::intrinsics::unreachable!() here. Both seems fine to me (the second match optimizes away in release mode).
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    76e9ea7 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#39312 - mgattozzi:rustdoc-help-fix, r=alexc…

    …richton
    
    Fix full path being output with `rustdoc -h`
    
    rustdoc would output the full path to the binary when calling it with
    the `-h` or `--help` flags. This is undesired behavior. It has been
    replaced with a hardcoded string `rustdoc` to fix the issue.
    
    Fixes rust-lang#39310
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    5cfd5ed View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#39393 - ollie27:stab_impls, r=alexcrichton

    Fix a few impl stability attributes
    
    The versions show up in rustdoc.
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    65b2477 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#39442 - keeperofdakeys:expand-derives, r=js…

    …eyfried
    
    Expand derive macros in the MacroExpander
    
    This removes the expand_derives function, and sprinkles the functionality throughout the Invocation Collector, Expander and Resolver.
    
    Fixes rust-lang#39326
    
    r? @jseyfried
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    805a99e View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#39443 - phungleson:remove-unresolved-things…

    …, r=nikomatsakis
    
    Don't suggest to use things which weren't found either
    
    Fixes rust-lang#38054
    
    The best code I can come up with, suggestions are welcome.
    
    Basically, removing ```. Did you mean to use `DoesntExist1`?``` in the code below, because it is useless.
    
    ```rust
    error[E0432]: unresolved import `DoesntExist1`
     --> src/lib.rs:1:5
      |
    1 | use DoesntExist1;
      |     ^^^^^^^^^^^^ no `DoesntExist1` in the root
    
    error[E0432]: unresolved import `DoesntExist2`
     --> src/lib.rs:2:5
      |
    2 | use DoesntExist2;
      |     ^^^^^^^^^^^^ no `DoesntExist2` in the root. Did you mean to use `DoesntExist1`?
    ```
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    cd5c520 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#39453 - nrc:save-path, r=nikomatsakis

    save-analysis: be more paranoid about generated paths
    
    fixes rust-lang/rls#160
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    ece9240 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#39454 - abonander:proc_macro_tracking_issue…

    …, r=jseyfried
    
    Change tracking issue for `proc_macro` feature to rust-lang#38356
    
    r? @jseyfried
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    296c07e View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#39471 - djc:bootstrap-user, r=alexcrichton

    Fix bootstrap.py issues with new rustbuild build system (fixes rust-lang#39469)
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    e7f6c36 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#39477 - jimmycuadra:try-from-parameter-name…

    …, r=alexcrichton
    
    Add a name for the parameter to `TryFrom::try_from`.
    
    Although signatures with anonymous parameters may not be deprecated or removed at this point, the team seems to agree that the ability to have an anonymous parameter is unfortunate historical baggage, and that we shouldn't create new code that uses it.
    
    Context: rust-lang#33417 (comment)
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    e06fa7c View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#39478 - alexcrichton:add-xpy, r=japaric

    rustbuild: Add x.py to source tarballs
    
    We should be sure to add our build system entry point!
    
    Closes rust-lang#39476
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    403ca55 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#39527 - king6cong:bootstrap-doc, r=alexcric…

    …hton
    
    README path correction
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    94fd315 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#39552 - zackmdavis:more_struct_aliases_stab…

    …ilization_version, r=petrochenkov
    
    correct version in which more_struct_aliases was/will be stable
    
    The stabilizing commit is 5056a43, which is not in 1.14, but is (at
    time of writing) on the 1.16 beta branch. [See discussion](rust-lang#39282 (comment)).
    frewsxcv authored Feb 5, 2017
    Configuration menu
    Copy the full SHA
    0a09274 View commit details
    Browse the repository at this point in the history