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 13 pull requests #77606

Merged
merged 32 commits into from
Oct 6, 2020
Merged

Rollup of 13 pull requests #77606

merged 32 commits into from
Oct 6, 2020

Commits on Sep 5, 2020

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

Commits on Sep 21, 2020

  1. Reduce boilerplate with the matches! macro

    Replaces simple bool `match`es of the form
    
        match $expr {
            $pattern => true
            _ => false
        }
    
    and their inverse with invocations of the matches! macro.
    LingMan committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    a6ff925 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2020

  1. rewrite old test so that its attributes are consistent with what we w…

    …ant in the language.
    
    (Note that the fact this test existed is a slight sign that we may need a crater
    run on this bugfix...)
    pnkfelix authored and Mark-Simulacrum committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    b4e77d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9601724 View commit details
    Browse the repository at this point in the history
  3. Inline "eof" methods

    tamird committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    f78a7ad View commit details
    Browse the repository at this point in the history
  4. Prevent forbid from being ignored if overriden at the same level.

    That is, this changes `#[forbid(foo)] #[allow(foo)]` from allowing foo to
    forbidding foo.
    pnkfelix authored and Mark-Simulacrum committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    afa2a67 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5ab1967 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    62f7712 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b205436 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. Configuration menu
    Copy the full SHA
    afe83d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5388eb4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c877ff3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b1ce619 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5541456 View commit details
    Browse the repository at this point in the history
  6. hint doc use intra-doc links

    Co-authored-by: Joshua Nelson <joshua@yottadb.com>
    pickfire and Joshua Nelson authored Oct 5, 2020
    Configuration menu
    Copy the full SHA
    cb881d3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    35192ff View commit details
    Browse the repository at this point in the history
  8. Record expansion_that_defined into crate metadata

    Fixes rust-lang#77523
    
    Now that hygiene serialization is implemented, we also need to record
    `expansion_that_defined` so that we properly handle a foreign
    `SyntaxContext`.
    Aaron1011 committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    8d11f90 View commit details
    Browse the repository at this point in the history
  9. Fixup

    camelid committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    c8d25af View commit details
    Browse the repository at this point in the history
  10. Revamp rustdoc docs about documentation using cfg

    - Move `cfg(doc)` out of `unstable-features`. It's not unstable.
    - Remove outdated reference to `everybody_loops`.
    - Improve wording in various places
    - Give an example of code this allows (and does not allow)
    - Link to `cfg(doc)` in `doc(cfg)` documentation. Since one is stable
    and the other is not, don't combine them.
    - Cleanup wording for `doc(cfg)`
    - Incorporate changes from rust-lang#76849
    - Mention that `doc(cfg)` is also for features
    jyn514 committed Oct 5, 2020
    Configuration menu
    Copy the full SHA
    dc5a000 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2020

  1. Rollup merge of rust-lang#76388 - poliorcetics:system-time-document-p…

    …anic, r=KodrAus
    
    Add a note about the panic behavior of math operations on time objects
    
    Fixes rust-lang#71226.
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    59476e9 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#76855 - jyn514:platform-specific, r=ollie27

    Revamp rustdoc docs about documentation using `cfg`
    
    - Move `cfg(doc)` out of `unstable-features`. It's not unstable.
    - Remove outdated reference to `everybody_loops`.
    - Improve wording in various places
    - Give an example of code this allows (and does not allow)
    - Link to `cfg(doc)` in `doc(cfg)` documentation. Since one is stable
    and the other is not, don't combine them.
    - Cleanup wording for `doc(cfg)`
    - Incorporate changes from rust-lang#76849
    - Mention that `doc(cfg)` is also for features
    
    Addresses rust-lang#76849 (comment).
    Obsoletes rust-lang#76849 (I made sure to fix the weird dashes too).
    r? @steveklabnik
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    97ee62c View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#76995 - LingMan:middle_matches, r=varkor

    Reduce boilerplate with the matches! macro
    
    Replaces simple bool `match`es of the form
    
        match $expr {
            $pattern => true
            _ => false
        }
    
    and their inverse with invocations of the matches! macro.
    
    Limited to rustc_middle for now to get my feet wet.
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    d50349b View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#77228 - GuillaumeGomez:maybeuninit-examples…

    …, r=pickfire
    
    Add missing examples for MaybeUninit
    
    r? @Dylan-DPC
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    d7123c2 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#77528 - tamird:avoid-cast-net-parser, r=dto…

    …lnay
    
    Avoid unchecked casts in net parser
    
    Once this and rust-lang#77426 are in, I'll send another PR adding scope id parsing.
    
    r? @dtolnay
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    eac25fe View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#77534 - Mark-Simulacrum:issue-70819-disallo…

    …w-override-forbid-in-same-scope, r=petrochenkov
    
    Disallow overriding forbid in same scope
    
    Rebased rust-lang#73379.
    
    Fixes rust-lang#70819.
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    bc600c3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2b5049b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#77558 - thomcc:defaults-toml-extension, r=j…

    …yn514
    
    Rename bootstrap/defaults/{config.toml.PROFILE => config.PROFILE.toml}
    
    This allows these files to have okay syntax highlighting in editors, and helps avoid nagging from editors which want to suggest that I install a plugin for `*.library` files to view the `config.toml.library` or whatever.
    
    It's a very minor change.
    
    r?@jyn514
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    54d72d7 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#77559 - camelid:fix-rustdoc-warnings-invali…

    …d-rust-syntax, r=lcnr
    
    Fix rustdoc warnings about invalid Rust syntax
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    2970af8 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#77560 - rschoon:fix-litkind-rc-bytebuf, r=lcnr

    Fix LitKind's byte buffer to use refcounted slice
    
    While working on adding a new lint for clippy (see rust-lang/rust-clippy#6044) for avoiding shared ownership of "mutable buffer" types (such as using `Rc<Vec<T>>` instead of `Rc<[T]>`), I noticed a type exported from rustc_ast and used by clippy gets caught by the lint. This PR fixes the exported type.
    
    This PR includes the actual change to clippy too, but I will open a PR directly against clippy for that part (although it will currently fail to build there).
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    5c1e011 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#77573 - pickfire:patch-7, r=jyn514

    Hint doc use convert::identity relative link
    
    r? @jyn514
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    cdaf8c5 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#77587 - ehuss:unicode-escape-span, r=ecstat…

    …ic-morse
    
    Fix span for unicode escape suggestion.
    
    If a unicode escape is missing the curly braces, the suggested fix is to add the curly braces, but the span for the fix was incorrect. It was not covering the `\u`, but the suggested text includes the `\u`, causing the resulting fix to be `"\u\u{1234}"`. This changes it so that the span includes the `\u`. An alternate fix would be to remove `\u` from the suggested fix, but I think the error message reads better if the entire escape is included.
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    cc908f3 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#77591 - Aaron1011:fix/hygiene-def-scope, r=…

    …estebank
    
    Record `expansion_that_defined` into crate metadata
    
    Fixes rust-lang#77523
    
    Now that hygiene serialization is implemented, we also need to record
    `expansion_that_defined` so that we properly handle a foreign
    `SyntaxContext`.
    JohnTitor authored Oct 6, 2020
    Configuration menu
    Copy the full SHA
    552933b View commit details
    Browse the repository at this point in the history