Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump MSRV to 1.73 #364

Merged
merged 5 commits into from
Dec 8, 2024
Merged

Bump MSRV to 1.73 #364

merged 5 commits into from
Dec 8, 2024

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Sep 15, 2024

  error: package `generator v0.8.3` cannot be built because it requires rustc 1.77 or newer, while the currently active rustc version is 1.65.0

https://github.com/tokio-rs/loom/actions/runs/10867411903/job/30156136540#step:4:60

Depend on Xudong-Huang/generator-rs#68

```
  error: package `generator v0.8.3` cannot be built because it requires rustc 1.77 or newer, while the currently active rustc version is 1.65.0
```
@taiki-e
Copy link
Member Author

taiki-e commented Sep 15, 2024

  error: the `cargo::` syntax for build script output instructions was added in Rust 1.77.0, but the minimum supported Rust version of `generator v0.8.3` is 1.77.
  See https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script for more information about build script outputs.
  warning: build failed, waiting for other jobs to finish...
error: process didn't exit successfully: `rustup run 1.77 cargo check --all-features --manifest-path Cargo.toml` (exit status: 101)

Hmm...?

EDIT: filed Xudong-Huang/generator-rs#68

@taiki-e taiki-e marked this pull request as draft September 15, 2024 13:28
@taiki-e taiki-e changed the title Bump MSRV to 1.77 Bump MSRV to 1.73 Sep 15, 2024
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with path dep fixed

@taiki-e taiki-e marked this pull request as ready for review December 8, 2024 05:38
```
error: elided lifetime has a name
   --> src/rt/object.rs:202:84
    |
202 |     pub(super) fn iter_mut<'a, O>(&'a mut self) -> impl DoubleEndedIterator<Item = &mut O>
    |                            -- lifetime `'a` declared here                          ^ this elided lifetime gets resolved as `'a`
    |
    = note: `-D elided-named-lifetimes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(elided_named_lifetimes)]`

error: elided lifetime has a name
   --> src/thread.rs:283:51
    |
283 |     unsafe fn get(&'static self) -> Option<Result<&T, AccessError>> {
    |                                                   ^ this elided lifetime gets resolved as `'static`
    |
help: consider specifying it explicitly
    |
283 |     unsafe fn get(&'static self) -> Option<Result<&'static T, AccessError>> {
    |                                                    +++++++
```
@taiki-e taiki-e enabled auto-merge (squash) December 8, 2024 05:41
```
error: non-local `impl` definition, `impl` blocks should be written at the same level as their item
  --> src/rt/object.rs:14:43
   |
14 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
   |                                           -^^^^^^^^
   |                                           |
   |                                           `Store` is not local
   |                                           `Serialize` is not local
   |                                           move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Store`
   |
   = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed
   = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
   = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
   = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
   = note: `-D non-local-definitions` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(non_local_definitions)]`
   = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
```
@taiki-e taiki-e merged commit be150d6 into master Dec 8, 2024
5 checks passed
@taiki-e taiki-e deleted the taiki-e/msrv branch December 8, 2024 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants