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

Consumers of libjail-rs need to increase type_length_limit #59

Closed
phyber opened this issue May 26, 2019 · 14 comments · Fixed by #60 or #66
Closed

Consumers of libjail-rs need to increase type_length_limit #59

phyber opened this issue May 26, 2019 · 14 comments · Fixed by #60 or #66
Assignees
Labels
tracking Tracking issue upstream This is an issue in an upstream dependency

Comments

@phyber
Copy link
Contributor

phyber commented May 26, 2019

Describe the bug
Rust 1.35.0 has broken some things via what is described in rust-lang/rust#58952, meaning libjail-rs no longer compiles.

To Reproduce
Attempt to compile under Rust 1.35.0

Expected behavior
The crate compiles.

Additional context
I’m not sure if there is anything for libjail to do here, but I thought a tracking issue might be good.

@phyber phyber added the bug Something isn't working label May 26, 2019
@fabianfreyer fabianfreyer self-assigned this May 26, 2019
@fabianfreyer fabianfreyer added the help wanted Extra attention is needed label May 26, 2019
@fabianfreyer
Copy link
Contributor

Thanks! Yes, I don't really know what to do here.

@fabianfreyer fabianfreyer pinned this issue May 26, 2019
@fabianfreyer
Copy link
Contributor

I guess we could increase the type_length_limit?

fabianfreyer added a commit that referenced this issue May 26, 2019
Fixes a build failure on rust >= 1.35.0.

See also rust-lang/rust#58952
Fixes #59
fabianfreyer added a commit that referenced this issue May 26, 2019
Fixes a build failure on rust >= 1.35.0.

See also rust-lang/rust#58952
Fixes #59
fabianfreyer added a commit that referenced this issue May 26, 2019
Fixes a build failure on rust >= 1.35.0.

See also rust-lang/rust#58952
Fixes #59
@fabianfreyer
Copy link
Contributor

@phyber could you test whether #60 fixes the issue for you?

fabianfreyer added a commit that referenced this issue May 26, 2019
Fixes a build failure on rust >= 1.35.0.

See also rust-lang/rust#58952
Fixes #59
fabianfreyer added a commit that referenced this issue May 26, 2019
Fixes a build failure on rust >= 1.35.0.

See also rust-lang/rust#58952
Fixes #59
fabianfreyer added a commit that referenced this issue May 26, 2019
Fixes a build failure on rust >= 1.35.0.

See also rust-lang/rust#58952
Fixes #59
@fabianfreyer
Copy link
Contributor

Reopening for @phyber's feedback, after merging of #60 automatically closed it.

@fabianfreyer fabianfreyer reopened this May 26, 2019
@phyber
Copy link
Contributor Author

phyber commented May 26, 2019

So, it seems that increasing the type length limit in the library isn't enough and users of the library still have to take the same action.
This feels awful, I wonder if upstream will rollback their breakage.

I'm not able to play around with this too much at the moment either, I'm currently away and only have access to this stuff via a phone :)

@fabianfreyer
Copy link
Contributor

fabianfreyer commented May 26, 2019

Ugh. I'll release a version with the inclreased type_length_limit then, add a note to the changelog / release notes and readme, and keep this issue open as a tracking issue.

@fabianfreyer fabianfreyer added tracking Tracking issue upstream This is an issue in an upstream dependency and removed bug Something isn't working help wanted Extra attention is needed labels May 26, 2019
@fabianfreyer fabianfreyer changed the title Crate no longer compiles under Rust 1.35.0 Consumers of libjail-rs need to increase type_length_limit May 26, 2019
@phyber
Copy link
Contributor Author

phyber commented Jun 6, 2019

OK, now that I'm back home and can play with this properly on an actual computer, I've got this fix working.

Consumers of the library don't need to update their type_length_limit, testers of this fix do need to use the dev branch in their Cargo.toml ;)

@fabianfreyer
Copy link
Contributor

Wonderful, will roll a release then :D

@fabianfreyer
Copy link
Contributor

@phyber v0.1.0 is released with an updated type_length_limit.

@fabianfreyer fabianfreyer unpinned this issue Jun 6, 2019
@phyber
Copy link
Contributor Author

phyber commented Sep 26, 2019

This issue is back in Rust 1.38.0 and it's quite ridiculous now. I had to increase the type_length_limit to #![type_length_limit="314507289"] to get cargo test to run in libjail-rs. That's a pretty large increase.

@fabianfreyer
Copy link
Contributor

ugh. Thanks for catching that :(

@fabianfreyer fabianfreyer reopened this Sep 26, 2019
@fabianfreyer
Copy link
Contributor

I can try to cut a release with the new type_length_limit... I wonder what the right thing to do is.

@phyber
Copy link
Contributor Author

phyber commented Sep 26, 2019

I tried to break down the large get_all iterator chain in the library into smaller chunks, but it didn't achieve anything. The compiler is unfortunately unhelpful here (there is an issue open, I don't have the number to hand), so we don't even know which part of the code it's complaining about to try and do things better :(

fabianfreyer added a commit that referenced this issue Sep 28, 2019
fabianfreyer added a commit that referenced this issue Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracking Tracking issue upstream This is an issue in an upstream dependency
Projects
None yet
2 participants