Do not set visibility to true automatically (#4591)

Adding it by default grows the size of the visibility structure a lot.
This commit is contained in:
Jakub Žádník
2022-02-21 23:42:31 +02:00
committed by GitHub
parent 359bb6eebe
commit 739e403cd5
2 changed files with 1 additions and 2 deletions

View File

@ -328,6 +328,7 @@ pub fn parse_def(
let block = call.positional.get(2).expect("def call already checked");
let mut error = None;
if let (Some(name), Some(mut signature), Some(block_id)) =
(&name_expr.as_string(), sig.as_signature(), block.as_block())
{