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 12 pull requests #74073

Merged
merged 34 commits into from
Jul 6, 2020
Merged

Rollup of 12 pull requests #74073

merged 34 commits into from
Jul 6, 2020

Commits on May 27, 2020

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

Commits on Jun 27, 2020

  1. Configuration menu
    Copy the full SHA
    f772587 View commit details
    Browse the repository at this point in the history
  2. Update src/doc/unstable-book/src/language-features/rustc-attrs.md

    Co-authored-by: Ralf Jung <post@ralfj.de>
    pickfire and RalfJung authored Jun 27, 2020
    Configuration menu
    Copy the full SHA
    725918f View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2020

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

Commits on Jun 29, 2020

  1. Configuration menu
    Copy the full SHA
    49b4804 View commit details
    Browse the repository at this point in the history
  2. Add test for issue rust-lang#56175

    da-x committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    aab37fe View commit details
    Browse the repository at this point in the history
  3. Fix try_print_visible_def_path for Rust 2018

    The recursive check of `try_print_visible_def_path` did not properly handle
    the Rust 2018 case of crate-paths without 'extern crate'. Instead, it returned
    a "not found" via (false, self).
    
    This fixes issue rust-lang#56175.
    da-x committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    5427d3b View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2020

  1. Review fix

    da-x committed Jul 1, 2020
    Configuration menu
    Copy the full SHA
    f77b6fe View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2020

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

Commits on Jul 4, 2020

  1. Configuration menu
    Copy the full SHA
    7a3081b View commit details
    Browse the repository at this point in the history
  2. Remove unnecessary release from Arc::try_unwrap

    The thread that recovers the unique access to Arc inner value (e.g., drop
    when ref-count strong reaches zero, successful try_unwrap), ensures that
    other operations on Arc inner value happened before by synchronizing
    with release operations performed when decrementing the reference counter.
    
    When try_unwrap succeeds, the current thread recovers the unique access
    to Arc inner value, so release is unnecessary.
    tmiasko committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    8900502 View commit details
    Browse the repository at this point in the history
  3. ConstCx to LocalDefId

    lcnr committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    20d6941 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dbcabc2 View commit details
    Browse the repository at this point in the history
  5. nit

    Co-authored-by: varkor <github@varkor.com>
    lcnr and varkor authored Jul 4, 2020
    Configuration menu
    Copy the full SHA
    f5305c3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    66fb778 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    394b8cd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dcbe85a View commit details
    Browse the repository at this point in the history
  9. Address code reviews

    JohnTitor committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    b93ecc1 View commit details
    Browse the repository at this point in the history
  10. Fix rust-lang#71977

    Nadrieril committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    3cb31b6 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2020

  1. Configuration menu
    Copy the full SHA
    bc0d619 View commit details
    Browse the repository at this point in the history
  2. expected found &T -> T

    lcnr committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    016e9f8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9cb1ffd View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#72688 - djugei:master, r=Amanieu

    added .collect() into String from Box<str>
    
    I have not created an rfc, because i felt like this is a very minor change.
    
    i have just set a random feature name and rust version as stability attribute, i expect to have to change that, i just don't know what the policy on that is. all guides i could find focused on contributing to the compiler, not contributing to the standard library.
    
    drawbacks: more code in the standard library, could be replaced with specialization: base-implementation for AsRef\<str> and specialization for String and Cow. i can write that code if ppl want it.
    
    advantages: using "real strings" i.e. Box\<str> is as ergonomic as string slices (&str) and string buffers (String) with iterators.
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    5311daa View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#73787 - pickfire:rustc-attrs, r=RalfJung

    Add unstable docs for rustc_attrs
    
    r? @RalfJung
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    e2ae88d View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#73834 - oli-obk:safe_intrinsics, r=ecstatic…

    …-morse
    
    Some refactoring around intrinsic type checking
    
    So... This PR went a bit overboard. I wanted to make the `rustc_peek` intrinsic safe (cc @ecstatic-morse ), and remembered a long-standing itch of mine. So I made that huge `&str` match for the intrinsic name a match on `Symbol`s (so basically `u32`s). This is unlikely to have a positive perf effect, even if it likely has better codegen (intrinsics are used rarely, mostly once in their wrapper), so it's mostly a consistency thing since other places actually match on the symbol name of the intrinsics.
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    fed2013 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#73871 - da-x:private-types-2018-no-extern, …

    …r=petrochenkov
    
    Fix try_print_visible_def_path for Rust 2018
    
    The recursive check of `try_print_visible_def_path` did not properly handle the Rust 2018 case of crate-paths without 'extern crate'. Instead, it returned a "not found" via (false, self).
    
     This fixes rust-lang#56175.
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    3e78eac View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a1ac4d6 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#73973 - Nadrieril:fix-71977, r=matthewjasper

    Use `Span`s to identify unreachable subpatterns in or-patterns
    
    Fixes rust-lang#71977
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    e450646 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#74000 - lcnr:lazy_normalisation_consts, r=v…

    …arkor
    
    add `lazy_normalization_consts` feature gate
    
    In rust-lang#71973 I underestimated the amount of code which is influenced by lazy normalization of consts
    and decided against having a separate feature flag for this.
    
    Looking a bit more into this, the following issues are already working with lazy norm in its current state rust-lang#47814 rust-lang#57739 rust-lang#73980
    
    I therefore think it is worth it to enable lazy norm separately. Note that `#![feature(const_generics)]` still automatically activates
    this feature, so using `#![feature(const_generics, lazy_normalization_consts)]` is redundant.
    
    r? @varkor @nikomatsakis
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    0eadeda View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#74025 - tmiasko:try-unwrap, r=Amanieu

    Remove unnecessary release from Arc::try_unwrap
    
    The thread that recovers the unique access to Arc inner value (e.g., drop
    when ref-count strong reaches zero, successful try_unwrap), ensures that
    other operations on Arc inner value happened before by synchronizing
    with release operations performed when decrementing the reference counter.
    
    When try_unwrap succeeds, the current thread recovers the unique access
    to Arc inner value, so release is unnecessary.
    
    r? @Amanieu
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    aef2ca6 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#74027 - lcnr:ConstCx-local-def-id, r=varkor

    Convert more `DefId`s to `LocalDefId`s
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    a1c076f View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#74055 - pickfire:patch-1, r=jonas-schievink

    Fix spacing in Iterator fold doc
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    4591b0f View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#74057 - lcnr:expected_found, r=davidtwco

    expected_found `&T` -> `T`
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    b4710bd View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#74064 - RalfJung:variant-count-bootstrap, r…

    …=kennytm
    
    variant_count: avoid incorrect dummy implementation
    
    This also avoids a stage 0 doctest failure.
    Manishearth authored Jul 5, 2020
    Configuration menu
    Copy the full SHA
    e624363 View commit details
    Browse the repository at this point in the history