-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Compiler panics with "More than one activation introduced at the same location" #49635
Comments
Getting this same error when compiling the Disabling |
Also reported in #49662 |
Thanks to the regression tool cargo-bisect-rustc I've found the regression to be in commit b12af86 PR #49348. cc @bobtwinkles @nikomatsakis |
Ah, I think I know what happened here. Prior to #49348 only one thing could be activated at a given location. However, multiple reborrows activate at the same time when function calls are made. There are two possible fixes:
I think we're probably going to have to do (1) at some point anyway, it's probably the less invasive change, and I'm not fully convinced we can do (2) in a general way. I should have a patch in for this before tomorrow morning baring unforseen complications in the implementation. |
…tsakis two-phase borrows: support multiple activations in one statement The need for this has arisen since the introduction of two-phase borrows on method autorefs in #49348. r'ing @pnkfelix to keep things off Niko's plate so he can make this redundant, and @pnkfelix is familiar with the code. Fixes #49635 Fixes #49662 r? @pnkfelix
Note: the code compiles successfully after turning the
nll
feature off.After running
rustup update
to get the latest Nightly compiler, code that used to compile no longer compiles.I tried this code: https://github.com/mayhewj/msh
I expected to see this happen: A successful compilation
Instead, this happened:
Meta
rustc --version --verbose
:rustc 1.27.0-nightly (637ac17 2018-04-03)
binary: rustc
commit-hash: 637ac17
commit-date: 2018-04-03
host: x86_64-unknown-linux-gnu
release: 1.27.0-nightly
LLVM version: 6.0
Backtrace:
The text was updated successfully, but these errors were encountered: