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: struct mistyped as trait instantiated with &'self int #9078

Closed
pnkfelix opened this issue Sep 9, 2013 · 1 comment
Closed

Comments

@pnkfelix
Copy link
Member

pnkfelix commented Sep 9, 2013

This is an ICE on some obviously bogus input code.

struct A<X>;

fn foo<I:A<&'self int>>() { }

fn main() { }

Transcript:

% RUST_LOG=rustc=1 rustc --version /tmp/baz2.rs
/Users/pnkfelix/opt/rust-dbg/bin/rustc 0.8-pre (dd5c737 2013-09-08 12:05:55 -0700)
host: x86_64-apple-darwin
% RUST_LOG=rustc=1 rustc /tmp/baz2.rs
task <unnamed> failed at 'assertion failed: rp.is_none()', /Users/pnkfelix/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/pnkfelix/Dev/Mozilla/rust.git/src/librustc/rustc.rs:376
% 
@pnkfelix
Copy link
Member Author

pnkfelix commented Oct 2, 2013

probable subbug of #4846. I'm closing as an assumed duplicate, but it would be good to include it as a test when #4846 gets fixed.

@pnkfelix pnkfelix closed this as completed Oct 2, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 18, 2022
Fix broken hyperlink in documentation

changelog: none

The hyperlinks in [`is_digit_ascii_radix`](https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix)'s docs are broken. This PR fixes those.
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

1 participant