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 6 pull requests #128297

Closed
wants to merge 18 commits into from

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    ceec6dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bd3632 View commit details
    Browse the repository at this point in the history
  3. improve error message when #[naked] is used with `#[track-caller] a…

    …nd `#[target-feature]``
    folkertdev committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    7e6c083 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4d082b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2024

  1. switch to an allowlist approach

    - merge error codes
    - use attribute name that is incompatible in error message
    - add test for conditional incompatible attribute
    - add `linkage` to the allowlist
    folkertdev committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    c6a166b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3bb010 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bad25e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c7e688e View commit details
    Browse the repository at this point in the history
  5. stabilize const_waker

    slanterns committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    ad05195 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c9e408e View commit details
    Browse the repository at this point in the history
  7. stabilize is_sorted

    slanterns committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    ec0b354 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2024

  1. rustc book: document how the RUST_TARGET_PATH variable is used

    based on the module comment in
    rust/compiler/rustc_target/src/spec/mod.rs
    
    Fixes rust-lang#128280
    lolbinarycat committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    5eea6d7 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#127853 - folkertdev:naked-function-error-me…

    …ssages, r=bjorn3
    
    `#[naked]`: report incompatible attributes
    
    tracking issue: rust-lang#90957
    
    this is a re-implementation of rust-lang#93809 by `@bstrie` which was closed 2 years ago due to inactivity.
    
    This PR takes some of the final comments into account, specifically providing a little more context in error messages, and using an allow list to determine which attributes are compatible with `#[naked]`.
    
    Notable attributes that are incompatible with `#[naked]` are:
    
      * `#[inline]`
      * `#[track_caller]`
      * ~~`#[target_feature]`~~ (this is now allowed, see PR discussion)
      * `#[test]`, `#[ignore]`, `#[should_panic]`
    
    These attributes just directly conflict with what `#[naked]` should do.
    
    Naked functions are still important for systems programming, embedded, and operating systems, so I'd like to move them forward.
    matthiaskrgr authored Jul 28, 2024
    Configuration menu
    Copy the full SHA
    bcb18a8 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#128228 - slanterns:const_waker, r=dtolnay

    Stabilize `const_waker`
    
    Closes: rust-lang#102012.
    
    For `local_waker` and `context_ext` related things, I just ~~moved them to dedicated feature gates and reused their own tracking issue (maybe it's better to open a new one later, but at least they should not be tracked under rust-lang#102012 from the beginning IMO.)~~ reused their own feature gates as suggested by `@tgross35.`
    
    `@rustbot` label: +T-libs-api
    
    r? libs-api
    matthiaskrgr authored Jul 28, 2024
    Configuration menu
    Copy the full SHA
    78883da View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#128276 - ehuss:rustbook-readme, r=Kobzol

    Add a README to rustbook to explain its purpose
    
    This adds a README to the rustbook tool to help explain what it is for and how to use it.
    matthiaskrgr authored Jul 28, 2024
    Configuration menu
    Copy the full SHA
    aa07def View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#128279 - slanterns:is_sorted, r=dtolnay

    Stabilize `is_sorted`
    
    Closes: rust-lang#53485.
    
    ~~Question: does~~ https://github.com/rust-lang/rust/blob/8fe0c753f23e7050b87a444b6622caf4d2272d5d/compiler/rustc_lint_defs/src/builtin.rs#L1986-L1994 ~~need a new example?~~
    edit: It causes a test failure and needs to be changed anyway.
    
    `@rustbot` label: +T-libs-api
    
    r? libs-api
    matthiaskrgr authored Jul 28, 2024
    Configuration menu
    Copy the full SHA
    5b59640 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#128282 - pitaj:nonzero_bitwise, r=workingju…

    …bilee
    
    bitwise and bytewise methods on `NonZero`
    
    Implementation for `nonzero_bitwise`
    Tracking issue rust-lang#128281
    ACP rust-lang/libs-team#413
    matthiaskrgr authored Jul 28, 2024
    Configuration menu
    Copy the full SHA
    6644c87 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#128285 - lolbinarycat:rustc-custom-targets,…

    … r=jieyouxu
    
    rustc book: document how the RUST_TARGET_PATH variable is used
    
    based on the module comment in
    rust/compiler/rustc_target/src/spec/mod.rs
    
    Fixes rust-lang#128280
    matthiaskrgr authored Jul 28, 2024
    Configuration menu
    Copy the full SHA
    0b4d21b View commit details
    Browse the repository at this point in the history