<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_LOG=rustc=1,::rt::backtrace rustc link_header.rs
rust: task failed at 'assertion failed: rp.is_none()', /Users/shout/Projects/rust/src/librustc/middle/typeck/collect.rs:1044
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,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /Users/shout/Projects/rust/src/librustc/rustc.rs:358
rust: domain main @0x7f86ba819810 root task failed"><pre class="notranslate"><code class="notranslate">$ RUST_LOG=rustc=1,::rt::backtrace rustc link_header.rs
rust: task failed at 'assertion failed: rp.is_none()', /Users/shout/Projects/rust/src/librustc/middle/typeck/collect.rs:1044
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,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /Users/shout/Projects/rust/src/librustc/rustc.rs:358
rust: domain main @0x7f86ba819810 root task failed
</code></pre></div>
<p dir="auto">Complete contents of <code class="notranslate">link_header.rs</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[ crate_type = &quot;lib&quot; ];

// Given a Link header, parse out the next url
// &lt;https://api.github.com/repositories?since=364&gt;; rel=&quot;next&quot;, &lt;https://api.github.com/repositories{?since}&gt;; rel=&quot;first&quot;
fn parse(header: ~str) -&gt; &amp;'self str {
    match header.find('&lt;') {
        Some(start) =&gt; {
            match header.find('&gt;') {
                Some(end) =&gt; {
                    return header.slice(start + 1, end);
                },
                _ =&gt; { fail!(&quot;Missing &gt;&quot;) }
            }
        },
        _ =&gt; {fail!(&quot;Missing &lt;&quot;) }
    }
}"><pre class="notranslate"><code class="notranslate">#[ crate_type = "lib" ];

// Given a Link header, parse out the next url
// &lt;https://api.github.com/repositories?since=364&gt;; rel="next", &lt;https://api.github.com/repositories{?since}&gt;; rel="first"
fn parse(header: ~str) -&gt; &amp;'self str {
    match header.find('&lt;') {
        Some(start) =&gt; {
            match header.find('&gt;') {
                Some(end) =&gt; {
                    return header.slice(start + 1, end);
                },
                _ =&gt; { fail!("Missing &gt;") }
            }
        },
        _ =&gt; {fail!("Missing &lt;") }
    }
}
</code></pre></div>
<p dir="auto">Followup to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="11612802" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/5219" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/5219/hovercard" href="https://github.com/rust-lang/rust/issues/5219">#5219</a>. Per that issue rpaths are frowned on by linux distros. Absolute rpaths are supposed to be worse than relative rpaths (I'm not clear on why at the moment), and they are probably relatively easy to get rid of. Nominating.</p>