]> git.lizzy.rs Git - rust.git/commit
auto merge of #10368 : tautologico/rust/default_pkgid, r=catamorphism
authorbors <bors@rust-lang.org>
Sat, 9 Nov 2013 10:11:15 +0000 (02:11 -0800)
committerbors <bors@rust-lang.org>
Sat, 9 Nov 2013 10:11:15 +0000 (02:11 -0800)
commit4f68d1365abc71d0b63c7167c6a4625104912af2
treec67ff0abc2fd206da5280145957f6573c4e3e9c3
parent162ba894bced501e8725c2558447df2403fbd553
parentca22e947720bd16571f26d71f5de21b135a48fc2
auto merge of #10368 : tautologico/rust/default_pkgid, r=catamorphism

This Fixes #10265 and paves the way for fixing #9543. It works by adding a 'package_id' attribute by default for library crates that don't specify it. This is necessary to use the 'extern mod foo = "bar"' form instead of 'extern mod foo(name="bar") (as per #9543), because the former adds a required package_id when trying to link with the bar crate. I added a simple test to ensure that the default package_id value is being generated, and also added an explicit package_id in the link attribute in all rust libs to avoid getting warnings about default package_id values when building rust.