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

Regression from nightly to nightly #104821

Closed
0xdeafbeef opened this issue Nov 24, 2022 · 2 comments
Closed

Regression from nightly to nightly #104821

0xdeafbeef opened this issue Nov 24, 2022 · 2 comments

Comments

@0xdeafbeef
Copy link

Project successfully compiles on stable.

Fails to compile with nightly:

error: `make_transactions_handler::{opaque#0}<'_>` does not live long enough
  --> src/core/generic_contract/mod.rs:43:62
   |
43 |                 on_transactions_found.as_mut().map(|handler| handler as _),
   |                                                              ^^^^^^^

How to reproduce:

cd $(mktemp -d)
git clone https://github.com/broxus/rustc-regression.git
cd rustc-regression
cargo-bisect-rustc --regress error --start 2022-09-24 --end 2022-09-26

searched nightlies: from nightly-2022-09-24 to nightly-2022-09-26
regressed nightly: nightly-2022-09-26
searched commit range: 3f83906...f5193a9
regressed commit: f5193a9

bisected with cargo-bisect-rustc v0.6.4

Host triple: x86_64-unknown-linux-gnu
Reproduce with:

cargo bisect-rustc error --start 2022-09-24 --end 2022-09-26 
@0xdeafbeef
Copy link
Author

Possibly related to #104445

@Mark-Simulacrum
Copy link
Member

I believe this is a duplicate of #104445 and is a beta regression. Currently the expectation is that this is intentional and will land in stable with 1.66. If you have questions about your particular case I would ask in that thread.

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

2 participants