Skip to content

Conversation

@alexcrichton
Copy link
Member

When the metadata format changes, old libraries often cause librustc to abort
when reading their metadata. This should all change with the introduction of SVH
markers, but the loader for crates should gracefully handle libraries without
SVH markers still.

This commit adds support for tripping fewer assertions when loading libraries by
using maybe_get_doc when initially parsing metadata. It's still possible for
some libraries to fall through the cracks, but this should deal with a fairly
large number of them up front.

@brson
Copy link
Contributor

brson commented Mar 1, 2014

r=me once travis builds

When the metadata format changes, old libraries often cause librustc to abort
when reading their metadata. This should all change with the introduction of SVH
markers, but the loader for crates should gracefully handle libraries without
SVH markers still.

This commit adds support for tripping fewer assertions when loading libraries by
using maybe_get_doc when initially parsing metadata. It's still possible for
some libraries to fall through the cracks, but this should deal with a fairly
large number of them up front.
bors added a commit that referenced this pull request Mar 2, 2014
When the metadata format changes, old libraries often cause librustc to abort
when reading their metadata. This should all change with the introduction of SVH
markers, but the loader for crates should gracefully handle libraries without
SVH markers still.

This commit adds support for tripping fewer assertions when loading libraries by
using maybe_get_doc when initially parsing metadata. It's still possible for
some libraries to fall through the cracks, but this should deal with a fairly
large number of them up front.
@bors bors closed this Mar 2, 2014
@bors bors merged commit 997ff7a into rust-lang:master Mar 2, 2014
@alexcrichton alexcrichton deleted the invalid-libraries branch March 3, 2014 00:12
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
…n-target, r=flodiebold

Ignore the `bin` artifact for `bench` targets

Just like `test`.

Fixes rust-lang#12645.

I don't know how to test that.
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

Successfully merging this pull request may close these issues.

3 participants