]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.


Trivial merge