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 7 pull requests #109824

Merged
merged 29 commits into from
Mar 31, 2023
Merged

Rollup of 7 pull requests #109824

merged 29 commits into from
Mar 31, 2023

Commits on Mar 24, 2023

  1. Configuration menu
    Copy the full SHA
    e981738 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e193950 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c78ebab View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    95926b2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ec43cb3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    537fdbd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    415a3ca View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

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

Commits on Mar 30, 2023

  1. Configuration menu
    Copy the full SHA
    f40aa59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ef8d2d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    364e961 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    48f7148 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fa2824a View commit details
    Browse the repository at this point in the history
  6. Improve code

    GuillaumeGomez committed Mar 30, 2023
    Configuration menu
    Copy the full SHA
    bcf8a8b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f6035fb View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. Configuration menu
    Copy the full SHA
    f249832 View commit details
    Browse the repository at this point in the history
  2. Don't emit the OS error in a note

    This makes it possible to make the normalization of the error message
    more precise, allowing us to not normalize all notes away.
    est31 committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    97fb15d View commit details
    Browse the repository at this point in the history
  3. Remove an unnecessary use of with_session_globals.

    We can easily pass in the source map.
    nnethercote committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    f049d5d View commit details
    Browse the repository at this point in the history
  4. Improve with_source_map.

    Rename `with_source_map` as `set_source_map`. Because `with` functions
    (e.g. `with_session_globals`, `scoped_tls::ScopedKey::with`) are for
    *getting* a value for the duration of a closure, and `set` functions
    (e.g. `set_session_globals_then` `scoped_tls::ScopedKey::with`) are for
    *setting* a value for the duration of a closure.
    
    Also fix up the comment, which is wrong:
    - The bit about `TyCtxt` is wrong.
    - `span_debug1` doesn't exist any more.
    - There's only one level of fallback, not two.
    
    (This is effectively a follow-up to the changes in rust-lang#93936.)
    
    Also add a comment explaining that `SessionGlobals::source_map` should
    only be used when absolutely necessary.
    nnethercote committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    4e63ab6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aab9e32 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    efad057 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    54ef3a4 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#109104 - GuillaumeGomez:fix-invalid-suggest…

    …ion-ambiguous-intra-doc2, r=oli-obk,notriddle
    
    rustdoc: Fix invalid suggestions on ambiguous intra doc links v2
    
    Fixes rust-lang#108653.
    
    This is another approach to fixing the same issue. This time, we keep the computed information around instead of re-computing it.
    
    Strangely enough, the order for ambiguities seem to have been changed. Not an issue but it creates a lot of diff...
    
    So which version do you prefer?
    
    r? `@notriddle`
    GuillaumeGomez authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    8fe5b56 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#109443 - GuillaumeGomez:doc-primitive-hard-…

    …error, r=notriddle
    
    Move `doc(primitive)` future incompat warning to `invalid_doc_attributes`
    
    Fixes rust-lang#88070.
    
    It's been a while since this was turned into a "future incompatible lint" so I think we can now turn it into a hard error without problem.
    
    r? `@jyn514`
    GuillaumeGomez authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    6c93c63 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#109680 - clubby789:array-subslice-2229, r=d…

    …avidtwco
    
    Fix subslice capture in closure
    
    Fixes rust-lang#109298 by refining captures in the same way for Subslices and Indexes. The comment `// we never capture this` seems to have been inaccurate, as changing it to an assert causes many test failures
    
    `@rustbot` label +A-closures
    GuillaumeGomez authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    45fcb6f View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#109798 - est31:ftl_test_note, r=davidtwco

    fluent_messages macro: don't emit the OS error in a note
    
    This makes it possible to make the normalization of the error message precise, allowing us to not normalize all notes away. See rust-lang#109700 (comment)
    GuillaumeGomez authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    bd4e3f3 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#109805 - nnethercote:source_map-cleanups, r…

    …=bjorn3
    
    Source map cleanups
    
    r? `@bjorn3`
    GuillaumeGomez authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    d732934 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#109818 - GuillaumeGomez:test-collapsed-item…

    …, r=notriddle
    
    rustdoc: Add GUI test for jump to collapsed item
    
    Part of rust-lang#66181.
    
    I updated `browser-ui-test` version because I needed to add a new command `property`: GuillaumeGomez/browser-UI-test#452.
    
    r? `@notriddle`
    GuillaumeGomez authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    32842e8 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#109820 - notriddle:notriddle/help-comma, r=…

    …camelid
    
    rustdoc-search: update docs for comma in `?` help popover
    GuillaumeGomez authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    083c128 View commit details
    Browse the repository at this point in the history