librustpkg: don't clobber the crate attributes for the pkgid
This commit is contained in:
parent
cecc13a704
commit
b20aa5b77d
|
@ -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()),
|
||||
|
|
|
@ -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 = {},
|
||||
|
|
Loading…
Reference in New Issue