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

assertion failed: rp.is_none() #8603

Closed
carl-eastlund opened this issue Aug 19, 2013 · 1 comment
Closed

assertion failed: rp.is_none() #8603

carl-eastlund opened this issue Aug 19, 2013 · 1 comment

Comments

@carl-eastlund
Copy link

Program:

fn op<'self>( _:&'self fn() -> () ) {}
fn main () {}

Error:

task <unnamed> failed at 'assertion failed: rp.is_none()', /Users/cce/git/rust/lang/src/librustc/middle/typeck/collect.rs:1061
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/cce/git/rust/lang/src/librustc/rustc.rs:371
@huonw
Copy link
Member

huonw commented Aug 26, 2013

Closing as a dup of #6396. The current rule is lifetimes on fns should be called anything but 'self.

@huonw huonw closed this as completed Aug 26, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Aug 11, 2022
Closes rust-lang#8603

Signed-off-by: Federico Guerinoni <guerinoni.federico@gmail.com>
flip1995 pushed a commit to flip1995/rust that referenced this issue Aug 11, 2022
Add `elapsed_instant` lint

Closes rust-lang#8603

- \[x] Followed [lint naming conventions][lint_naming]
- \[x] Added passing UI tests (including committed `.stderr` file)
- \[x] `cargo test` passes locally
- \[x] Executed `cargo dev update_lints`
- \[x] Added lint documentation
- \[x] Run `cargo dev fmt`

---

changelog: [`elapsed_instant`]: Add lint
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