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 23 pull requests #53252

Closed
wants to merge 80 commits into from
Closed

Rollup of 23 pull requests #53252

wants to merge 80 commits into from

Commits on Aug 3, 2018

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

Commits on Aug 4, 2018

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

Commits on Aug 7, 2018

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

Commits on Aug 9, 2018

  1. Configuration menu
    Copy the full SHA
    bf089a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26991eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed55520 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9207cc9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c556cff View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    75fa16b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6858bd8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9d2c4a3 View commit details
    Browse the repository at this point in the history
  9. Deny future duplication of rustc-ap-syntax

    Enable the tidy check to forbid this!
    
    Closes rust-lang#53006
    alexcrichton committed Aug 9, 2018
    Configuration menu
    Copy the full SHA
    6c7473d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c9aca02 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ffdac5d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1601879 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    94c3856 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    6563803 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    82a704a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    2cb91da View commit details
    Browse the repository at this point in the history
  17. [nll] libsyntax_ext: remove unnecessary mut annotation on variable

    Pointed out by nll. It is correct that the mut annotation is not needed.
    memoryruins committed Aug 9, 2018
    Configuration menu
    Copy the full SHA
    ce5b9c6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    4861643 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    4b42a21 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    8172485 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    588dbed View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    d9f2b51 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    5840735 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    ac9b7be View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    4aced68 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    1aa6c23 View commit details
    Browse the repository at this point in the history
  27. targets: aarch64: Add bare-metal aarch64 target

    A generic AArch64 target that can be used for writing bare-metal code
    for 64-bit ARM architectures.
    andre-richter committed Aug 9, 2018
    Configuration menu
    Copy the full SHA
    898950c View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    ef34a16 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2018

  1. Configuration menu
    Copy the full SHA
    176f8c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b187c42 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    945f032 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e8d95a5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5d6ca8e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    46b818e View commit details
    Browse the repository at this point in the history
  7. [nll] librustc_codegen_llvm: change Child signature to fix error poin…

    …ted out by nll
    
    As explained by eddyb in rust-lang#53221, "An &ArchiveChild doesn't point into the archive itself, it points to an owned object that itself points to the archive, and LLVMRustArchiveMemberNew copies the ArchiveChild (whereas the current signature suggests it keeps the &ArchiveChild)."
    memoryruins committed Aug 10, 2018
    Configuration menu
    Copy the full SHA
    085535b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0123ac1 View commit details
    Browse the repository at this point in the history
  9. Link compiler test documentation to rustc-guide

    Update the compiler test documentation to point to the relevant
    rustc-guide page.
    tromey committed Aug 10, 2018
    Configuration menu
    Copy the full SHA
    8a76656 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#53019 - ljedrz:bad_collects, r=estebank

    Don't collect() when size_hint is useless
    
    This adjusts PRs rust-lang#52738 and rust-lang#52697 by falling back to calculating capacity and extending or pushing in a loop where `collect()` can't be trusted to calculate the right capacity.
    
    It is a performance win.
    kennytm authored Aug 10, 2018
    Configuration menu
    Copy the full SHA
    3e13393 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#53025 - ljedrz:debug_asserts_limited, r=varkor

    Consider changing assert! to debug_assert! when it calls visit_with
    
    The perf run from rust-lang#52956 revealed that there were 3 benchmarks that benefited most from changing `assert!`s to `debug_assert!`s:
    
    - issue rust-lang#46449: avg -4.7% for -check
    - deeply-nested (AKA rust-lang#38528): avg -3.4% for -check
    - regression rust-lang#31157: avg -3.2% for -check
    
    I analyzed their fixing PRs and decided to look for potentially heavy assertions in the files they modified. I noticed that all of the non-trivial ones contained indirect calls to `visit_with()`.
    
    It might be a good idea to consider changing `assert!` to `debug_assert!` in those places in order to get the performance wins shown by the benchmarks.
    kennytm authored Aug 10, 2018
    Configuration menu
    Copy the full SHA
    096fabe View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#53059 - ljedrz:unneeded_returns, r=kennytm

    Remove explicit returns where unnecessary
    kennytm authored Aug 10, 2018
    Configuration menu
    Copy the full SHA
    6b06a8e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e37391b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    538d1ba View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2018

  1. Update RLS

    nrc authored and kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    4076dc4 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#53208 - BurntPizza:protect-the-environment,…

    … r=alexcrichton
    
    Don't panic on std::env::vars() when env is null.
    
    Fixes rust-lang#53200.
    
    Reviewer(s):
    * Do I need to do any `#[cfg()]` here?
    * Is this use of libc ok for a dev-dependency?
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    a7830aa View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#53210 - alexcrichton:deny-rustc-syntax, r=nrc

    Deny future duplication of rustc-ap-syntax
    
    Enable the tidy check to forbid this!
    
    Closes rust-lang#53006
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    715581a View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#53229 - varkor:rlimits_min, r=nikomatsakis

    Make sure rlimit is only ever increased
    
    `libc::setrlimit` will fail if we try to set the rlimit to a value lower than it is currently, so make sure we're never trying to do this. Fixes rust-lang#52801.
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    fdf4007 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#53233 - andre-richter:master, r=alexcrichton

    targets: aarch64: Add bare-metal aarch64 target
    
    A generic AArch64 target that can be used for writing bare-metal code
    for 64-bit ARM architectures.
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    28edfb0 View commit details
    Browse the repository at this point in the history
  6. Fix styles

    GuillaumeGomez committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    5a801c8 View commit details
    Browse the repository at this point in the history
  7. Show that Command can be reused and remodified

    The prior documentation did not make it clear this was possible.
    Havvy committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    53d308f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    44af068 View commit details
    Browse the repository at this point in the history
  9. Add let keyword doc

    GuillaumeGomez committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    f9f934f View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#53235 - varkor:gat_impl_where, r=estebank

    Feature gate where clauses on associated type impls
    
    Fixes rust-lang#52913. This doesn't address the core problem, which is tracked by rust-lang#47206. However, it fixes the stable-to-stable regression: you now have to enable `#![feature(generic_associated_types)]` to trigger the weird behaviour.
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    c95edca View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#53236 - alexreg:stabilise-raw-idents, r=cra…

    …mertj
    
    Stabilise raw_identifiers feature
    
    * [Reference PR](rust-lang/reference#395)
    * [Book PR](rust-lang/book#1480)
    * [Rust by Example PR](rust-lang/rust-by-example#1095)
    
    Closes rust-lang#48589.
    
    r? @cramertj
    CC @cuviper @Centril
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    dcfbdea View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#53240 - llogiq:doc-num-swap-reverse, r=josh…

    …triplett
    
    Add individual documentation for <integer>`.swap_bytes`/.`reverse_bits`
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    9ec70d3 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#53253 - GuillaumeGomez:remove-console, r=ke…

    …nnytm
    
    Remove unwanted console log
    
    Forgot to remove a `console.log`, now it's fixed.
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    fa4dc7a View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#52955 - tromey:compiler-test-docs, r=nikoma…

    …tsakis
    
    Update compiler test documentation
    
    Update the compiler test documentation to document ignore-gdb-version
    and min-system-llvm-version; and expand the min-gdb-version,
    min-lldb-version, and min-llvm-version documentation a little.
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    a64911c View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#53230 - memoryruins:nll_bootstrap_4, r=niko…

    …matsakis
    
    [nll] enable feature(nll) on various crates for bootstrap: part 4
    
    rust-lang#53172
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    1bd57e2 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#53165 - jakllsch:netbsd-ad22a005-b917-47f3-…

    …8156-f717d36f6bbe, r=estebank
    
     Add aarch64-unknown-netbsd target
    
    Depends on rust-lang#53116.
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    c0ee4e7 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#53238 - nrc:update, r=kennytm

    Update RLS
    
    Should fix RLS toolstate
    kennytm committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    aac3c2f View commit details
    Browse the repository at this point in the history
  18. Add links to std::char::REPLACEMENT_CHARACTER from docs.

    There are a few places where we mention the replacement character in the
    docs, and it could be helpful for users to utilize the constant which is
    available in the standard library, so let’s link to it!
    frewsxcv committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    ec18991 View commit details
    Browse the repository at this point in the history
  19. Fix indent

    Havvy committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    0070b46 View commit details
    Browse the repository at this point in the history
  20. Emit error for pattern arguments in trait methods

    The error and check for this already existed, but the parser didn't try to parse trait method arguments as patterns, so the error was never emitted. This surfaces the error, so we get better errors than simple parse errors.
    varkor committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    90a6954 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b05f0be View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    235905c View commit details
    Browse the repository at this point in the history
  23. Improve diagnostics

    varkor committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    a478cd4 View commit details
    Browse the repository at this point in the history
  24. Emit an error during parsing

    varkor committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    e4c3b49 View commit details
    Browse the repository at this point in the history
  25. Add E0642 to parser error

    varkor committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    49e9c5f View commit details
    Browse the repository at this point in the history
  26. Clean up and add extra tests

    varkor committed Aug 11, 2018
    Configuration menu
    Copy the full SHA
    5c814e2 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2018

  1. Rollup merge of rust-lang#53274 - bjorn3:remove_statics_field, r=nagisa

    Remove statics field from CodegenCx
    
    It doesnt seem to be used anywhere.
    kennytm committed Aug 12, 2018
    Configuration menu
    Copy the full SHA
    a012abc View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#53223 - ljedrz:cleanup_data_structures, r=o…

    …li-obk
    
    A few cleanups for rustc_data_structures
    
    - remove a redundant `clone()`
    - make some calls to `.iter()` implicit
    - collapse/simplify a few operations
    - remove some explicit `return`s
    - make `SnapshotMap::{commit, rollback_to}` take references
    - remove unnecessary struct field names
    - change `transmute()`s in `IdxSet::{from_slice, from_slice_mut}` to casts
    - remove some unnecessary lifetime annotations
    - split 2 long literals
    kennytm committed Aug 12, 2018
    Configuration menu
    Copy the full SHA
    cbcfa2c View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#53231 - GuillaumeGomez:let-keyword, r=Quiet…

    …Misdreavus
    
    Add let keyword doc
    
    Part of rust-lang#34601.
    kennytm committed Aug 12, 2018
    Configuration menu
    Copy the full SHA
    c0f4976 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#53264 - Havvy:patch-3, r=GuillaumeGomez

    Show that Command can be reused and remodified
    
    The prior documentation did not make it clear this was possible.
    
    I wanted to make the `list_dir` example work on Windows, but I don't know if passing "/" will error or show the root of the current volume (e.g. `C:`).
    kennytm committed Aug 12, 2018
    Configuration menu
    Copy the full SHA
    4250f9c View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#53273 - frewsxcv:frewsxcv-ufffd, r=Guillaum…

    …eGomez
    
    Add links to std::char::REPLACEMENT_CHARACTER from docs.
    
    There are a few places where we mention the replacement character in the
    docs, and it could be helpful for users to utilize the constant which is
    available in the standard library, so let’s link to it!
    kennytm committed Aug 12, 2018
    Configuration menu
    Copy the full SHA
    bc0c0ba View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#53051 - varkor:trait-method-pattern-argumen…

    …ts-error, r=petrochenkov
    
    Emit error for pattern arguments in trait methods
    
    The error and check for this already existed, but the parser didn't try to parse trait method arguments as patterns, so the error was never emitted. This surfaces the error, so we get better errors than simple parse errors.
    
    This improves the error message described in rust-lang#53046.
    kennytm committed Aug 12, 2018
    Configuration menu
    Copy the full SHA
    6dd9bcc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    66fd1eb View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#53290 - whitequark:fix-35741, r=nagisa

    Make LLVM emit assembly comments with -Z asm-comments
    
    Fixes rust-lang#35741, and makes `-Z asm-comments` actually do something useful.
    
    Before:
    ```
    	.section	.text.main,"ax",@progbits
    	.globl	main
    	.p2align	4, 0x90
    	.type	main,@function
    main:
    	.cfi_startproc
    	pushq	%rax
    	.cfi_def_cfa_offset 16
    	movslq	%edi, %rax
    	leaq	_ZN1t4main17he95a7d4f1843730eE(%rip), %rdi
    	movq	%rsi, (%rsp)
    	movq	%rax, %rsi
    	movq	(%rsp), %rdx
    	callq	_ZN3std2rt10lang_start17h3121da83b2bc3697E
    	movl	%eax, %ecx
    	movl	%ecx, %eax
    	popq	%rcx
    	.cfi_def_cfa_offset 8
    	retq
    .Lfunc_end8:
    	.size	main, .Lfunc_end8-main
    	.cfi_endproc
    ```
    
    After:
    ```
    	.section	.text.main,"ax",@progbits
    	.globl	main                    # -- Begin function main
    	.p2align	4, 0x90
    	.type	main,@function
    main:                                   # @main
    	.cfi_startproc
    	pushq	%rax
    	.cfi_def_cfa_offset 16
    	movslq	%edi, %rax
    	leaq	_ZN1t4main17he95a7d4f1843730eE(%rip), %rdi
    	movq	%rsi, (%rsp)            # 8-byte Spill
    	movq	%rax, %rsi
    	movq	(%rsp), %rdx            # 8-byte Reload
    	callq	_ZN3std2rt10lang_start17h3121da83b2bc3697E
    	movl	%eax, %ecx
    	movl	%ecx, %eax
    	popq	%rcx
    	.cfi_def_cfa_offset 8
    	retq
    .Lfunc_end8:
    	.size	main, .Lfunc_end8-main
    	.cfi_endproc
                                            # -- End function
    ```
    kennytm committed Aug 12, 2018
    Configuration menu
    Copy the full SHA
    16210e8 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#53267 - GuillaumeGomez:fix-styles, r=QuietM…

    …isdreavus
    
    Fix styles
    
    Fixes rust-lang#53262.
    kennytm committed Aug 12, 2018
    Configuration menu
    Copy the full SHA
    e330088 View commit details
    Browse the repository at this point in the history