1
Fork 0

Transform const generics if the function uses rustc_legacy_const_generics

This commit is contained in:
Guillaume Gomez 2021-10-16 17:52:06 +02:00
parent 9981e56d3b
commit bd8d7e4a45
3 changed files with 41 additions and 1 deletions

View file

@ -1177,6 +1177,10 @@ impl clean::FnDecl {
args.push_str(" <br>");
args_plain.push(' ');
}
if input.is_const {
args.push_str("const ");
args_plain.push_str("const ");
}
if !input.name.is_empty() {
args.push_str(&format!("{}: ", input.name));
args_plain.push_str(&format!("{}: ", input.name));