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 9 pull requests #130237

Merged
merged 26 commits into from
Sep 11, 2024
Merged

Rollup of 9 pull requests #130237

merged 26 commits into from
Sep 11, 2024

Commits on Aug 28, 2024

  1. Configuration menu
    Copy the full SHA
    736ab66 View commit details
    Browse the repository at this point in the history
  2. Suggest the struct variant pattern syntax on usage of unit variant pa…

    …ttern for a struct variant
    tunawasabi committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    2ddcbca View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. add git_merge_commit_email into GitConfig

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    05043a3 View commit details
    Browse the repository at this point in the history
  2. implement build_helper::git::get_closest_merge_commit

    Compare to `get_git_merge_base`, this doesn't require configuring the upstream remote.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    dc9c5f2 View commit details
    Browse the repository at this point in the history
  3. replace get_closest_merge_base_commit with get_closest_merge_commit

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    9aa823c View commit details
    Browse the repository at this point in the history
  4. handle GitConfig for tools/suggest-tests

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    12998c2 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. handle GitConfig for tools/compiletest

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    35ce85e View commit details
    Browse the repository at this point in the history
  2. skip formatting if no files have been modified

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    0a7f9e2 View commit details
    Browse the repository at this point in the history
  3. Report the note when specified in diagnostic::on_unimplemented

    Signed-off-by: FedericoBruzzone <federico.bruzzone.i@gmail.com>
    FedericoBruzzone committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    4cecf42 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8f81597 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    49b3df9 View commit details
    Browse the repository at this point in the history
  6. Clarify docs for std::collections

    Page affected: https://doc.rust-lang.org/std/collections/index.html#performance
    
    Changes:
    
    - bulleted conventions
    - expanded definitions on terms used
    - more accessible language
    - merged Sequence and Map performance cost tables
    root-goblin authored and workingjubilee committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    4198594 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. document the new git logic in more detail

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    5f32717 View commit details
    Browse the repository at this point in the history
  2. Fix false positive with missing_docs and #[test]

    Since rust-lang#130025, the compiler don't ignore missing_docs when compiling the tests.
    But there is now a false positive warning for every `#[test]`
    
    For example, this code
    ```rust
    //! Crate docs
    
    fn just_a_test() {}
    ```
    
    Would emit this warning when running `cargo test`
    
    ```
    warning: missing documentation for a constant
     --> src/lib.rs:5:1
      |
    4 | #[test]
      | ------- in this procedural macro expansion
    5 | fn just_a_test() {}
      | ^^^^^^^^^^^^^^^^^^^
    ```
    ogoffart committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    6eddbb7 View commit details
    Browse the repository at this point in the history
  3. Make SearchPath::new public

    Vetle Rasmussen committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    9566163 View commit details
    Browse the repository at this point in the history
  4. Use #[doc(hidden)] instead of #[allow(missing_docs)] on the const…

    … generated for `#[test]`
    ogoffart committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    5d456df View commit details
    Browse the repository at this point in the history
  5. Use doc(hidden) instead of allow(missing_docs) in the test harness

    So that it doesn't fail with `forbid(missing_docs)`
    
    Fixes rust-lang#130218
    ogoffart committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    cc34d64 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#129260 - wafarm:dont-suggest-closures, r=co…

    …mpiler-errors
    
    Don't suggest adding return type for closures with default return type
    
    Follow up of rust-lang#129223
    
    r? ``@compiler-errors``
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    76e070f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#129520 - tunawasabi:suggest-adding-struct-p…

    …attern-syntax, r=compiler-errors
    
    Suggest the correct pattern syntax on usage of unit variant pattern for a struct variant
    
    Closes rust-lang#126243
    
    I add a suggestion on usage of unit variant pattern for a struct variant.
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    1d6edee View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#129866 - root-goblin:patch-1, r=workingjubilee

    Clarify documentation labelling and definitions for std::collections
    
    Page affected: https://doc.rust-lang.org/std/collections/index.html#performance
    
    Changes:
    - bulleted conventions
    - expanded definitions on terms used
    - more accessible language
    - more informative headings
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    6d7ccad View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#130123 - FedericoBruzzone:master, r=compile…

    …r-errors
    
    Report the `note` when specified in `diagnostic::on_unimplemented`
    
    Before this PR the `note` field was completely ignored for some reason, now it is shown (I think) correctly during the hir typechecking phase.
    
    1. Report the `note` when specified in `diagnostic::on_unimplemented`
    2. Added a test for unimplemented trait diagnostic
    3. Added a test for custom unimplemented trait diagnostic
    
    Close rust-lang#130084
    
    P.S. This is my first PR to rustc.
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    5107ff4 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#130161 - onur-ozkan:fmt-changed-files, r=Ko…

    …bzol,RalfJung
    
    refactor merge base logic and fix `x fmt`
    
    When remote upstream is not configured, using [get_git_modified_files](https://github.com/rust-lang/rust/blob/38e3a5771cefc9362976a605549f8b04d5707311/src/tools/build_helper/src/git.rs#L114) to find modified files fails because [get_rust_lang_rust_remote](https://github.com/rust-lang/rust/blob/38e3a5771cefc9362976a605549f8b04d5707311/src/tools/build_helper/src/git.rs#L46-L48) can not resolve "rust-lang/rust" from the git output. The changes in this PR makes bootstrap to find the latest bors commit, treating it as the "closest upstream commit" so that the change tracker logic can use it to find the diffs.
    
    In addition, [skips formatting](rust-lang@e392454) if there are no modified files.
    
    Fixes rust-lang#130147
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    ff4b3d4 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#130206 - GrigorenkoPV:WSAEDQUOT, r=ChrisDenton

    Map `WSAEDQUOT` to `ErrorKind::FilesystemQuotaExceeded`
    
    cc rust-lang#86442
    
    As summarized in rust-lang#130190, there seems to be a consensus that this should be done.
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    e68dadb View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#130207 - GrigorenkoPV:ERROR_CANT_RESOLVE_FI…

    …LENAME, r=ChrisDenton
    
    Map `ERROR_CANT_RESOLVE_FILENAME` to `ErrorKind::FilesystemLoop`
    
    cc rust-lang#86442
    
    As summarized in rust-lang#130188, there seems to be a consensus that this should be done.
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    78cf023 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#130219 - ogoffart:missing-docs-test, r=Urgau

    Fix false positive with `missing_docs` and `#[test]`
    
    Since rust-lang#130025, the compiler don't ignore missing_docs when compiling the tests. But there is now a false positive warning for every `#[test]`
    
    For example, this code
    ```rust
    //! Crate docs
    
    fn just_a_test() {}
    ```
    
    Would emit this warning when running `cargo test`
    
    ```
    warning: missing documentation for a constant
     --> src/lib.rs:5:1
      |
    4 | #[test]
      | ------- in this procedural macro expansion
    5 | fn just_a_test() {}
      | ^^^^^^^^^^^^^^^^^^^
    ```
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    66727ea View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#130221 - vetleras:pub_search_path_new, r=ch…

    …enyukang
    
    Make SearchPath::new public
    
    I'm writing a tool that uses `rustc_interface`, and would like to construct `SearchPath` with its `new` method.
    
    As all three fields in `SearchPath` are public anyway, the proposed change should not change the privacy or encapsulation of the struct.
    matthiaskrgr authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    678c249 View commit details
    Browse the repository at this point in the history