Make aliased call not look up predeclarations (#9244)

This commit is contained in:
Jakub Žádník
2023-05-20 00:46:22 +03:00
committed by GitHub
parent 01a00641f9
commit 429c4332b1
4 changed files with 24 additions and 7 deletions

View File

@ -804,6 +804,8 @@ pub fn parse_alias(
}
let starting_error_count = working_set.parse_errors.len();
working_set.search_predecls = false;
let expr = parse_call(
working_set,
replacement_spans,
@ -811,6 +813,8 @@ pub fn parse_alias(
false, // TODO: Should this be set properly???
);
working_set.search_predecls = true;
if starting_error_count != working_set.parse_errors.len() {
if let Some(e) = working_set.parse_errors.get(starting_error_count) {
if let ParseError::MissingPositional(..) = e {