997ff7abd4
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.
7 lines
186 B
Makefile
7 lines
186 B
Makefile
-include ../tools.mk
|
|
|
|
all:
|
|
touch $(TMPDIR)/rust.metadata.bin
|
|
ar crus $(TMPDIR)/libfoo-ffffffff-1.0.rlib $(TMPDIR)/rust.metadata.bin
|
|
$(RUSTC) foo.rs 2>&1 | grep "can't find crate for"
|