Rollup merge of #53829 - alexcrichton:release-debuginfo, r=michaelwoerister

Add rustc SHA to released DWARF debuginfo

This commit updates the debuginfo that is encoded in all of our released
artifacts by default. Currently it has paths like `/checkout/src/...` but these
are a little inconsistent and have changed over time. This commit instead
attempts to actually define the file paths in our debuginfo to be consistent
between releases.

All debuginfo paths are now intended to be `/rustc/$sha` where `$sha` is the git
sha of the released compiler. Sub-paths are all paths into the git repo at that
`$sha`.
This commit is contained in:
kennytm 2018-09-14 00:46:22 +08:00
commit 5db68bae9a
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
14 changed files with 71 additions and 15 deletions

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-musl
// ignore-x86
// error-pattern: cycle detected
struct Foo {

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-musl
// ignore-x86
use std::fmt::Debug;
trait Foo {

View file

@ -1,5 +1,5 @@
error[E0643]: method `foo` has incompatible signature for trait
--> $DIR/impl-generic-mismatch.rs:18:12
--> $DIR/impl-generic-mismatch.rs:21:12
|
LL | fn foo(&self, _: &impl Debug);
| ---------- declaration in trait here
@ -12,7 +12,7 @@ LL | fn foo(&self, _: &impl Debug) { }
| -- ^^^^^^^^^^
error[E0643]: method `bar` has incompatible signature for trait
--> $DIR/impl-generic-mismatch.rs:27:23
--> $DIR/impl-generic-mismatch.rs:30:23
|
LL | fn bar<U: Debug>(&self, _: &U);
| - declaration in trait here
@ -25,7 +25,7 @@ LL | fn bar<U: Debug>(&self, _: &U) { }
| ^^^^^^^^^^ ^
error[E0643]: method `hash` has incompatible signature for trait
--> $DIR/impl-generic-mismatch.rs:38:33
--> $DIR/impl-generic-mismatch.rs:41:33
|
LL | fn hash(&self, hasher: &mut impl Hasher) {}
| ^^^^^^^^^^^ expected generic parameter, found `impl Trait`