1
Fork 0

Add missing generation for test and proc_macro, remove old macro redirection

This commit is contained in:
Guillaume Gomez 2019-01-30 11:39:19 +01:00
parent 65440a3f4f
commit 397eb4f237
3 changed files with 23 additions and 17 deletions

View file

@ -2244,15 +2244,6 @@ impl Context {
let mut redirect_out = BufWriter::new(redirect_out);
try_err!(layout::redirect(&mut redirect_out, file_name), &redir_dst);
}
// If the item is a macro, redirect from the old macro URL (with !)
// to the new one (without).
if item_type == ItemType::Macro {
let redir_name = format!("{}.{}!.html", item_type, name);
let redir_dst = self.dst.join(redir_name);
let redirect_out = try_err!(File::create(&redir_dst), &redir_dst);
let mut redirect_out = BufWriter::new(redirect_out);
try_err!(layout::redirect(&mut redirect_out, file_name), &redir_dst);
}
}
}
}