Skip to content

Commit ab4e806

Browse files
Finish rebasing
1 parent f2735b7 commit ab4e806

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

Cargo.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -5908,7 +5908,7 @@ dependencies = [
59085908
"num-traits",
59095909
"rustdoc-json-types",
59105910
"serde_json",
5911-
"syn",
5911+
"syn 1.0.109",
59125912
"tidy",
59135913
]
59145914

src/bootstrap/src/core/build_steps/doc.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -967,11 +967,12 @@ impl Step for UnstableBookGen {
967967
let target = self.target;
968968
let host = builder.build.build;
969969

970-
builder.ensure(Std {
971-
stage: builder.top_stage,
972-
target: host,
973-
format: DocumentationFormat::JSON,
974-
});
970+
builder.ensure(Std::new(
971+
builder.top_stage,
972+
self.target,
973+
builder,
974+
DocumentationFormat::JSON,
975+
));
975976

976977
builder.info(&format!("Generating unstable book md files ({target})"));
977978
let out = builder.md_doc_out(target).join("unstable-book");

src/tools/unstable-book-gen/src/main.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,13 @@ pub fn load_rustdoc_json_metadata(doc_dir: &Path) -> HashMap<String, Vec<(String
111111
continue;
112112
}
113113
let unstable_feature = item.attrs.iter().find_map(|attr: &String| {
114-
let Ok(parseable) = syn::Attribute::parse_outer.parse_str(attr) else {return None;};
114+
let Ok(parseable) = syn::Attribute::parse_outer.parse_str(attr) else {
115+
return None;
116+
};
115117
for parsed in parseable {
116-
let Some(ident) = parsed.path.get_ident() else {continue;};
118+
let Some(ident) = parsed.path.get_ident() else {
119+
continue;
120+
};
117121
// Make sure this is an `unstable` attribute.
118122
if !is_ident(ident, "unstable") {
119123
continue;

0 commit comments

Comments
 (0)