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 8 pull requests #93468

Merged
merged 19 commits into from
Jan 30, 2022
Merged

Rollup of 8 pull requests #93468

merged 19 commits into from
Jan 30, 2022

Commits on Jan 24, 2022

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

Commits on Jan 27, 2022

  1. Configuration menu
    Copy the full SHA
    1ab97db View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6de4d5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c6f6e3e View commit details
    Browse the repository at this point in the history
  4. rustdoc: remove tooltip from source link

    This made more sense back when it was abbreviated, but now it
    seems redundant.
    notriddle committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    2e38e3b View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2022

  1. Configuration menu
    Copy the full SHA
    2188c55 View commit details
    Browse the repository at this point in the history
  2. Update stdarch submodule

    Amanieu committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    9a814b8 View commit details
    Browse the repository at this point in the history
  3. rustdoc: load the set of in-scope traits for modules with no docstring

    Fixes rust-lang#93428
    
    This fix is a response to a couple of special cases related to the
    `module_id`, which is eventually used for trait candidates:
    
      * The module id is always set to the current crate, when checking `crate::`.
    
        Normally, the set of in-scope traits would be set in `load_links_in_attrs`,
        but if there are no doc comments, then that loop will never run.
    
      * the module id is set to the parent module, when resolving a module
        that is spelled like this:
    
            // Notice how we use an outlined doc comment here!
            // [`Test::my_fn`]
            mod something {
            }
    
        As with the above problem with `crate::`, we need to make sure the
        module gets its traits in scope resolved, even if it has no doc comments
        of its own.
    notriddle committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    3903ca1 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2022

  1. Configuration menu
    Copy the full SHA
    6667d78 View commit details
    Browse the repository at this point in the history
  2. fs: Don't copy d_name from struct dirent

    The dirent returned from readdir() is only guaranteed to be valid for
    d_reclen bytes on common platforms.  Since we copy the name separately
    anyway, we can copy everything except d_name into DirEntry::entry.
    
    Fixes rust-lang#93384.
    tavianator committed Jan 29, 2022
    Configuration menu
    Copy the full SHA
    f8f4c40 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d0c8b29 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#93256 - EFanZh:patch-1, r=joshtriplett

    Make `join!` description more accurate
    matthiaskrgr authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    6e2593d View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#93358 - compiler-errors:is-not-const, r=fee…

    …1-dead
    
    Add note suggesting that predicate may be satisfied, but is not `const`
    
    Not sure if we should be printing this in addition to, or perhaps _instead_ of the help message:
    ```
    help: the trait `~const Add` is not implemented for `NonConstAdd`
    ```
    
    Also added `ParamEnv::is_const` and `PolyTraitPredicate::is_const_if_const` and, in a separate commit, used those in other places instead of `== hir::Constness::Const`, etc.
    
    r? ````@fee1-dead````
    matthiaskrgr authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    103c3a3 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#93362 - compiler-errors:ice-gat-in-rpit, r=…

    …oli-obk
    
    Do not register infer var for GAT projection in RPIT
    
    Fixes rust-lang#93340
    Fixes rust-lang#91603
    
    r? ```@oli-obk```
    matthiaskrgr authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    4484165 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#93391 - notriddle:notriddle/remove-srclink-…

    …tooltip, r=jsha,GuillaumeGomez
    
    rustdoc: remove tooltip from source link
    
    This made more sense back when it was abbreviated, but now it seems redundant.
    matthiaskrgr authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    0b2359b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#93414 - Amanieu:std_arch_detect, r=m-ou-se

    Move unstable is_{arch}_feature_detected! macros to std::arch
    
    These macros are unstable, except for `is_x86_feature_detected` which is still exported from the crate root for backwards-compatibility.
    
    This should unblock the stabilization of `is_aarch64_feature_detected`.
    
    r? ```@m-ou-se```
    matthiaskrgr authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    329753e View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#93441 - notriddle:notriddle/collect-crate-d…

    …oc-links-very-early, r=petrochenkov
    
    rustdoc: load the set of in-scope traits for modules with no docstring
    
    Fixes rust-lang#93428
    
    This fix is a response to a couple of special cases related to the `module_id`, which is eventually used for trait candidates:
    
      * The module id is always set to the current crate, when checking `crate::`.
    
        Normally, the set of in-scope traits would be set in `load_links_in_attrs`, but if there are no doc comments, then that loop will never run.
    
      * the module id is set to the parent module, when resolving a module that is spelled like this:
    
            // Notice how we use an outlined doc comment here!
            // [`Test::my_fn`]
            mod something {
            }
    
        As with the above problem with `crate::`, we need to make sure the module gets its traits in scope resolved, even if it has no doc comments of its own.
    matthiaskrgr authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    605ffd6 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#93459 - tavianator:dirent-copy-only-reclen,…

    … r=cuviper
    
    fs: Don't copy d_name from struct dirent
    
    The dirent returned from readdir() is only guaranteed to be valid for
    d_reclen bytes on common platforms.  Since we copy the name separately
    anyway, we can copy everything except d_name into DirEntry::entry.
    
    Fixes rust-lang#93384.
    matthiaskrgr authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    0d08bbc View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#93463 - dtolnay:_args, r=cjgillot

    Rename _args -> args in format_args expansion
    
    As observed in rust-lang#91359 (comment), prior to that PR this variable was sometimes never used, such as in the case of:
    
    ```rust
    println!("");
    
    // used to expand to:
    ::std::io::_print(
        ::core::fmt::Arguments::new_v1(
            &["\n"],
            &match () {
                _args => [],
            },
        ),
    );
    ```
    
    so the leading underscore in `_args` was used to suppress an unused variable lint. However after rust-lang#91359 the variable is always used when present, as the unused case would instead expand to:
    
    ```rust
    ::std::io::_print(::core::fmt::Arguments::new_v1(&["\n"], &[]));
    ```
    matthiaskrgr authored Jan 29, 2022
    Configuration menu
    Copy the full SHA
    9f6d0cb View commit details
    Browse the repository at this point in the history