We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cecc13a commit b20aa5bCopy full SHA for b20aa5b
src/librustdoc/clean.rs
@@ -83,7 +83,7 @@ impl Clean<Crate> for visit_ast::RustdocVisitor {
83
84
Crate {
85
name: match find_pkgid(self.attrs) {
86
- Some(n) => n,
+ Some(n) => n.name,
87
None => fail!("rustdoc requires a `pkgid` crate attribute"),
88
},
89
module: Some(self.module.clean()),
src/librustpkg/util.rs
@@ -300,7 +300,7 @@ pub fn compile_input(context: &BuildContext,
300
pkg_id.version.to_str()).to_managed());
301
302
debug!("pkgid attr: {:?}", pkgid_attr);
303
- crate.attrs = ~[attr::mk_attr(pkgid_attr)];
+ crate.attrs.push(attr::mk_attr(pkgid_attr));
304
}
305
306
debug!("calling compile_crate_from_input, workspace = {},
0 commit comments