Skip to content

Commit

Permalink
Merge pull request #407 from asomers/gat-stable
Browse files Browse the repository at this point in the history
Fix tests with latest nightly compiler and latest deps
  • Loading branch information
asomers authored Sep 18, 2022
2 parents 355193d + b1a90ae commit 6ec6c40
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ common: &COMMON
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
cargo_cache:
folder: $HOME/.cargo/registry
folder: $CARGO_HOME/registry
build_script:
- cargo build $CARGO_ARGS
doc_script:
Expand All @@ -13,7 +13,10 @@ common: &COMMON
task:
name: MSRV
container:
image: rust:1.42.0
image: rust:1.45.0
env:
# CARGO_NET_GIT_FETCH_WITH_CLI is only necessary with Rust 1.45
CARGO_NET_GIT_FETCH_WITH_CLI: true
<< : *COMMON
before_cache_script: rm -rf $CARGO_HOME/registry/index

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).


## [ Unreleased ] - ReleaseDate

## Changed

- Raised MSRV to 1.45.0 because futures-task did.
([#407](https://github.com/asomers/mockall/pull/407))

## [ 0.11.2 ] - 2022-07-24

## Fixed
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[workspace]
members = ["mockall", "mockall_derive", "mockall_double"]

[patch.crates-io]
itertools = { git = "https://github.com/rust-itertools/itertools", rev = "d61d12e" }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ See the [API docs](https://docs.rs/mockall) for more information.

# Minimum Supported Rust Version (MSRV)

Mockall is supported on Rust 1.42.0 and higher. Mockall's MSRV will not be
Mockall is supported on Rust 1.45.0 and higher. Mockall's MSRV will not be
changed in the future without bumping the major or minor version.

# License
Expand Down
1 change: 1 addition & 0 deletions mockall/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ categories = ["development-tools::testing"]
keywords = ["mock", "mocking", "testing"]
documentation = "https://docs.rs/mockall"
edition = "2018"
rust-version = "1.45"
description = """
A powerful mock object library for Rust.
"""
Expand Down
2 changes: 1 addition & 1 deletion mockall/tests/automock_associated_const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ trait Foo {
}
}

struct Bar {}
pub struct Bar {}

#[automock]
impl Foo for Bar {
Expand Down
3 changes: 1 addition & 2 deletions mockall/tests/automock_gat.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#! vim: tw=80
//! automock a trait with Generic Associated Types
#![cfg_attr(feature = "nightly", feature(generic_associated_types))]
#![deny(warnings)]

use cfg_if::cfg_if;
Expand All @@ -14,7 +13,7 @@ cfg_if! {
trait LendingIterator {
type Item<'a> where Self: 'a;

// Clippy doesn't know that Mockall will need the liftime when it
// Clippy doesn't know that Mockall will need the lifetime when it
// expands the macro.
#[allow(clippy::needless_lifetimes)]
fn next<'a>(&'a mut self) -> Option<Self::Item<'a>>;
Expand Down

0 comments on commit 6ec6c40

Please sign in to comment.