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

ERROR building 0.5.2 #30

Closed
omershlo opened this issue Nov 3, 2019 · 12 comments
Closed

ERROR building 0.5.2 #30

omershlo opened this issue Nov 3, 2019 · 12 comments

Comments

@omershlo
Copy link

omershlo commented Nov 3, 2019

Screen Shot 2019-11-03 at 10 38 21

@RalfJung
Copy link
Collaborator

RalfJung commented Nov 3, 2019

With rust-lang/rust#63201 the doctest feature got stabilized, likely that is the problem?

@Gilnaa
Copy link
Owner

Gilnaa commented Nov 3, 2019

With rust-lang/rust#63201 the doctest feature got stabilized, likely that is the problem?

At least on my machine, this builds on nightly with a warning

@Gilnaa
Copy link
Owner

Gilnaa commented Nov 3, 2019

rustc version?

@omershlo
Copy link
Author

omershlo commented Nov 3, 2019

yep, rustup update did the work .
Thank you gentlemen

@omershlo omershlo closed this as completed Nov 3, 2019
@frondeus
Copy link

frondeus commented Nov 7, 2019

Hello, note this is an breaking change for us. We are using older version of rustc (from july, and it's not so easy to upgrade it at once in our company where we have dozens of crates) so CI stopped to build (as Cargo.lock is gitignored in libraries)

This cfg_doctest is indeed stable but still it bumped minimum rust version of the project and IMHO it should be treated as breaking change.

@Gilnaa Gilnaa reopened this Nov 7, 2019
@Gilnaa
Copy link
Owner

Gilnaa commented Nov 7, 2019

I'll try to gate it on a minimum nightly version. What nightly are you using?

@RalfJung
Copy link
Collaborator

RalfJung commented Nov 7, 2019

We support ancient Rust versions back to Rust 1.20, so old Rust can't be the problem. Also to be clear, as far as I am concerned bumping the MSRV is not a breaking change. We'll be conservative in doing so though. But lucky enough we didn't bump it, we still test against Rust 1.20.

Or are you saying you are using an old nightly? That's a really bad idea... but if @Gilnaa wants to do the work to support that I will not stop them.

@Gilnaa my proposal would be to treat ancient nightlies like stable, that way they do not need a separate code path. Or better, doctest is stable now -- so on Rust 1.40+, we can just use it, and we never use feature at all.

@Gilnaa
Copy link
Owner

Gilnaa commented Nov 7, 2019

I agree, we should just use doctests when we use a >1.40 compiler.

Since this is not really a feature of memoffset, but part of the CI, I see no reason not to do it

@RalfJung
Copy link
Collaborator

RalfJung commented Nov 7, 2019

Agreed, not using feature any more is an improvement :)

@Gilnaa
Copy link
Owner

Gilnaa commented Nov 7, 2019

@frondeus Would still like to know what your nightly version you're using (for testing purposes).

@Gilnaa
Copy link
Owner

Gilnaa commented Nov 7, 2019

Solved by #32, published in v0.5.3

@RalfJung RalfJung closed this as completed Nov 7, 2019
@frondeus
Copy link

frondeus commented Nov 7, 2019

Thank you 🙇. We are using 2019-07-02 nightly which is pretty old, but I discussed it with my superior and we will switch very soon to newest version (2019-10-31 I think) where problem does not exist.

Anyway - I checked 0.5.3 is working, so thank you <3

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

No branches or pull requests

4 participants