Update Rust crate mockall to 0.12 #4663
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.11
->0.12
Release Notes
asomers/mockall (mockall)
v0.12.0
Compare Source
Added
Added
#[mockall::concretize]
, which can be used to mock some genericmethods that have non-
'static
generic parameters. It works by turning thegeneric arguments into trait objects for the expectation.
(#408)
When mocking functions with a non-default ABI (Like
extern "C"
), the mockfunction 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.
(#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.
(#467)
Raised MSRV to 1.64.0 because predicates-core and predicates-tree did.
(#430)
(#467)
Better "No matching expectation found" messages on stable.
(#425)
Fixed
Fixed mocking non-private inherent methods that have attributes with syn
version 2.0.9 and later.
(#486)
Suppress
clippy::too_many_arguments
warnings in the generated code. Thisis most useful when mocking static functions with exactly 7 arguments.
(#487)
Fixed
unused_attributes
warnings in the generated code when mocking FFIfunctions that use
#[link_name]
.(#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.(#516)
Removed
Removed syntax deprecated since 0.9.0: using
#[automock]
directly on anextern "C"
block, and usingtrait Foo {}
syntax inside ofmock!
.(#476)
Removed default features from
predicates
dependency. Reexports no longerinclude
difflib
,normalize-line-endings
,regex
andfloat-cmp
features.(#517)
Configuration
📅 Schedule: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.