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

Closed
wants to merge 25 commits into from
Closed

Rollup of 8 pull requests #124642

wants to merge 25 commits into from

Commits on May 1, 2024

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

Commits on May 2, 2024

  1. Configuration menu
    Copy the full SHA
    42ecde4 View commit details
    Browse the repository at this point in the history
  2. library/std: Remove unused gimli-symbolize feature

    library/backtrace also declares a feature called `gimli-symbolize` which
    appear used, but the feature in std with the same name is unused, so
    remove it.
    Enselic committed May 2, 2024
    Configuration menu
    Copy the full SHA
    9af3b1e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ff2ff97 View commit details
    Browse the repository at this point in the history
  4. Tweak consts_may_unify.

    `ConstKind::Value` is the only variant where control flow leaves the
    first match on `impl_ct.kind()`, so there is no need for a second match
    on the same expression later on.
    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    3722eb0 View commit details
    Browse the repository at this point in the history
  5. rustc_expand: clean up attributes.

    Sort them, and remove the unused ones (`lint_reasons` and
    `proc_macro_span`).
    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    aabb90d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d817856 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7c6d363 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3f05589 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    189a8a6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e809df6 View commit details
    Browse the repository at this point in the history
  11. Inline and remove three DummyResult methods.

    They each have a single call site.
    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    d7f5319 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c9c964f View commit details
    Browse the repository at this point in the history
  13. Remove unnecessary pubs.

    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    79c4d02 View commit details
    Browse the repository at this point in the history
  14. Tweak fully_expand_fragment loop.

    Control flow never gets past the end of the `ExpandResult::Retry` match
    arm, due to the `span_bug` and the `continue`. Therefore, the code after
    the match can only be reached from the `ExpandResult::Ready` arm.
    
    This commit moves that code after the match into the
    `ExpandResult::Ready` arm, avoiding the need for the `continue` in the
    `ExpandResult::Retry` arm.
    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    3b69781 View commit details
    Browse the repository at this point in the history
  15. Replace a hard-to-read line.

    Too clever by half, IMO.
    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    1c15b6a View commit details
    Browse the repository at this point in the history
  16. Introduce Invocation::span_mut.

    Alongside the existing `Invocation::span`.
    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    ae7e328 View commit details
    Browse the repository at this point in the history
  17. Type annotate repeats.

    Because the type is not obvious, and this clarifies things.
    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    5ac017e View commit details
    Browse the repository at this point in the history
  18. Refactor Frame.

    It is currently an enum and the `tts` and `idx` fields are repeated
    across the two variants.
    
    This commit splits it into a struct `Frame` and an enum `FrameKind`, to
    factor out the duplication. The commit also renames `Frame::new` as
    `Frame::new_delimited` and adds `Frame::new_sequence`. I.e. both
    variants now have a constructor.
    nnethercote committed May 2, 2024
    Configuration menu
    Copy the full SHA
    3a3a15d View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Rollup merge of rust-lang#124593 - GKFX:cstr-literals-in-api-docs, r=…

    …workingjubilee
    
    Describe and use CStr literals in CStr and CString docs
    
    Mention CStr literals in the description of both types, and use them in some of the code samples for CStr. This is intended to make C string literals more discoverable.
    
    Additionally, I don't think the orange "This example is not tested" warnings are very encouraging, so I have made the examples on `CStr` build.
    fmease committed May 3, 2024
    Configuration menu
    Copy the full SHA
    60e983e View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#124594 - jieyouxu:rmake-cc, r=fmease

    run-make-support: preserve tooks.mk behavior for EXTRACXXFLAGS
    
    In rust-lang#123149 when trying to add a command wrapper for `cc`, I didn't preserve the behavior of tools.mk completely: tools.mk had
    
    ```makefile
    # Extra flags needed to compile a working executable with the standard library
    ifdef IS_WINDOWS
    ifdef IS_MSVC
    	#EXTRACFLAGS := ws2_32.lib userenv.lib advapi32.lib bcrypt.lib ntdll.lib synchronization.lib
    else
    	#EXTRACFLAGS := -lws2_32 -luserenv -lbcrypt -lntdll -lsynchronization
    	EXTRACXXFLAGS := -lstdc++
    	#EXTRARSCXXFLAGS := -l static:-bundle=stdc++
    endif
    else
    ifeq ($(UNAME),Darwin)
    	#EXTRACFLAGS := -lresolv
    	EXTRACXXFLAGS := -lc++
    	#EXTRARSCXXFLAGS := -lc++
    else
    ifeq ($(UNAME),FreeBSD)
    	#EXTRACFLAGS := -lm -lpthread -lgcc_s
    else
    ifeq ($(UNAME),SunOS)
    	#EXTRACFLAGS := -lm -lpthread -lposix4 -lsocket -lresolv
    else
    ifeq ($(UNAME),OpenBSD)
    	#EXTRACFLAGS := -lm -lpthread -lc++abi
    	#RUSTC := $(RUSTC) -C linker="$(word 1,$(CC:ccache=))"
    else
    	#EXTRACFLAGS := -lm -lrt -ldl -lpthread
    	EXTRACXXFLAGS := -lstdc++
    	#EXTRARSCXXFLAGS := -lstdc++
    endif
    endif
    endif
    endif
    endif
    ```
    
    Note that for {`FreeBSD`, `SunOs`, `OpenBSD`} the `-lstdc++` flag is *not* passed, so `EXTRACXXFLAGS` for those platforms should be an empty `vec![]`.
    
    r? ghost (testing this with PR CI)
    fmease committed May 3, 2024
    Configuration menu
    Copy the full SHA
    ff67a7b View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#124604 - Enselic:std-gimli-symbolize, r=wor…

    …kingjubilee
    
    library/std: Remove unused `gimli-symbolize` feature
    
    library/backtrace also declares a feature called `gimli-symbolize` which appear used, but the feature in std with the same name is unused, so remove it.
    fmease committed May 3, 2024
    Configuration menu
    Copy the full SHA
    6adf5c2 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#124607 - nnethercote:rustc_expand-cleanups,…

    … r=compiler-errors
    
    `rustc_expand` cleanups
    
    Some cleanups I made while looking through this code. Nothing that requires any real domain-specific knowledge about this crate.
    
    r? `@michaelwoerister`
    fmease committed May 3, 2024
    Configuration menu
    Copy the full SHA
    4f9e499 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#124609 - RalfJung:float-precision, r=cuviper

    variable-precision float operations can differ depending on optimization levels
    
    Follow-up to rust-lang#121793 and rust-lang#118217 that accounts for optimizations changing the precision of these functions.
    
    Fixes rust-lang#109118
    Fixes rust-lang#71355
    fmease committed May 3, 2024
    Configuration menu
    Copy the full SHA
    9f44f55 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#124610 - nnethercote:typenum, r=lcnr

    Tweak `consts_may_unify`
    
    r? `@lcnr`
    fmease committed May 3, 2024
    Configuration menu
    Copy the full SHA
    de2572d View commit details
    Browse the repository at this point in the history