# What changed in mockall

> 9 changes in mockall 0.14 to 0.15 from its official release notes, upgrade guides and advisories: 1 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/cargo/mockall/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## mockall 0.15

### Behavior and default changes

- mockall is now compatible with the #[auto_impl] macro. (0.15.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0150----2026-06-28)

## mockall 0.14

### Breaking changes

- The MSRV is now Rust 1.77.0. (0.14.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0140----2025-11-22)

### New APIs and options

- Structs and traits with const generics can now be mocked. (0.14.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0140----2025-11-22)

### Behavior and default changes

- Expectations with a non-exact call count can now be used in Sequences. (0.14.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0140----2025-11-22)
- Mockall is now compatible with the #[trait_variant::make] macro. (0.14.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0140----2025-11-22)

### Fixes and other changes

- Generated code fully qualifies Send and Sync, avoiding conflicts when structs named Send or Sync are in scope. (0.14.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0140----2025-11-22)
- Generated code suppresses single-use-lifetimes lints when the original code would not have triggered the warning. (0.14.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0140----2025-11-22)
- A panic no longer poisons a static mock method's internal Mutex, including when no Context object or Expectation was set. (0.14.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0140----2025-11-22)
- Fixes mocking foreign functions with a variadic argument and no pattern. (0.14.0) — [release notes](https://github.com/asomers/mockall/blob/562e5a61fe55866cd0218fb9bd45fb011f73790d/CHANGELOG.md#-0140----2025-11-22)
