Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: servo/rust-smallvec
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0-alpha.11
Choose a base ref
...
head repository: servo/rust-smallvec
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2
Choose a head ref
  • 7 commits
  • 6 files changed
  • 5 contributors

Commits on Mar 21, 2025

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

Commits on Apr 28, 2025

  1. reimplement from_buf (#377)

    otcova authored Apr 28, 2025
    Configuration menu
    Copy the full SHA
    6ba116c View commit details
    Browse the repository at this point in the history
  2. v2: Bump MSRV to 1.83 (#378)

    * v2: Bump MSRV to 1.83
    
    * Run GitHub checks on merge_group
    mbrubeck authored Apr 28, 2025
    Configuration menu
    Copy the full SHA
    3906fe4 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2025

  1. Configuration menu
    Copy the full SHA
    dff2390 View commit details
    Browse the repository at this point in the history
  2. Update the extract_if feature (#381)

    * Update the `extract_if` feature
    
    * doctest
    TDecking authored May 27, 2025
    Configuration menu
    Copy the full SHA
    05ca4ed View commit details
    Browse the repository at this point in the history

Commits on May 30, 2025

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

Commits on Jun 5, 2025

  1. Shrink code produced by smallvec![]. (#385)

    Currently `smallvec![]` expands to this:
    ```
    {
        let count = 0usize;
        #[allow(unused_mut)]
        let mut vec = ::smallvec::SmallVec::new();
        if count <= vec.capacity() {
    	vec
        } else {
    	::smallvec::SmallVec::from_vec(::alloc::vec::Vec::new())
        }
    };
    ```
    This commit adds a rule to the `smallvec!` macro for the zero-length
    case so it instead expands to this:
    ```
    ::smallvec::SmallVec::new()
    ```
    The `std::vec!` macro already has a similar special case.
    
    This commit also improves the non-zero case.
    - It removes the `#[allow(unused_mut)]`, which was only needed for the
      zero-length case.
    - It changes the `*` repetitions to `+`. (Again, like `std::vec`.)
    nnethercote authored Jun 5, 2025
    Configuration menu
    Copy the full SHA
    71c8abb View commit details
    Browse the repository at this point in the history
Loading