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 #115909

Merged
merged 20 commits into from
Sep 17, 2023
Merged

Rollup of 6 pull requests #115909

merged 20 commits into from
Sep 17, 2023

Commits on Aug 18, 2023

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

Commits on Sep 1, 2023

  1. fix Debug impl for AsciiChar

    soqb committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    9c0e5eb View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2023

  1. Configuration menu
    Copy the full SHA
    0eb4133 View commit details
    Browse the repository at this point in the history
  2. Stabilize the Saturating type (saturating_int_impl, rust-langgh-87920)

    Also stabilizes saturating_int_assign_impl, rust-langgh-92354.
    
    And also make pub fns const where the underlying saturating_*
    fns became const in the meantime since the Saturating type was
    created.
    kellerkindt committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    ad54426 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. add diagnostic for raw identifiers in format string

    Lukas Markeffsky committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    d990eee View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. explain PassMode::Cast

    RalfJung committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    7740476 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89139d4 View commit details
    Browse the repository at this point in the history
  3. fix gcc, cranelift build

    RalfJung committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    29a4b7b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3ee65c2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6e2adbf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9edeb19 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b40f11c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cb9f666 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8696ee8 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2023

  1. Rollup merge of rust-lang#114965 - benschulz:mpsc-drop, r=dtolnay

    Remove Drop impl of mpsc Receiver and (Sync)Sender
    
    This change removes the empty `Drop` implementations for `mpsc::Receiver`, `mpsc::Sender` and `mpsc::SyncSender`. These implementations do not specify `#[may_dangle]`, so by removing them we make `mpsc` types play nice with drop check.
    
    This was previously attempted in [rust-lang#105243](rust-lang#105243 (comment)) but then [abandoned due to a test failure](rust-lang#105243 (comment)). I've aligned the test with those for `Mutex` and `RwLock`.
    Dylan-DPC authored Sep 17, 2023
    Configuration menu
    Copy the full SHA
    7cbe7fa View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#115434 - soqb:ascii-char-manual-debug, r=dt…

    …olnay
    
    make `Debug` impl for `ascii::Char` match that of `char`
    
    # Objective
    use a more recognisable format for the `Debug` impl on `ascii::Char` than the derived one based off the enum variants. The alogorithm used is the following:
     - escape `ascii::Char::{Null, CharacterTabulation, CarraigeReturn, LineFeed, ReverseSolidus, Apostrophe}` to `'\0'`, `'\t'`, `'\r'`, `'\n'`, `'\\'` and `'\''` respectively. these are the same escape codes as `<char as Debug>::fmt` uses.
     - if `u8::is_ascii_control` is false, print the character wrapped in single quotes.
     - otherwise, print in the format `'\xAB'` where `A` and `B` are the hex nibbles of the byte. (`char` uses unicode escapes and this seems like the corresponding ascii format).
    
    Tracking issue: rust-lang#110998
    Dylan-DPC authored Sep 17, 2023
    Configuration menu
    Copy the full SHA
    584eb69 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#115477 - kellerkindt:stabilized_int_impl, r…

    …=dtolnay
    
    Stabilize the `Saturating` type
    
    Closes rust-lang#87920
    Closes rust-lang#92354
    
    Stabilization report rust-lang#87920 (comment)
    FCP rust-lang#87920 (comment)
    Dylan-DPC authored Sep 17, 2023
    Configuration menu
    Copy the full SHA
    6011fd4 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#115611 - lukas-code:format!("{r#ident}"), r…

    …=compiler-errors
    
    add diagnostic for raw identifiers in format string
    
    Format strings don't support raw identifiers (e.g. `format!("{r#type}")`), but they do support keywords in the format string directly (e.g. `format!("{type}")`). This PR improves the error output when attempting to use a raw identifier in a format string and adds a machine-applicable suggestion to remove the `r#`.
    
    fixes rust-lang#115466
    Dylan-DPC authored Sep 17, 2023
    Configuration menu
    Copy the full SHA
    0900712 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#115654 - RalfJung:pass-mode-cast, r=compile…

    …r-errors
    
    improve PassMode docs
    Dylan-DPC authored Sep 17, 2023
    Configuration menu
    Copy the full SHA
    0c5f5b6 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#115862 - clubby789:migrate-callee-translata…

    …ble, r=compiler-errors
    
    Migrate `compiler/rustc_hir_typeck/src/callee.rs` to translatable diagnostics
    Dylan-DPC authored Sep 17, 2023
    Configuration menu
    Copy the full SHA
    f082f1d View commit details
    Browse the repository at this point in the history