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.7
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
  • 20 commits
  • 7 files changed
  • 10 contributors

Commits on Jul 30, 2024

  1. Update to Edition 2021. (#359)

    smallvec v2's MSRV is already 1.57.0, which is after the relase of Edition 2021 in 1.56.0.
    
    Apply fix for Cargo.toml dev_dependencies warning given by cargo fix --edition.
    zachs18 authored Jul 30, 2024
    Configuration menu
    Copy the full SHA
    72ff74d View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Micro optimize extend (#362)

    Improve code generation by only advancing the iterator in 2 locations
    arthurprs authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    f6ec5b2 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2024

  1. Implement spare_capacity_mut (#364)

    Mirrors the implementation from `Vec::spare_capacity_mut`.
    
    This is useful to write directly into the buffer after `SmallVec::with_capacity`,
    removing the overhead of the `SmallVec` model entirely when doing so.
    DaniPopes authored Dec 10, 2024
    Configuration menu
    Copy the full SHA
    9eacf68 View commit details
    Browse the repository at this point in the history
  2. Fix clippy warnings

    mbrubeck committed Dec 10, 2024
    Configuration menu
    Copy the full SHA
    18bc257 View commit details
    Browse the repository at this point in the history
  3. Version 2.0.0-alpha.8

    mbrubeck committed Dec 10, 2024
    Configuration menu
    Copy the full SHA
    21422eb View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2024

  1. Configuration menu
    Copy the full SHA
    3d64200 View commit details
    Browse the repository at this point in the history
  2. Version 2.0.0-alpha.9

    mbrubeck committed Dec 17, 2024
    Configuration menu
    Copy the full SHA
    99e5c5d View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2024

  1. Simplify extend_impl

    mbrubeck committed Dec 18, 2024
    Configuration menu
    Copy the full SHA
    a176a87 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2025

  1. Impl Send/Sync for IntoIter (#368)

    Closes #367.
    mbrubeck authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    1289db6 View commit details
    Browse the repository at this point in the history
  2. Version 2.0.0-alpha.10

    mbrubeck committed Jan 15, 2025
    Configuration menu
    Copy the full SHA
    9a23ebf View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2025

  1. Implement MallocSizeOf for SmallVec (v2) (#369)

    * Implement MallocSizeOf for SmallVec (v2)
    
    Signed-off-by: Nico Burns <[email protected]>
    
    * Bump malloc_size_of crate to version with lower MSRV
    
    Signed-off-by: Nico Burns <[email protected]>
    
    ---------
    
    Signed-off-by: Nico Burns <[email protected]>
    nicoburns authored Mar 11, 2025
    Configuration menu
    Copy the full SHA
    30c30a6 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2025

  1. Configuration menu
    Copy the full SHA
    4aaa028 View commit details
    Browse the repository at this point in the history
  2. Version 2.0.0-alpha.11

    mbrubeck committed Mar 20, 2025
    Configuration menu
    Copy the full SHA
    2390f2d View commit details
    Browse the repository at this point in the history

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