-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
ICE: Region parameter out of range when substituting in region #47309
Comments
I've encountered this issue while trying to use Build log
|
Thanks for the insight @Mrmaxmeier! I've confirmed that removing the |
After several false starts, I was able to boil down the ICE to the following case: pub trait EnvFuture {
type Item;
fn boxed_result<'a>(self) where Self: Sized, Self::Item: 'a, {
}
}
struct Foo;
impl<'a> EnvFuture for &'a Foo {
type Item = ();
} This will ICE on nightly when run with the |
* Currently nightly will ICE when run with `-C link-dead-code`: see rust-lang/rust#47309 for more info * Workaround is to run kcov on stable instead until a fix is in place
another repro that might be related:
EDIT: sorry unrelated theres's another ticket about it #46793 |
This bug has now regressed into stable 1.24: https://travis-ci.org/ipetkov/conch-runtime/jobs/342033538 |
* It appears that the ICE reported in rust-lang/rust#47309 as regressed into the latest stable version. This change moves coverage collection to use stable 1.20.0 instead * Also run code coverage in a dedicated VM instead of a Docker container as a workaround for travis-ci/travis-ci#9061
* It appears that the ICE reported in rust-lang/rust#47309 as regressed into the latest stable version. This change moves coverage collection to use stable 1.20.0 instead * Also run code coverage in a dedicated VM instead of a Docker container as a workaround for travis-ci/travis-ci#9061
triage: P-high This slipped under the radar. @rust-lang/release -- do you think somebody could bisect this example to get a sense for when the error was introduced? Note that it requires |
I bisected across rust-nightly channel. Here is result: tl;dr: bug appears injected somewhere between commits 0a3761e and 8e7a609
|
That PR fixed another regression (#46467), so I don't think we can just revert it... |
@pnkfelix yes I remember that change |
triage: assigning to @michaelwoerister to figure out more. |
#48818 implements a tentative fix for this. The problem is that the monomorphization collector does not account for method lifetime parameters in |
ICE: librustc/ty/subst.rs:424: Region parameter out of range when substituting in region 'a (root type=None) (index=2)
Started getting an ICE on nightly linux builds in travis for my crate while building various integration tests (I've seen builds fail on different integration tests each time). The ICE has reliably occurred on travis during each restart, however, I've been unable to reproduce it locally via travis docker image (so I can't even begin to attempt to minify my source to something that triggers the error). As far as I can tell, this started with rustc 1.24.0-nightly (8e7a609 2018-01-04).
Sample build log can be found here.
Happy to provide more logs build info as needed!
Meta
rustc 1.25.0-nightly (61452e5 2018-01-09)
Backtrace:
The text was updated successfully, but these errors were encountered: