removing needless errors
Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
parent
b9b8233a53
commit
c0d957e70c
|
@ -4950,6 +4950,7 @@ impl<'a> Codegen<'a> {
|
|||
let template = match func.expand() {
|
||||
ty::Kind::Func(f) => return Some(f),
|
||||
ty::Kind::Template(t) => t,
|
||||
ty::Kind::NEVER => return None,
|
||||
_ => {
|
||||
self.error(pos, fa!("compiler cant (yet) call '{}'", self.ty_display(func)));
|
||||
return None;
|
||||
|
|
Loading…
Reference in a new issue