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

[beta] Attempt to fix the component manifest problem for rls-preview #44352

Closed
wants to merge 338 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Aug 11, 2017

  1. Configuration menu
    Copy the full SHA
    3971a3d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84af3d8 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2017

  1. Configuration menu
    Copy the full SHA
    fa18aa3 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/rust-lang/rust into gen

    # Conflicts:
    #	src/librustc_mir/build/scope.rs
    Zoxc committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    d020ff0 View commit details
    Browse the repository at this point in the history
  3. Fix errors

    Zoxc committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    1787d4e View commit details
    Browse the repository at this point in the history
  4. Fix UI test

    alexcrichton committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    6eab1ca View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2017

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

Commits on Aug 15, 2017

  1. Configuration menu
    Copy the full SHA
    1413253 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22ebcac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6b9690 View commit details
    Browse the repository at this point in the history
  4. Remove fixme

    Zoxc committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    17197c6 View commit details
    Browse the repository at this point in the history
  5. Add clippy as a submodule

    oli-obk committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    1766992 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    49fca85 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f467776 View commit details
    Browse the repository at this point in the history
  8. Add a Cargo.lock to clippy

    oli-obk committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    b9e4bdb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    93a9183 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2017

  1. Configuration menu
    Copy the full SHA
    c3b27d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1210ebf View commit details
    Browse the repository at this point in the history
  3. Fix merge conflict

    alexcrichton committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    0697e4b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5f4a99f View commit details
    Browse the repository at this point in the history
  5. Fix merge conflicts

    alexcrichton committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    63477fd View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2017

  1. Configuration menu
    Copy the full SHA
    e83c808 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e472c2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bdb7901 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4b5f330 View commit details
    Browse the repository at this point in the history
  5. Fix UI tests

    alexcrichton committed Aug 17, 2017
    Configuration menu
    Copy the full SHA
    a47038f View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2017

  1. Fix more UI tests

    alexcrichton committed Aug 18, 2017
    Configuration menu
    Copy the full SHA
    9620d26 View commit details
    Browse the repository at this point in the history
  2. Fix a diagnostic

    alexcrichton committed Aug 18, 2017
    Configuration menu
    Copy the full SHA
    e70cc27 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2017

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

