Transform const generics if the function uses rustc_legacy_const_generics
This commit is contained in:
parent
9981e56d3b
commit
bd8d7e4a45
3 changed files with 41 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue