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 5 pull requests #92232

Merged
merged 11 commits into from
Dec 23, 2021
Merged

Rollup of 5 pull requests #92232

merged 11 commits into from
Dec 23, 2021

Commits on Nov 5, 2021

  1. Add UnwindSafe to Once

    Milo123459 committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    8ad6e5f View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2021

  1. Configuration menu
    Copy the full SHA
    5994990 View commit details
    Browse the repository at this point in the history
  2. impl RefUnwindSafe for Once

    dtolnay committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    91161ed View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2021

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

Commits on Dec 22, 2021

  1. Store a DefId instead of an AdtDef in AggregateKind::Adt

    The `AggregateKind` enum ends up in the final mir `Body`. Currently,
    any changes to `AdtDef` (regardless of how significant they are)
    will legitimately cause the overall result of `optimized_mir` to change,
    invalidating any codegen re-use involving that mir.
    
    This will get worse once we start hashing the `Span` inside `FieldDef`
    (which is itself contained in `AdtDef`).
    
    To try to reduce these kinds of invalidations, this commit changes
    `AggregateKind::Adt` to store just the `DefId`, instead of the full
    `AdtDef`. This allows the result of `optimized_mir` to be unchanged
    if the `AdtDef` changes in a way that doesn't actually affect any
    of the MIR we build.
    Aaron1011 committed Dec 22, 2021
    Configuration menu
    Copy the full SHA
    cac431b View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2021

  1. Update books

    ehuss committed Dec 23, 2021
    Configuration menu
    Copy the full SHA
    b467887 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40c6720 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#92121 - RalfJung:miri-core-test, r=kennytm

    disable test with self-referential generator on Miri
    
    Running the libcore test suite in Miri currently fails due to the known incompatibility of self-referential generators with Miri's aliasing checks (rust-lang/unsafe-code-guidelines#148). So let's disable that test in Miri for now.
    matthiaskrgr authored Dec 23, 2021
    Configuration menu
    Copy the full SHA
    94b9b5f View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#92166 - fee1-dead:patch-2, r=jyn514

    Fixed a small typo in ui test comments
    matthiaskrgr authored Dec 23, 2021
    Configuration menu
    Copy the full SHA
    cf7ee69 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#92203 - Aaron1011:mir-adt-def, r=oli-obk

    Store a `DefId` instead of an `AdtDef` in `AggregateKind::Adt`
    
    The `AggregateKind` enum ends up in the final mir `Body`. Currently,
    any changes to `AdtDef` (regardless of how significant they are)
    will legitimately cause the overall result of `optimized_mir` to change,
    invalidating any codegen re-use involving that mir.
    
    This will get worse once we start hashing the `Span` inside `FieldDef`
    (which is itself contained in `AdtDef`).
    
    To try to reduce these kinds of invalidations, this commit changes
    `AggregateKind::Adt` to store just the `DefId`, instead of the full
    `AdtDef`. This allows the result of `optimized_mir` to be unchanged
    if the `AdtDef` changes in a way that doesn't actually affect any
    of the MIR we build.
    matthiaskrgr authored Dec 23, 2021
    Configuration menu
    Copy the full SHA
    8a61ae0 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#92231 - ehuss:update-books, r=ehuss

    Update books
    
    ## nomicon
    
    1 commits in 49681ea4a9fa81173dbe9ffed74b4d4a35eae9e3..c05c452b36358821bf4122f9c418674edd1d713d
    2021-11-24 16:27:28 +0900 to 2021-12-13 15:23:48 +0900
    - Update the guidance on uninitialized data with ptr::addr_of_mut (rust-lang/nomicon#325)
    
    ## reference
    
    3 commits in 954f3d441ad880737a13e241108f791a4d2a38cd..06f9e61931bcf58b91dfe6c924057e42ce273ee1
    2021-11-29 11:11:30 -0800 to 2021-12-17 07:31:40 -0800
    - keep consistent for primitive types (rust-lang/reference#1118)
    - README.md: link to mdbook docs (rust-lang/reference#1117)
    - Say that `...` range patterns are rejected in the 2021 edition (rust-lang/reference#1114)
    
    ## book
    
    4 commits in 5f9358faeb1f46e19b8a23a21e79fd7fe150491e..8a0bb3c96e71927b80fa2286d7a5a5f2547c6aa4
    2021-12-05 21:33:16 -0500 to 2021-12-22 20:54:27 -0500
    - Propagate edits back
    - Fix number disagreement. Fixes rust-lang/book#2858.
    - Wrap some code in main to make scopes clearer. Fixes rust-lang/book#2830.
    - Respond to ch5 nostarch edits
    
    ## rustc-dev-guide
    
    9 commits in a374e7d8bb6b79de45b92295d06b4ac0ef35bc09..9bf0028b557798ddd07a6f652e4d0c635d3d6620
    2021-12-03 09:26:47 -0800 to 2021-12-20 21:53:57 +0900
    - remove rustfix item in test intro (rust-lang/rustc-dev-guide#1277)
    - Move date-check comment to fix Markdown syntax
    - Update humor docs for special-casing ferris emoji
    - Fix some broken links (rust-lang/rustc-dev-guide#1274)
    - Update rustdoc internals
    - Update HIR chapter to use `HirId` instead of `NodeId`
    - Fix some broken links
    - Update src/getting-started.md
    - Improve documentation on r?
    matthiaskrgr authored Dec 23, 2021
    Configuration menu
    Copy the full SHA
    996fb28 View commit details
    Browse the repository at this point in the history