Update starch to upstream commit f4b84e62d5747ff44cd468c4d8ca1626434378c0

This commit is contained in:
Oliver Jowett 2021-07-13 13:16:02 +08:00
parent 2480e5169c
commit 6e5f2595e0
1 changed files with 1 additions and 1 deletions

2
starch/starch.py vendored
View File

@ -486,7 +486,7 @@ class Generator(object):
key = (impl.function, impl.name)
old = self.function_impls.get(key)
if old:
self.warning('duplicate definition of {impl.function.name} / {impl.name}, previously defined at {old.location[0]}:{old.location[1]}')
self.warning(impl.source, impl.lineno, f'duplicate definition of {impl.function.name} / {impl.name}, previously defined at {old.source.path}:{old.lineno}')
return
self.function_impls[key] = impl
impl.function.impls.append(impl)