<p dir="auto">This is really a bad thing for packages that are intended to be installed globally, and can be a security issue. It isn't in this case because this build was done inside a container + chroot and the RPATH is a directory in / that won't exist.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rust')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustc')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rusti')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustdoc')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustpkg')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libstd-4782a756585a81-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librustc-c84825241471686d-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libcore-c3ca5d77d81b46c1-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librusti-5047c7f210c7cac8-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librust-39583f72884834e3-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libsyntax-84efebcb12c867a2-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd-4782a756585a81-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc-c84825241471686d-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librusti-5047c7f210c7cac8-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librust-39583f72884834e3-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustdoc-1ac3c0763957e4b0-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libsyntax-84efebcb12c867a2-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustpkg-795073e423d025b-0.6.so')"><pre class="notranslate"><code class="notranslate">rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rust')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustc')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rusti')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustdoc')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/bin/rustpkg')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libstd-4782a756585a81-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librustc-c84825241471686d-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libcore-c3ca5d77d81b46c1-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librusti-5047c7f210c7cac8-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/librust-39583f72884834e3-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/libsyntax-84efebcb12c867a2-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd-4782a756585a81-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc-c84825241471686d-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librusti-5047c7f210c7cac8-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librust-39583f72884834e3-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustdoc-1ac3c0763957e4b0-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/libsyntax-84efebcb12c867a2-0.6.so')
rust E: Insecure RPATH '/build/src/rust-0.6/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib' in file ('usr/lib/rustc/x86_64-unknown-linux-gnu/lib/librustpkg-795073e423d025b-0.6.so')
</code></pre></div>
<p dir="auto">For reference: <a href="http://wiki.debian.org/RpathIssue" rel="nofollow">http://wiki.debian.org/RpathIssue</a></p>
<p dir="auto">This should compile but no longer does:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::cell::RefCell;

trait Foo {
    fn foo(&amp;self) {}
}

impl&lt;T&gt; Foo for T where T: Clone {}

struct Bar;

impl Bar {
    fn foo(&amp;self) {}
}

fn main() {
    let b = RefCell::new(Bar);
    b.borrow().foo()
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>cell<span class="pl-kos">::</span><span class="pl-v">RefCell</span><span class="pl-kos">;</span>

<span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
    <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span>

<span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Foo</span> <span class="pl-k">for</span> <span class="pl-smi">T</span> <span class="pl-k">where</span> <span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Clone</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>

<span class="pl-k">struct</span> <span class="pl-smi">Bar</span><span class="pl-kos">;</span>

<span class="pl-k">impl</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span>
    <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span>

<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">let</span> b = <span class="pl-smi">RefCell</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-v">Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    b<span class="pl-kos">.</span><span class="pl-en">borrow</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test.rs:17:5: 17:21 error: the trait `core::clone::Clone` is not implemented for the type `core::cell::Ref&lt;'_,Bar&gt;`
test.rs:17     b.borrow().foo()
               ^~~~~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">test.rs:17:5: 17:21 error: the trait `core::clone::Clone` is not implemented for the type `core::cell::Ref&lt;'_,Bar&gt;`
test.rs:17     b.borrow().foo()
               ^~~~~~~~~~~~~~~~
</code></pre></div>
<p dir="auto">Note that calling <code class="notranslate">Bar.foo()</code> directly works.</p>