librustpkg: don't clobber the crate attributes for the pkgid

This commit is contained in:
Corey Richardson 2013-12-13 02:14:06 -05:00
parent cecc13a704
commit b20aa5b77d
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ impl Clean<Crate> for visit_ast::RustdocVisitor {
Crate {
name: match find_pkgid(self.attrs) {
Some(n) => n,
Some(n) => n.name,
None => fail!("rustdoc requires a `pkgid` crate attribute"),
},
module: Some(self.module.clean()),

View File

@ -300,7 +300,7 @@ pub fn compile_input(context: &BuildContext,
pkg_id.version.to_str()).to_managed());
debug!("pkgid attr: {:?}", pkgid_attr);
crate.attrs = ~[attr::mk_attr(pkgid_attr)];
crate.attrs.push(attr::mk_attr(pkgid_attr));
}
debug!("calling compile_crate_from_input, workspace = {},