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

rp.is_none ICE failure with 'self lifetime #9661

Closed
nwin opened this issue Oct 1, 2013 · 3 comments
Closed

rp.is_none ICE failure with 'self lifetime #9661

nwin opened this issue Oct 1, 2013 · 3 comments

Comments

@nwin
Copy link
Contributor

nwin commented Oct 1, 2013

I was just playing around.

Compiling

use std::hashmap::HashMap;
fn main() {
    let mut env: HashMap<&'self str, &'self str> = HashMap::new();
}

with $ RUST_LOG=rustc=1 rust build test.rs gives

error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues
task <unnamed> failed at 'explicit failure', /Users/nwin/rust-0.8/src/librustc/rustc.rs:391
@pnkfelix
Copy link
Member

pnkfelix commented Oct 2, 2013

possibly subbug of #4846

@pnkfelix
Copy link
Member

pnkfelix commented Oct 2, 2013

With my (debug) build of rustc, I get a bit more info from the RUST_LOG=rustc=1 setting:

task '<unnamed>' failed at 'assertion failed: rp.is_none()', /Users/fklock/Dev/Mozilla/rust.git/src/librustc/middle/typeck/collect.rs:1108
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues
task '<unnamed>' failed at 'explicit failure', /Users/fklock/Dev/Mozilla/rust.git/src/librustc/rustc.rs:391

@alexcrichton
Copy link
Member

Closed by #10153, relevant tests already appear to be checked in.

flip1995 pushed a commit to flip1995/rust that referenced this issue Oct 21, 2022
Add `missing_trait_methods` lint

Closes rust-lang#9661

changelog: new lint: [`missing_trait_methods`]
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

3 participants