Skip to content

Commit 56b5a01

Browse files
chore(deps): update rust crate mockall to 0.14.0 (#2995)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [mockall](https://redirect.github.com/asomers/mockall) | workspace.dependencies | minor | `0.11.1` → `0.14.0` | --- ### Release Notes <details> <summary>asomers/mockall (mockall)</summary> ### [`v0.14.0`](https://redirect.github.com/asomers/mockall/blob/HEAD/CHANGELOG.md#0140---2025-11-22) [Compare Source](https://redirect.github.com/asomers/mockall/compare/v0.13.1...v0.14.0) ##### Added - Allow mocking structs and traits with const generics. ([#&#8203;649](https://redirect.github.com/asomers/mockall/pull/649)) - Compatibility with the `#[trait_variant::make]` macro. ([#&#8203;640](https://redirect.github.com/asomers/mockall/pull/640)) - Allow Expectations with a non-exact call count to be used in Sequences. ([#&#8203;660](https://redirect.github.com/asomers/mockall/pull/660)) ##### Changed - The MSRV is now Rust 1.77.0. ([#&#8203;650](https://redirect.github.com/asomers/mockall/pull/650)) ##### Fixed - No longer poison a static mock method's internal `Mutex` when panicing, even when using a stable Rust compiler. Also, no longer poison it even if there is no `Context` object. For example, if the user never set an Expectation at all. ([#&#8203;650](https://redirect.github.com/asomers/mockall/pull/650)) - Suppress `single-use-lifetimes` lints in the generated code, for cases where the orginal code wouldn't have triggered the warning. ([#&#8203;627](https://redirect.github.com/asomers/mockall/pull/627)) - Fix mocking foreign functions with a variadic argument and no pattern, for example `fn foo(...)` as opposed to `fn bar(x: ...)`. That worked in prior versions of Mockall only until Rust 1.93.0, which made such arguments illegal for Rust functions. ([#&#8203;673](https://redirect.github.com/asomers/mockall/pull/673)) - Fully qualify `Send` and `Sync` traits in generated code, allowing structs named `Send` or `Sync` to be in scope without conflicts. ([#&#8203;672](https://redirect.github.com/asomers/mockall/pull/672)) ### [`v0.13.1`](https://redirect.github.com/asomers/mockall/blob/HEAD/CHANGELOG.md#0131---2024-11-17) [Compare Source](https://redirect.github.com/asomers/mockall/compare/v0.13.0...v0.13.1) ##### Fixed - Suppress warnings about the `#[expect]` lint, new in Rust 1.81.0, in generated code. ([#&#8203;619](https://redirect.github.com/asomers/mockall/pull/619)) - Suppress the `#[clippy::ref_option]` warning, new in Rust 1.83.0, in generated code. ([#&#8203;618](https://redirect.github.com/asomers/mockall/pull/618)) - When mocking functions with a closure argument, but not using `#[concretize]`, include any additional trait bounds in the trait object argument passed to `.with` and `.returning`. ([#&#8203;606](https://redirect.github.com/asomers/mockall/pull/606)) - Fixed naming conflict when mocking multiple traits with same name but from different modules. ([#&#8203;601](https://redirect.github.com/asomers/mockall/pull/601)) ### [`v0.13.0`](https://redirect.github.com/asomers/mockall/blob/HEAD/CHANGELOG.md#0130---2024-07-21) [Compare Source](https://redirect.github.com/asomers/mockall/compare/v0.12.1...v0.13.0) ##### Added - Add the ability to use `#[concretize]` with methods that have an `FnMut` argument. ([#&#8203;595](https://redirect.github.com/asomers/mockall/pull/595)) - Add the ability to mock methods that use `#[auto_enum]`, from the `auto_enums` crate. But only for methods that use RPIT; Mockall can't yet handle syntax like `-> Result<(), impl T>` ([#&#8203;590](https://redirect.github.com/asomers/mockall/pull/590)) - Add the ability to mock methods that use `#[inline]` or `#[cold]`, and methods or traits that use `#[must_use]`. ([#&#8203;555](https://redirect.github.com/asomers/mockall/pull/555)) ##### Changed - Raised MSRV to 1.71.0 due to the `C-unwind` ABI. ([#&#8203;585](https://redirect.github.com/asomers/mockall/pull/585)) - No longer poison a Context object's internal `Mutex` when panicing. This requires the "nightly" feature. ([#&#8203;527](https://redirect.github.com/asomers/mockall/pull/527)) ##### Fixed - Fixed panicing within mocked `extern "C"` functions, for example due to unsatisfied expectations, with Rust 1.81.0 or newer. ([#&#8203;585](https://redirect.github.com/asomers/mockall/pull/585)) ### [`v0.12.1`](https://redirect.github.com/asomers/mockall/blob/HEAD/CHANGELOG.md#0121---2023-12-21) [Compare Source](https://redirect.github.com/asomers/mockall/compare/v0.12.0...v0.12.1) ##### Fixed - Fixed using `#[mockall::concretize]` on functions whose generic types contain trait bounds, yet are still object safe. ([#&#8203;531](https://redirect.github.com/asomers/mockall/pull/531)) - Fixed mocking methods that use raw identifiers for their names. This was a regression in 0.12.0. ([#&#8203;534](https://redirect.github.com/asomers/mockall/pull/534)) ### [`v0.12.0`](https://redirect.github.com/asomers/mockall/blob/HEAD/CHANGELOG.md#0120---2023-12-10) [Compare Source](https://redirect.github.com/asomers/mockall/compare/v0.11.4...v0.12.0) ##### Added - Added `#[mockall::concretize]`, which can be used to mock some generic methods that have non-`'static` generic parameters. It works by turning the generic arguments into trait objects for the expectation. ([#&#8203;408](https://redirect.github.com/asomers/mockall/pull/408)) - When mocking functions with a non-default ABI (Like `extern "C"`), the mock function will now use the same ABI as the original. Name mangling will also be disabled, so the mock function will be callable from external code. For example, from C functions. ([#&#8203;504](https://redirect.github.com/asomers/mockall/pull/504)) ##### Changed - Raised predicates, which is reexported, to 3.0.0. This may affect backwards compatibility for users who make use of predicates's "color" feature. ([#&#8203;467](https://redirect.github.com/asomers/mockall/pull/467)) - Raised MSRV to 1.64.0 because predicates-core and predicates-tree did. ([#&#8203;430](https://redirect.github.com/asomers/mockall/pull/430)) ([#&#8203;467](https://redirect.github.com/asomers/mockall/pull/467)) - Better "No matching expectation found" messages on stable. ([#&#8203;425](https://redirect.github.com/asomers/mockall/pull/425)) ##### Fixed - Fixed mocking non-private inherent methods that have attributes with syn version 2.0.9 and later. ([#&#8203;486](https://redirect.github.com/asomers/mockall/pull/486)) - Suppress `clippy::too_many_arguments` warnings in the generated code. This is most useful when mocking static functions with exactly 7 arguments. ([#&#8203;487](https://redirect.github.com/asomers/mockall/pull/487)) - Fixed `unused_attributes` warnings in the generated code when mocking FFI functions that use `#[link_name]`. ([#&#8203;503](https://redirect.github.com/asomers/mockall/pull/503)) - Fix a panic during Drop for static methods. One way to trigger it is by calling the method more times than is allowed by a `.times()` constraint. Another way would be to explicitly panic during the `.returning` method. ([#&#8203;516](https://redirect.github.com/asomers/mockall/pull/516)) ##### Removed - Removed syntax deprecated since 0.9.0: using `#[automock]` directly on an `extern "C"` block, and using `trait Foo {}` syntax inside of `mock!`. ([#&#8203;476](https://redirect.github.com/asomers/mockall/pull/476)) - Removed default features from `predicates` dependency. Reexports no longer include `difflib`, `normalize-line-endings`, `regex` and `float-cmp` features. ([#&#8203;517](https://redirect.github.com/asomers/mockall/pull/517)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apollographql/rover). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi44NS4xIiwidXBkYXRlZEluVmVyIjoiNDIuODUuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Isaac M. Good <imgood@apollographql.com>
1 parent 129a788 commit 56b5a01

File tree

2 files changed

+184
-245
lines changed

2 files changed

+184
-245
lines changed

0 commit comments

Comments
 (0)