Commits on Aug 21, 2017

  1. Add align_offset intrinsic

    see rust-lang/rfcs#2043 for details
    oli-obk committed Aug 21, 2017
    Configuration menu
    Copy the full SHA
    1dc3a2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b31998e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    35b8dba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5dc9d71 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2017

  1. Configuration menu
    Copy the full SHA
    04c66c3 View commit details
    Browse the repository at this point in the history
  2. More merge conflicts

    alexcrichton committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    c74ff32 View commit details
    Browse the repository at this point in the history
  3. Update intrinsics.rs

    oli-obk committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    be96ad2 View commit details
    Browse the repository at this point in the history
  4. Split print function

    kornelski committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    0314e10 View commit details
    Browse the repository at this point in the history
  5. --print=native-static-libs

    kornelski committed Aug 22, 2017
    Configuration menu
    Copy the full SHA
    2920658 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2017

  1. Add reset_err_count() to errors::Handler

    The motivation here is to allow rustfmt to recover from parse errors
    after failing to parse macros.
    topecongiro committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    601e3da View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2017

  1. Configuration menu
    Copy the full SHA
    20f1e68 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0727ade View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b44e51c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8cd4cac View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2017

  1. Configuration menu
    Copy the full SHA
    c872f47 View commit details
    Browse the repository at this point in the history
  2. Fix indentation

    alexcrichton committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    b28aeeb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    303a264 View commit details
    Browse the repository at this point in the history
  4. Fix merge conflict

    alexcrichton committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    8c97ffa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    74b93f3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ed5bc60 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1917ffe View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b4c5471 View commit details
    Browse the repository at this point in the history
  9. Add some comments and fix a typo

    Zoxc committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    c711531 View commit details
    Browse the repository at this point in the history
  10. Clean up YieldFinder

    Zoxc committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    5366135 View commit details
    Browse the repository at this point in the history
  11. rustc: Fix proc_macro expansions on trait methods

    This commit fixes procedural macro attributes being attached to trait methods,
    ensuring that they get resolved and expanded as other procedural macro
    attributes. The bug here was that `current_module` on the resolver was
    accidentally set to be a trait when it's otherwise only ever expecting a
    `mod`/block module. The actual fix here came from @jseyfried, I'm just helping
    to land it in the compiler!
    
    Closes rust-lang#42493
    alexcrichton committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    ce322ee View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2017

  1. Do not include the src/Cargo.toml

    distcheck complains that this file references projects not cotnained in the tarball
    RalfJung committed Aug 26, 2017
    Configuration menu
    Copy the full SHA
    bd24325 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c3c43c View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2017

  1. Clarify that VecDeque::swap can panic

    The previous documentation mentioned this, but ambiguously used the term "fail".
    
    This clarifies that the function will panic if the index is out of bounds, instead of silently failing and not doing anything.
    daboross committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    f1b91f4 View commit details
    Browse the repository at this point in the history
  2. clear out projection subobligations after they are processed

    After a projection was processed, its derived subobligations no longer
    need any processing when encountered, and can be removed. This improves
    the status of rust-lang#43787.
    
    This is actually complementary to rust-lang#43938 - that PR fixes selection
    caching (and @remram44's example, which "accidentally" worked because of
    the buggy projection caching) while this PR fixes projection caching
    arielb1 committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    7534f73 View commit details
    Browse the repository at this point in the history
  3. Fail ./x.py on invalid command

    Make the ./x.py script fail when run with an invalid command, like:
    
      ./x.py nonsense
    
    This helps in case of chaining multiple runs, eg.:
    
      ./x.py biuld && ./x.py test
    vorner committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    6fc35de View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2017

  1. Update rls

    Zoxc committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    7c5780b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d29af37 View commit details
    Browse the repository at this point in the history
  3. Update lock file

    alexcrichton committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    8a9e32b View commit details
    Browse the repository at this point in the history
  4. rustbuild: Rewrite the configure script in Python

    This commit rewrites our ancient `./configure` script from shell into Python.
    The impetus for this change is to remove `config.mk` which is just a vestige of
    the old makefile build system at this point. Instead all configuration is now
    solely done through `config.toml`.
    
    The python script allows us to more flexibly program (aka we can use loops
    easily) and create a `config.toml` which is based off `config.toml.example`.
    This way we can preserve comments and munge various values as we see fit.
    
    It is intended that the configure script here is a drop-in replacement for the
    previous configure script, no functional change is intended. Also note that the
    rationale for this is also because our build system requires Python, so having a
    python script a bit earlier shouldn't cause too many problems.
    
    Closes rust-lang#40730
    alexcrichton committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    a9b0a7b View commit details
    Browse the repository at this point in the history
  5. bootstrap: remove unneeded extern crate

    The crate itself is internally referenced by serde_derive.
    ishitatsuyuki committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    45d31ac View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9eff522 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#44107 - alexcrichton:no-shell-configure, r=Ma…

    …rk-Simulacrum
    
    rustbuild: Rewrite the configure script in Python
    
    This commit rewrites our ancient `./configure` script from shell into Python.
    The impetus for this change is to remove `config.mk` which is just a vestige of
    the old makefile build system at this point. Instead all configuration is now
    solely done through `config.toml`.
    
    The python script allows us to more flexibly program (aka we can use loops
    easily) and create a `config.toml` which is based off `config.toml.example`.
    This way we can preserve comments and munge various values as we see fit.
    
    It is intended that the configure script here is a drop-in replacement for the
    previous configure script, no functional change is intended. Also note that the
    rationale for this is also because our build system requires Python, so having a
    python script a bit earlier shouldn't cause too many problems.
    
    Closes rust-lang#40730
    Closes rust-lang#43295
    Closes rust-lang#42255
    Closes rust-lang#38058
    Closes rust-lang#32176
    bors committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    a0c3bd2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b8c05fe View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9b61771 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c76a024 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    876278f View commit details
    Browse the repository at this point in the history
  12. feature error span on attr. for fn_must_use, SIMD/align, macro reëxport

    There were several feature-gated attributes for which the
    feature-not-available error spans would point to the item annotated with
    the gated attribute, when it would make more sense for the span to point
    to the attribute itself: if the attribute is removed, the
    function/struct/&c. likely still makes sense and the program will
    compile. (Note that we decline to make the analogous change for the
    `main`, `start`, and `plugin_registrar` features, for in those cases it
    makes sense for the span to implicate the entire function, of which
    there is little hope of using without the gated attribute.)
    zackmdavis committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    8bb2946 View commit details
    Browse the repository at this point in the history
  13. Initial diagnostic API for proc-macros.

    This commit introduces the ability to create and emit `Diagnostic`
    structures from proc-macros, allowing for proc-macro authors to emit
    warning, error, note, and help messages just like the compiler does.
    SergioBenitez committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    8be132e View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#44114 - daboross:patch-1, r=dtolnay

    Clarify that VecDeque::swap can panic
    
    The previous documentation mentioned this, but ambiguously used the term "fail".
    
    This clarifies that the function will panic if the index is out of bounds, instead of silently failing and not doing anything.
    
    If there's anything else I can do to improve this PR, I'd be happy to do so! Just saw this when reading through the docs in passing - it was slightly unclear what "fail" meant.
    bors committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    5caca6f View commit details
    Browse the repository at this point in the history
  15. compiletest: Change Config comments to doc comments

    Thomas Jespersen committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    2bffa31 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    0b72497 View commit details
    Browse the repository at this point in the history
  17. Rewrite std::net::ToSocketAddrs doc examples.

    in particular:
    
    * show how to create an iterator that yields multiple socket addresses
    * show more failing scenarios
    frewsxcv committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    10bd39e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a996d5e View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2f19383 View commit details
    Browse the repository at this point in the history
  20. Update the libc submodule

    Brings in a few fixes for wasm/asmjs
    alexcrichton committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    e5b123c View commit details
    Browse the repository at this point in the history
  21. std: Mark allocation functions as nounwind

    This commit flags all allocation-related functions in liballoc as "this can't
    unwind" which should largely resolve the size-related issues found on rust-lang#42808.
    The documentation on the trait was updated with such a restriction (they can't
    panic) as well as some other words about the relative instability about
    implementing a bullet-proof allocator.
    
    Closes rust-lang#42808
    alexcrichton committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    b6f554b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    fb30dd7 View commit details
    Browse the repository at this point in the history
  23. Auto merge of rust-lang#43076 - Zoxc:gen, r=arielb1

    Generator support
    
    This adds experimental support for generators intended to land once rust-lang/rfcs#2033 is approved.
    
    This is not yet ready to be merged. Things to do:
    - [x] Make closure arguments on generators an error
    - [x] Spot FIXMEs
    - [x] Pass make tidy
    - [x] Write tests
    - [x] Document the current syntax and semantics for generators somewhere
    - [x] Use proper error message numbers
    - [x] ~~Make the implicit argument type default to `()`~~
    bors committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    9a59d69 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    f50bf86 View commit details
    Browse the repository at this point in the history
  25. Auto merge of rust-lang#43999 - arielb1:immediate-project, r=nikomats…

    …akis
    
    clear out projection subobligations after they are processed
    
    After a projection was processed, its derived subobligations no longer
    need any processing when encountered, and can be removed. This improves
    the status of rust-lang#43787.
    
    This is actually complementary to rust-lang#43938 - that PR fixes selection
    caching (and @remram44's example, which "accidentally" worked because of
    the buggy projection caching) while this PR fixes projection caching.
    
    r? @nikomatsakis
    bors committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    bef07b8 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2017

  1. Auto merge of rust-lang#44049 - alexcrichton:nounwind-allocators, r=B…

    …urntSushi
    
    std: Mark allocation functions as nounwind
    
    This commit flags all allocation-related functions in liballoc as "this can't
    unwind" which should largely resolve the size-related issues found on rust-lang#42808.
    The documentation on the trait was updated with such a restriction (they can't
    panic) as well as some other words about the relative instability about
    implementing a bullet-proof allocator.
    
    Closes rust-lang#42808
    bors committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    d2d5069 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d66f0c2 View commit details
    Browse the repository at this point in the history
  3. rustbuild: Fix uplifting stage1 on cross builds

    When we pass `--host` the `self.hosts` array doesn't contain `self.build`, so
    check `self.build` to see if we can uplift.
    alexcrichton committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    7007a44 View commit details
    Browse the repository at this point in the history
  4. rustbuild: Fix dependencies of build-manifest

    No need to depend on librustc! All we need is libstd
    
    Closes rust-lang#44140
    alexcrichton committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    ecd127d View commit details
    Browse the repository at this point in the history
  5. use an optional bool to keep track of ignore-git setting, if not spec…

    …ified by the end, use the channel to determine its value
    JeremySorensen committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    5009a22 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#44059 - oli-obk:ok_suggestion, r=nikomatsakis

    Suggest `Ok(())` when encountering `Result::<(), E>::Ok()`
    bors committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    6f82dea View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#44111 - zackmdavis:feature_attr_error_span, r…

    …=nikomatsakis
    
    feature error span on attribute for fn_must_use, SIMD/align reprs, macro reëxport
    
    There were several feature-gated attributes for which the feature-not-available
    error spans would point to the item annotated with the gated attribute, when it
    would make more sense for the span to point to the attribute itself: if the
    attribute is removed, the function/struct/_&c._ likely still makes sense and the
    program will compile. (Note that we decline to make the analogous change for
    the `main`, `start`, and `plugin_registrar` features, for in those cases it
    makes sense for the span to implicate the entire function, of which there is
    little hope of using without the gated attribute.)
    
    ![feature_attr_error_span](https://user-images.githubusercontent.com/1076988/29746531-fd700bfe-8a91-11e7-9c5b-6f5324083887.png)
    bors committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    faf477a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fceab9f View commit details
    Browse the repository at this point in the history
  9. Track closure signatures & kinds in freshened types

    This allows caching closure signatures and kinds in the normal selection
    and evaluation caches, and fixes the exponential worst-case in
    @remram44's example, which is a part of rust-lang#43787.
    
    This improvement is complenentary to rust-lang#43999 - they fix different cases.
    arielb1 committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    75d6820 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9be155d View commit details
    Browse the repository at this point in the history
  11. Fix alloc_jemalloc debug feature

    At least, I think that's how it should be.  'debug' is how the feature is called in Cargo.toml.
    RalfJung committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    7d9e26f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    16fc74c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    68aab69 View commit details
    Browse the repository at this point in the history
  14. rustc: Remove specailization_cache in favor of a query

    This commit removes the `specialization_cache` field of `TyCtxt` by moving it to
    a dedicated query, which it turned out was already quite easily structured to do
    so!
    alexcrichton committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    27c4ff6 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d24ee23 View commit details
    Browse the repository at this point in the history
  16. remove the data from ClosureCandidate

    the data serves no purpose - it can be recovered from the obligation -
    and I think may leak stale inference variables into global caches.
    arielb1 committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    6c11b47 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    de0e695 View commit details
    Browse the repository at this point in the history
  18. resolve type vars with obligations in more places

    This fixes a few cases of inference misses, some of them regressions
    caused by the impl selected for a method not being immediately evaluated.
    arielb1 committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    15f6540 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    4312ed7 View commit details
    Browse the repository at this point in the history
  20. rustbuild: Don't require cross-compiled error index

    All architectures use the same errors, no need to cross-compile a version only
    to not look at it.
    alexcrichton committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    1d70b66 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b9b6549 View commit details
    Browse the repository at this point in the history
  22. Auto merge of rust-lang#43648 - RalfJung:jemalloc-debug, r=alexcrichton

    Fix alloc_jemalloc debug feature
    
    At least, I think that's how it should be.  'debug' is how the feature is called in liballoc_jemalloc/Cargo.toml and libstd/Cargo.toml. I verified this by making the build script panic rather than adding `--enable-debug`, and without this PR, the panic does not occur even when I set `debug-jemalloc = true` in config.toml. With the PR, the panic occurs as expected.
    
    However, I actually have no idea what I am doing here.
    bors committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    630e02f View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    84c5441 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#43705 - panicbit:option_ref_mut_cloned, r=a…

    …turon
    
    libcore: Implement cloned() for Option<&mut T>
    
    None
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    11e75fd View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#43778 - topecongiro:handler-reset-err-count…

    …, r=arielb1
    
    Add reset_err_count() to errors::Handler
    
    The motivation here is to allow rustfmt to recover from parse errors after failing to parse macros (cc rust-lang/rustfmt#1742).
    r? @nrc
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    64a21f8 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#43918 - mystor:rustdoc-pound, r=QuietMisdre…

    …avus
    
    Don't highlight # which does not start an attribute in rustdoc
    
    Currently when we highlight some macros for rustdoc (e.g. `quote!` from https://github.com/dtolnay/quote), we get really bad syntax highlighting, because we assume that every token between a `#` character and the next `]` in the source must be an attribute.
    
    This patch improves that highlighting behavior to instead only highlight after finding the `[` token after the `#` token.
    
    (NOTE: I've only run this patch against https://github.com/nrc/rustdoc-highlight so if it doesn't build on travis that's why - I don't have a recent rustc build on this laptop)
    
    I'm guessing r? @steveklabnik
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    b1fff23 View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#44076 - RalfJung:src, r=alexcrichton

    include Cargo.{toml,lock} in rust-src tarball
    
    The lock file is interesting because e.g. xargo could use it to build libstd against the same dependencies that were used for the main build. More generally speaking, just documenting in this form which exact dependencies should be used IMHO makes lots of sense.
    
    I added the Cargo.toml mostly because having the lock without the toml feels odd. Of course, the toml contains references to paths that don't actually exist in the rust-src tarball. Not sure if that is considered a problem.
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    ba304b9 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#44117 - frewsxcv:frewsxcv-to-socket-addrs-e…

    …xamples, r=QuietMisdreavus
    
    Rewrite `std::net::ToSocketAddrs` doc examples.
    
    in particular:
    
    * show how to create an iterator that yields multiple socket addresses
    * show more failing scenarios
    
    done this as preliminary work while investigating rust-lang#22569
    
    note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    30907e1 View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#44121 - ishitatsuyuki:bootstrap-deps-purge,…

    … r=Mark-Simulacrum
    
    bootstrap: remove unneeded extern crate
    
    The crate itself is internally referenced by serde_derive.
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    ec83eda View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#44126 - laumann:config-doc-comments, r=niko…

    …matsakis
    
    compiletest: Change Config comments to doc comments
    
    I plan to make the same change in compiletest-rs, to have some documentation in [the docs](https://docs.rs/compiletest_rs/0.2.9/compiletest_rs/common/struct.Config.html).
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    29f360b View commit details
    Browse the repository at this point in the history
  31. Rollup merge of rust-lang#44134 - vorner:x-py-unknown-cmd, r=nikomats…

    …akis
    
    Fail ./x.py on invalid command
    
    Make the ./x.py script fail when run with an invalid command, like:
    
    ```
    ./x.py nonsense
    ```
    
    This helps in case of chaining multiple runs, eg.:
    
    ```
    ./x.py biuld && ./x.py test
    ```
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    d59aa7d View commit details
    Browse the repository at this point in the history
  32. Rollup merge of rust-lang#44135 - GuillaumeGomez:fix-css-links, r=Qui…

    …etMisdreavus
    
    Fix invalid linker position
    
    Fixes rust-lang#44120.
    
    Result isn't "optimal" though because there are spaces at the end of some lines.
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    588f833 View commit details
    Browse the repository at this point in the history
  33. Rollup merge of rust-lang#44141 - nrc:rls-preview-beta, r=alexcrichton

    Rename the rls component to rls-preview on beta/stable
    
    Background is that we will have automatic renaming with the next rustup release. We'll then rename rls to rls-preview. In the meantime, this ensures beta/stable users will always have rls-preview.
    
    r? @alexcrichton
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    294ce22 View commit details
    Browse the repository at this point in the history
  34. Rollup merge of rust-lang#44144 - alexcrichton:faster-hash-and-sign, …

    …r=Mark-Simulacrum
    
    rustbuild: Fix dependencies of build-manifest
    
    No need to depend on librustc! All we need is libstd
    
    Closes rust-lang#44140
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    a88757e View commit details
    Browse the repository at this point in the history
  35. Rollup merge of rust-lang#44158 - dtolnay:zero48, r=sfackler

    Use a byte literal ASCII 0 instead of its decimal value
    
    @SimonSapin noticed this in dtolnay/itoa#8.
    Ariel Ben-Yehuda committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    be0ac01 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    c11f689 View commit details
    Browse the repository at this point in the history
  37. rustc: Make the trait_map of TyCtxt private

    This map is calculated in resolve, but we want to be sure to track it for
    incremental compliation. Hide it behind a query to get more refactorings later.
    alexcrichton committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    32d35e6 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    3da868d View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    71dfe64 View commit details
    Browse the repository at this point in the history
  40. Make fields of Span public again

    This helps to avoid landing changes to rustc and rustfmt in one step
    petrochenkov committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    a0c3264 View commit details
    Browse the repository at this point in the history
  41. broken links resolved

    AndyGauge committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    80d513a View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2017

  1. Auto merge of rust-lang#43938 - arielb1:closure-key, r=nikomatsakis

    Track closure signatures & kinds in freshened types
    
    r? @nikomatsakis
    bors committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    09ea6b7 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#44143 - alexcrichton:faster-bootstrap, r=Mark…

    …-Simulacrum
    
    rustbuild: Avoid some extraneous rustc compiles on cross builds
    
    This tweaks a few locations here and there to avoid compiling rustc too many times on our cross-builders on CI.
    
    Closes rust-lang#44132
    bors committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    c2f9cc4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f7594d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    873a05e View commit details
    Browse the repository at this point in the history
  5. rustc: Make the export_map of TyCtxt private

    This map, like `trait_map`, is calculated in resolve, but we want to be sure to
    track it for incremental compliation. Hide it behind a query to get more
    refactorings later.
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    942c8dc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4f591a4 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#43880 - arielb1:noninvasive-probe, r=nikomats…

    …akis
    
    Remove the trait selection impl in method::probe
    
    This removes the hacky trait selection reimplementation in `method::probe`, which occasionally comes and causes problems.
    
    There are 2 issues I've found with this approach:
    1. The older implementation sometimes had a "guess" type from an impl, which allowed subtyping to work. This is why I needed to make a change in `libtest`: there's an `impl<A> Clone for fn(A)` and we're calling `<for<'a> fn(&'a T) as Clone>::clone`. The older implementation would do a subtyping between the impl type and the trait type, so it would do the check for `<fn(A) as Clone>::clone`, and confirmation would continue with the subtyping. The newer implementation directly passes `<for<'a> fn(&'a T) as Clone>::clone` to selection, which fails. I'm not sure how big of a problem that would be in reality, especially after rust-lang#43690 would remove the `Clone` problem, but I still want a crater run to avoid breaking the world.
    2. The older implementation "looked into" impls to display error messages. I'm not sure that's an advantage - it looked exactly 1 level deep.
    
    r? @eddyb
    bors committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    b58e31a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    274543b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e1367ef View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    33d99e5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f2774b7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bba7fd9 View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#43903 - oli-obk:alignto, r=aturon

    Add align_offset intrinsic
    
    see rust-lang/rfcs#2043 for details and the plan towards stabilization (reexport in `core::mem` via various convenience functions)
    
    as per @scottmcm 's [comment](rust-lang/rfcs#2043 (comment)), this is just the intrinsic (which is obviously unstable).
    bors committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    c66e7fa View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9b26f3a View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#43968 - petrochenkov:span2, r=michaelwoerister

    Make fields of `Span` private
    
    I actually tried to intern spans and benchmark the result<sup>*</sup>, and this was a prerequisite.
    This kind of encapsulation will be a prerequisite for any other attempt to compress span's representation, so I decided to submit this change alone.
    
    The issue rust-lang#43088 seems relevant, but it looks like `SpanId` won't be able to reuse this interface, unless the tables are global (like interner that I tried) and are not a part of HIR.
    r? @michaelwoerister anyway
    
    <sup>*</sup> Interning means 2-3 times more space is required for a single span, but duplicates are free. In practice it turned out that duplicates are not *that* common, so more memory was wasted by interning rather than saved.
    bors committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    ca9cf35 View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#43895 - JeremySorensen:master, r=alexcrichton

    make ignore-git true by default when channel is dev
    
    Fixes rust-lang#43771
    (Handle git info in rustbuild differently)
    bors committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    51a54b6 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#44044 - mattico:string-splice-return, r=dto…

    …lnay
    
    Remove Splice struct return value from String::splice
    
    The implementation is now almost identical to the one in the RFC.
    
    Fixes rust-lang#44038
    cc rust-lang#32310
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    581dc93 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#44089 - alexcrichton:trait-proc-macro, r=nrc

    rustc: Fix proc_macro expansions on trait methods
    
    This commit fixes procedural macro attributes being attached to trait methods,
    ensuring that they get resolved and expanded as other procedural macro
    attributes. The bug here was that `current_module` on the resolver was
    accidentally set to be a trait when it's otherwise only ever expecting a
    `mod`/block module. The actual fix here came from @jseyfried, I'm just helping
    to land it in the compiler!
    
    Closes rust-lang#42493
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    63cc2dd View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#44116 - alexcrichton:update-libc, r=Mark-Si…

    …mulacrum
    
    Update the libc submodule
    
    Brings in a few fixes for wasm/asmjs
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    bc6981b View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#44125 - SergioBenitez:master, r=nrc

    Initial diagnostic API for proc-macros.
    
    This commit introduces the ability to create and emit `Diagnostic` structures from proc-macros, allowing for proc-macro authors to emit warning, error, note, and help messages just like the compiler does.
    
    The API is somewhat based on the diagnostic API already present in `rustc` with several changes that improve usability. The entry point into the diagnostic API is a new `Diagnostic` type which is primarily created through new `error`, `warning`, `help`, and `note` methods on `Span`. The `Diagnostic` type records the diagnostic level, message, and optional `Span` for the top-level diagnostic and contains a `Vec` of all of the child diagnostics. Child diagnostics can be added through builder methods on `Diagnostic`.
    
    A typical use of the API may look like:
    
    ```rust
    let token = parse_token();
    let val = parse_val();
    
    val.span
        .error(format!("expected A but found {}", val))
        .span_note(token.span, "because of this token")
        .help("consider using a different token")
        .emit();
    ```
    
    cc @jseyfried @nrc @dtolnay @alexcrichton
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    fd4f362 View commit details
    Browse the repository at this point in the history
  21. Add license exceptions

    GuillaumeGomez committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    76e3221 View commit details
    Browse the repository at this point in the history
  22. Auto merge of rust-lang#43932 - eddyb:const-scoping, r=nikomatsakis

    Forward-compatibly deny drops in constants if they *could* actually run.
    
    This is part of rust-lang#40036, specifically the checks for user-defined destructor invocations on locals which *may not* have been moved away, the motivating example being:
    ```rust
    const FOO: i32 = (HasDrop {...}, 0).1;
    ```
    The evaluation of constant MIR will continue to create `'static` slots for more locals than is necessary (if `Storage{Live,Dead}` statements are ignored), but it shouldn't be misusable.
    
    r? @nikomatsakis
    bors committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    7eeac1b View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#44157 - alexcrichton:no-specializes-cache, …

    …r=eddyb
    
    rustc: Remove `specialization_cache` in favor of a query
    
    This commit removes the `specialization_cache` field of `TyCtxt` by moving it to
    a dedicated query, which it turned out was already quite easily structured to do
    so!
    
    cc rust-lang#44137
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    8962393 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#44160 - AndyGauge:api-docs-macros, r=stevek…

    …labnik
    
    API docs: macros.  Standard Documentation Checklist
    
    Fixes rust-lang#29381
    r? @steveklabnik
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    c0812c8 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#44172 - mattico:patch-2, r=frewsxcv

    Fix link in unstable book entry for Generators
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    16bbff0 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    5c279a4 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    bde0071 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    1615d35 View commit details
    Browse the repository at this point in the history
  29. rustc: Remove the used_unsafe field on TyCtxt

    Now that lint levels are available for the entire compilation, this can be an
    entirely local lint in `effect.rs`
    alexcrichton committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    058202e View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    0c2a9d6 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2017

  1. rustc: Fix reachability with cross-crate generators

    Same solution as in f2df185
    
    Closes rust-lang#44181
    alexcrichton committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    41d3e83 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b9fea42 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    890c87b View commit details
    Browse the repository at this point in the history
  4. rustbuild: update the rust-src filter for compiler-rt

    We wanted `src/compiler-rt/test` filtered from the `rust-src` package,
    but that path is now `src/libcompiler_builtins/compiler-rt/test`.  This
    saves over half of the installed rust-src size. (50MB -> 22MB)
    cuviper committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    35f8a20 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    396fc11 View commit details
    Browse the repository at this point in the history
  6. Update rls

    nrc committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    92867d2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5eb478a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    da30284 View commit details
    Browse the repository at this point in the history
  9. downgrade libgit2

    GuillaumeGomez committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    b501d00 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#41991 - GuillaumeGomez:rustdoc-html-diff, r=nrc

    Add warnings when rustdoc html rendering differs
    bors committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    97b01ab View commit details
    Browse the repository at this point in the history
  11. Update bootstrap compiler

    This commit updates the bootstrap compiler and clears out a number
    of #[cfg(stage0)] annotations and related business
    alexcrichton committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    2972687 View commit details
    Browse the repository at this point in the history
  12. Bump to 1.22.0

    alexcrichton committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    9b9de27 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7a2a8d7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0a716fd View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ba643fa View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    9988e79 View commit details
    Browse the repository at this point in the history
  17. Fix typo in 1.20.0 release notes

    str::from_boxed_utf8_unchecked rather than ste::
    Phlosioneer committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    945ba85 View commit details
    Browse the repository at this point in the history
  18. Fix release note on associated constants

    Associated constants seem to be stable everywhere, not just in traits
    Lukas H committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    f575185 View commit details
    Browse the repository at this point in the history
  19. Only emit warnings if the user is using Pulldown

    Also checks for differences after eliminating whitespace-only diffs.
    
    Renames get_html_diff
    nrc committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    a5f50a9 View commit details
    Browse the repository at this point in the history
  20. Auto merge of rust-lang#43425 - matklad:lambda-restrictions, r=eddyb

    Lambda expressions honor no struct literal restriction
    
    This is a fix for rust-lang#43412 if we decide that it is indeed a bug :)
    
    closes rust-lang#43412
    bors committed Aug 31, 2017
    Configuration menu
    Copy the full SHA
    69dbe66 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2017

  1. Rollup merge of rust-lang#44192 - GuillaumeGomez:sub-fields-style, r=…

    …QuietMisdreavus
    
    Fix invalid display of enum sub-fields docs
    
    Before:
    
    <img width="1440" alt="screen shot 2017-08-30 at 23 17 00" src="https://user-images.githubusercontent.com/3050060/29895433-61f2bf8c-8dd9-11e7-83e8-cf1dca878100.png">
    
    After:
    
    <img width="1440" alt="screen shot 2017-08-30 at 23 16 48" src="https://user-images.githubusercontent.com/3050060/29895441-66dea042-8dd9-11e7-9576-11b0c770c70b.png">
    
    cc @nox @rust-lang/docs
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    fd5a945 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#44199 - jakllsch:jakllsch-abcc6c4a-0caf-4d3…

    …0-b336-39629c73d3f5, r=sfackler
    
    bootstrap: add openssl configuration mapping for i686-unknown-netbsd
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    5f00b10 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#44202 - alexcrichton:xcrate-generators, r=a…

    …rielb1
    
    rustc: Fix reachability with cross-crate generators
    
    Same solution as in f2df185
    
    Closes rust-lang#44181
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    f3b7197 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#44203 - cuviper:compiler-rt-test, r=Mark-Si…

    …mulacrum
    
    rustbuild: update the rust-src filter for compiler-rt
    
    We wanted `src/compiler-rt/test` filtered from the `rust-src` package,
    but that path is now `src/libcompiler_builtins/compiler-rt/test`.  This
    saves over half of the installed rust-src size. (50MB -> 22MB)
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    b66823f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#44205 - frewsxcv:frewsxcv-addr-doc-fix, r=Q…

    …uietMisdreavus
    
    Fix typo in doc `ToSocketAddrs` example.
    
    None
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    471f989 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#44207 - durka:define-maps-fn, r=eddyb

    add `fn` to syntax of rustc::ty::maps::define_maps
    
    This is not a functional change, it just makes it possible to find a query by grepping without knowing that it's a query rather than a function.
    
    I didn't pursue renaming everything from "map" to "query" because it seems to be a very invasive change. It would be a good test to exercise an IDE's renaming features.
    
    Closes rust-lang#44161
    
    r? @eddyb
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    4b2d568 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#44209 - frewsxcv:frewsxcv-addr-other-scenar…

    …ios, r=alexcrichton
    
    Expand docs of multi-address behavior of some UDP/TCP APIs.
    
    Fixes rust-lang#22569.
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    3cd4ea3 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#44223 - eddyb:symbol-from-str, r=jseyfried

    Implement From<&str> for Symbol.
    
    This lets us have `fn foo<S: Into<Symbol>>` bounds and accept both `&str` and existing `Symbol`s.
    
    r? @jseyfried
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    9c4bdd3 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#44230 - Phlosioneer:patch-1, r=sfackler

    Fix typo in 1.20.0 release notes
    
    str::from_boxed_utf8_unchecked rather than ste::
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    88ee66d View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#44231 - lukaramu:patch-1, r=alexcrichton

    Fix release notes on associated constants
    
    Associated constants seem to be stable everywhere, not just in traits
    Mark-Simulacrum committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    81fc0e1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9ab20a3 View commit details
    Browse the repository at this point in the history
  12. Bring back stage0 allocator logic on MSVC

    I think there may still be bugs preventing its removal..
    alexcrichton committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    9e5a7e9 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1a8aac3 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    abc0530 View commit details
    Browse the repository at this point in the history
  15. Windows line endings

    nrc committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    fbb1612 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    45d31e7 View commit details
    Browse the repository at this point in the history
  17. Fix tests

    This is just undoing changes from rust-lang#41991 because we are not running markdown rendering twice.
    nrc committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    1d6d09f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    28ddd7a View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    ea6aca7 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    e4996ec View commit details
    Browse the repository at this point in the history
  21. Auto merge of rust-lang#44171 - eddyb:scope, r=nikomatsakis

    Use hir::ItemLocalId instead of ast::NodeId in rustc::middle::region::CodeExtent.
    
    This is an alternative to @michaelwoerister's rust-lang#43887, changing `CodeExtent` instead of `ReScope`.
    
    The benefit here is that the same `Region`s are used same-crate and cross-crate, while preserving the incremental recompilation properties of the stable `hir::ItemLocalId`.
    
    Only places which needed to get back to the `ast::NodeId` from `CodeExtent` was its `span` method, used in error reporting - passing the `&RegionMaps` down allowed using `hir_to_node_id`.
    `rustc::cfg` and `dataflow` also had to be converted to `hir::ItemLocalId` because of their interactions with `CodeExtent`, especially in `borrowck`, and from that we have 3 more `hir_to_node_id` calls: `cfg::graphviz` node labels, `borrowck` move reporting, and the `unconditional_recursion` lint.
    
    Out of all of those, *only* the lint actually makes a decision (on whether code will compile) based on the result of the conversion, the others only use it to know how to print information to the user.
    So I think we're safe to say that the bulk of the code working with a `CodeExtent` is fine with local IDs.
    
    r? @nikomatsakis
    bors committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    a59a6d8 View commit details
    Browse the repository at this point in the history
  22. Auto merge of rust-lang#44238 - nrc:pulldown-warn, r=@QuietMisdreavus

    Improve the Pulldown/hoedown warnings
    
    cc rust-lang#44229
    
    r? @QuietMisdreavus
    bors committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    ed532c0 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    271c63c View commit details
    Browse the repository at this point in the history
  24. Auto merge of rust-lang#44154 - alexcrichton:bump-bootstrap, r=Mark-S…

    …imulacrum
    
    Bump to 1.22.0 and update boostrap compiler
    
    Time to get a new nightly!
    bors committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    f861b6e View commit details
    Browse the repository at this point in the history
  25. Implement RFC 1925

    mattico committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    f866152 View commit details
    Browse the repository at this point in the history
  26. Fix arm visitor

    mattico committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    eb143c3 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8bdfd8a View commit details
    Browse the repository at this point in the history
  28. Fix unstable book example

    mattico committed Sep 1, 2017
    Configuration menu
    Copy the full SHA
    22ca03b View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    7befbbc View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    dc563ef View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    02ec0ae View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2017

  1. powerpc64: improve extern struct ABI

    These fixes all have to do with the 64-bit PowerPC ELF ABI for big-endian
    targets.  The ELF v2 ABI for powerpc64le already worked well.
    
    - Return after marking return aggregates indirect. Fixes rust-lang#42757.
    - Pass one-member float aggregates as direct argument values.
    - Aggregate arguments less than 64-bit must be written in the least-
      significant bits of the parameter space.
    - Larger aggregates are instead padded at the tail.
      (i.e. filling MSBs, padding the remaining LSBs.)
    
    New tests were also added for the single-float aggregate, and a 3-byte
    aggregate to check that it's filled into LSBs.  Overall, at least these
    formerly-failing tests now pass on powerpc64:
    
    - run-make/extern-fn-struct-passing-abi
    - run-make/extern-fn-with-packed-struct
    - run-pass/extern-pass-TwoU16s.rs
    - run-pass/extern-pass-TwoU8s.rs
    - run-pass/struct-return.rs
    cuviper committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    a9bb599 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    afcc58a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f7c9704 View commit details
    Browse the repository at this point in the history
  4. x86: return single-float aggregates in a float register

    Following Clang's lead, and anecdotal evidence from the `float_one` part
    of `run-make/extern-fn-struct-passing-abi`, use a floating point
    register to return single-float aggregates, except on MSVC targets.
    cuviper committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    40b1473 View commit details
    Browse the repository at this point in the history
  5. Update cargo.

    This includes rust-lang/cargo#4447 which fixes
    a bug in Cargo that is needed to fix
    rust-lang#44237.
    Mark-Simulacrum committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    1b758fb View commit details
    Browse the repository at this point in the history
  6. rustc: Flag {i,u}128 as unsafe for FFI

    These don't appear to have a stable ABI as noted in rust-lang#41799 and the work in
    compiler-builtins definitely seems to be confirming it!
    alexcrichton committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    549dd10 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d516434 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#44104 - llogiq:lowercase-lints, r=nikomatsakis

    add a lowercase suggestion to unknown_lints
    
    I recently wrote some tests for a clippy lint, copied the (uppercase) lint name into my test file and forgot to toggle the case. This PR adds a suggestion that would have saved me 10 minutes of debugging, so it's likely a net win 🙂 . Also it adds a UI test for the `unknown_lints` lint.
    bors committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    efceda2 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#44256 - GuillaumeGomez:update-html-diff-rs, r…

    …=Mark-Simulacrum
    
    Update html-diff-rs version
    
    r? @nrc
    bors committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    cc1fc88 View commit details
    Browse the repository at this point in the history
  10. Minor compilation fix

    kornelski committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    2354089 View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#44259 - Mark-Simulacrum:update-cargo, r=alexc…

    …richton
    
    Update cargo
    
    This includes rust-lang/cargo#4447 which fixes a bug in Cargo that is needed to fix rust-lang#44237.
    
    r? @alexcrichton
    bors committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    8d83c15 View commit details
    Browse the repository at this point in the history
  12. Remove invalid doctest from bootstrap.py.

    Make sure that if the test is failed, the CI will stop the build.
    kennytm committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    4d06185 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    94a9a30 View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#43886 - oli-obk:clippy, r=nrc

    Add clippy as a submodule
    
    ~~This builds clippy as part of `./x.py build` (locally and in CI).~~
    
    This allows building clippy with `./x.py build src/tools/clippy`
    
    ~~Needs rust-dev-tools/dev-tools-team#18 (comment) to be resolved before it can be merged.~~ Contributers can simply open a PR to clippy and point the submodule at the `pull/$pr_number/head` branch.
    
    This does **not** build clippy or test the clippy test suite at all as per rust-dev-tools/dev-tools-team#18 (comment)
    
    r? @nrc
    
    cc @Manishearth @llogiq @mcarton @alexcrichton
    bors committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    204c0a4 View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#44066 - cuviper:powerpc64-extern-abi, r=alexc…

    …richton
    
    powerpc64: improve extern struct ABI
    
    These fixes all have to do with the 64-bit PowerPC ELF ABI for big-endian
    targets.  The ELF v2 ABI for powerpc64le already worked well.
    
    - Return after marking return aggregates indirect. Fixes rust-lang#42757.
    - Pass one-member float aggregates as direct argument values.
    - Aggregate arguments less than 64-bit must be written in the least-
      significant bits of the parameter space.
    - Larger aggregates are instead padded at the tail.
      (i.e. filling MSBs, padding the remaining LSBs.)
    
    New tests were also added for the single-float aggregate, and a 3-byte
    aggregate to check that it's filled into LSBs.  Overall, at least these
    formerly-failing tests now pass on powerpc64:
    
    - run-make/extern-fn-struct-passing-abi
    - run-make/extern-fn-with-packed-struct
    - run-pass/extern-pass-TwoU16s.rs
    - run-pass/extern-pass-TwoU8s.rs
    - run-pass/struct-return.rs
    bors committed Sep 2, 2017
    Configuration menu
    Copy the full SHA
    744dd6c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6f66730 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2017

  1. Auto merge of rust-lang#44176 - nrc:update-rls, r=alexcrichton

    Update rls
    
    And expose the `CFG_VERSION` env var to tools so they can determine the version of Rust.
    
    This gets the RLS back on master and so completes the PR dance for the generators PR.
    
    r? @alexcrichton
    bors committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    5e9431a View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#44195 - alexcrichton:remove-used-unsafe, r=ni…

    …komatsakis
    
    rustc: Remove the `used_unsafe` field on TyCtxt
    
    Now that lint levels are available for the entire compilation, this can be an
    entirely local lint in `effect.rs`
    
    cc rust-lang#44137
    bors committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    fc54bf9 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#44252 - eddyb:what-is-dead-may-never-die, r=n…

    …ikomatsakis
    
    Better StorageLive / StorageDead placement for constants.
    
    Fixes problems in miri (see rust-lang/miri#324 (comment)) caused by the new scope rules in rust-lang#43932.
    What I've tried to do here is always have a `StorageLive` but no `StorageDead` for `'static` slots.
    It might not work perfectly in all cases, but it should unblock miri.
    
    r? @nikomatsakis cc @oli-obk
    bors committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    23ade23 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    243aa12 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cf07ebd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6866aea View commit details
    Browse the repository at this point in the history
  7. enable desugaring-sensitive error messages and use them in Try

    Maybe I should allow error messages to check the *specific* desugaring?
    Thanks @huntiep for the idea!
    arielb1 committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    02b3ae6 View commit details
    Browse the repository at this point in the history
  8. address review comments

    arielb1 committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    6dec953 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    efa09ea View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    291b4ed View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#44253 - eddyb:nice-scope, r=nikomatsakis

    rustc: rename CodeExtent to Scope and RegionMaps to ScopeTree.
    
    r? @nikomatsakis
    bors committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    2f2b8b3 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c911925 View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#44191 - arielb1:on-unimplemented-label, r=nik…

    …omatsakis
    
    More general `on_unimplemented`, with uses in `Try`
    
    Allow `on_unimplemented` directives to specify both the label and the primary message of the trait error, and allow them to be controlled by flags - currently only to be desugaring-sensitive.
    
    e.g.
    ```Rust
    #[rustc_on_unimplemented(
        on(all(direct, from_desugaring="?"),
            message="the `?` operator can only be used in a \
            function that returns `Result` \
            (or another type that implements `{Try}`)",
            label="cannot use the `?` operator in a function that returns `{Self}`"),
    )]
    ```
    
    r? @nikomatsakis
    bors committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    c8642da View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2f42cd8 View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#44261 - alexcrichton:u128-ffi-unsafe, r=eddyb

    rustc: Flag {i,u}128 as unsafe for FFI
    
    These don't appear to have a stable ABI as noted in rust-lang#41799 and the work in
    compiler-builtins definitely seems to be confirming it!
    bors committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    981ce7d View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#44263 - durka:stabilize-discriminant, r=dtolnay

    stabilize mem::discriminant (closes rust-lang#24263)
    bors committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    0006d3e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9e644e2 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2017

  1. Auto merge of rust-lang#44272 - Dushistov:master, r=alexcrichton

    add test for not optimized `pow` with constant power
    
    Closes rust-lang#34947
    bors committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    a3beb8f View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#44268 - kennytm:fix-python-bootstrap-test, r=…

    …Mark-Simulacrum
    
    rustbuild: Remove invalid doctest from bootstrap.py
    bors committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    e22a3cf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e74f96e View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#44300 - Manishearth:clippyup, r=oli-obk

    Resync clippy to v0.0.156
    
    None
    bors committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    a36d93d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c4d5a1e View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#44194 - QuietMisdreavus:hey-how-do-i-use-this…

    …-new-fangled-thing, r=aturon
    
    expand on using rustup custom toolchains in CONTRIBUTING.md
    
    fixes rust-lang#42484
    
    Should i include more notes about how to use a local build *without* rustup? It can kinda feel like a cop-out otherwise. Other means that come to mind are setting `$RUSTC` directly and fully installing it.
    
    cc @rust-lang/docs
    bors committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    088216f View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#43067 - pornel:libdeps, r=nrc

    Compact display of static lib dependencies
    
    Fixes rust-lang#33173
    
    Instead of displaying one dependency per line, I've changed the format to display them all in one line.
    
    As a bonus they're in format of linker flags (`-lfoo`), so the output can be copy&pasted if one is actually going to link as suggested.
    bors committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    22d6598 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2017

  1. Auto merge of rust-lang#44248 - oli-obk:spans, r=jseyfried

    Produce expansion info for more builtin macros
    
    r? @jseyfried
    
    fixes rust-lang#43268
    bors committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    2f681bf View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#44308 - eddyb:local-index, r=arielb1

    [MIR] Restrict ProjectionElem::Index and Storage{Live,Dead} to Local.
    
    (see rust-lang#44285)
    
    r? @nikomatsakis
    bors committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    2f1ef9e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1ffc3dd View commit details
    Browse the repository at this point in the history