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 10 pull requests #70275

Merged
merged 29 commits into from
Mar 22, 2020
Merged

Rollup of 10 pull requests #70275

merged 29 commits into from
Mar 22, 2020

Commits on Jan 10, 2020

  1. Ammend Rc/Arc::from_raw() docs regarding unsafety

    Constructing an Rc/Arc is unsafe even if the wrapped `T`
    is never dereferenced.
    lukaslueg committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    becebf3 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

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

Commits on Feb 7, 2020

  1. Make rc::RcBox and sync::ArcInner repr(C)

    Future-proof these types in case rustc reorders
    the inner fields. As per discussion in PR rust-lang#68099.
    lukaslueg committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    586c7e3 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2020

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

Commits on Mar 21, 2020

  1. Configuration menu
    Copy the full SHA
    4d30b92 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9c2378 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    54e103b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1dcbdbd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5566a1c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3b4c2f6 View commit details
    Browse the repository at this point in the history
  7. Return NonZeroU64 from ThreadId::as_u64.

    As discussed in rust-lang#67939, this allows turning Option<ThreadId> into Option<NonZeroU64> which
    can then be stored inside an AtomicU64.
    Thomas Bächler committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    c8140a8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a6692b7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    47e9775 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e45fdcf View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c746d93 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3f42104 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3599fd3 View commit details
    Browse the repository at this point in the history
  14. don't create variable bindings just to return the bound value immedia…

    …tely (clippy::let_and_return)
    matthiaskrgr committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    74d68ea View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2020

  1. Configuration menu
    Copy the full SHA
    bdd07f9 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#68099 - lukaslueg:into_raw_unsafe, r=LukasK…

    …albertodt
    
    Amend Rc/Arc::from_raw() docs regarding unsafety
    
    [This](https://stackoverflow.com/questions/59671647/is-it-safe-to-clone-a-type-erased-arc-via-raw-pointer) question on SO boils down to "is it safe to `::from_raw()` a `Rc<T>`/`Arc<T>` using a dummy `T` even if `T` is never dereferenced via the new `Rc`/`Arc`?". It almost never is.
    
    This PR amends the docs of `from_raw()` regarding this point.
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    0bc5fc9 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#70172 - eddyb:retokenize-external-src, r=pe…

    …trochenkov
    
    parse/lexer: support `StringReader::retokenize` called on external files.
    
    This ~~should theoretically~~ fixes rust-lang#69933, ~~but I'm not sure what the best way to test it is~~.
    **EDIT**: see rust-lang#69933 (comment).
    
    r? @petrochenkov cc @Xanewok @staktrace
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    9890d9a View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#70209 - Centril:recover-quant-closure, r=pe…

    …trochenkov
    
    parser: recover on `for<'a> |...| body` closures
    
    When encountering `for` and `<` is 1 token ahead, interpret this as an explicitly quantified generic closure and recover, rather than attempting to parse a `for` loop. This provides both improved diagnostics as well as an insurance policy for the ability to use this as the syntax for generic closures in the future.
    
    As requested by r? @eddyb
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    ea44d71 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#70223 - lcnr:issue70167, r=eddyb

    fix type of const params in associated types.
    
    fixes rust-lang#66906
    fixes rust-lang#70167
    
    r? @eddyb
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    3c8f8b6 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#70229 - matthiaskrgr:cl3ppy, r=Mark-Simulacrum

    more clippy fixes
    
    * remove unused unit values (clippy::unused_unit)
    * make some let-if-bindings more idiomatic (clippy::useless_let_if_seq)
    * clarify when we pass () to functions (clippy::unit_arg)
    * don't redundantly repeat field names (clippy::redundant_field_names)
    * remove redundant returns (clippy::needless_return)
    * use let instead of match for matches with single bindings (clippy::match_single_binding)
    * don't convert results to options just for matching (clippy::if_let_some_result)
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    e58fec0 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#70240 - brain0:thread_id, r=Mark-Simulacrum

    Return NonZeroU64 from ThreadId::as_u64.
    
    As discussed in rust-lang#67939, this allows turning Option<ThreadId> into Option<NonZeroU64> which
    can then be stored inside an AtomicU64.
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    c882b10 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#70250 - jplatte:patch-1, r=Centril

    Remove wrong entry from RELEASES.md
    
    resolves rust-lang#70247
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    bc3dad1 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#70253 - jplatte:patch-2, r=Mark-Simulacrum

    Remove another wrong entry from RELEASES.md
    
    The entry is under 1.11.0, but the feature is only available since 1.12.0 (for which an identical entry exists).
    
    ![Screenshot_2020-03-22 Support `cfg_attr` on `path` attributes by jseyfried · Pull Request rust-lang#34546 · rust-lang rust](https://user-images.githubusercontent.com/951129/77238862-85c8f580-6bd4-11ea-8d31-77e2994a4b5a.png)
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    e5d3476 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#70254 - matthiaskrgr:cl4ppy, r=Centril

    couple more clippy fixes (let_and_return, if_same_then_else)
    
    * summarize if-else-code with identical blocks (clippy::if_same_then_else)
    * don't create variable bindings just to return the bound value immediately (clippy::let_and_return)
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    8fe8bad View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#70266 - petrochenkov:prochead, r=varkor

    proc_macro_harness: Use item header spans for errors
    
    Addresses rust-lang#70233 (comment).
    Dylan-DPC committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    69c0bcd View commit details
    Browse the repository at this point in the history