about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-03-01 11:09:30 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-03-01 23:36:28 -0800
commit997ff7abd4f3b803575a7bfa4af3fb05569b1f75 (patch)
treec48b58f690f7d92eefb7a13f8fde461bf4389556 /src/libstd/sync
parent3d117cf3ca9dc091dd605b33617c32c6019b0e2b (diff)
downloadrust-997ff7abd4f3b803575a7bfa4af3fb05569b1f75.tar.gz
rust-997ff7abd4f3b803575a7bfa4af3fb05569b1f75.zip
rustc: Better error when loading invalid libraries
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.
Diffstat (limited to 'src/libstd/sync')
0 files changed, 0 insertions, 0 deletions