| ... | @@ -4854,7 +4854,12 @@ pub fn analyzeFnBody(mod: *Module, decl: *Decl, func: *Fn, arena: Allocator) Sem | ... | @@ -4854,7 +4854,12 @@ pub fn analyzeFnBody(mod: *Module, decl: *Decl, func: *Fn, arena: Allocator) Sem |
| 4854 | error.GenericPoison => unreachable, | 4854 | error.GenericPoison => unreachable, |
| 4855 | error.ComptimeReturn => unreachable, | 4855 | error.ComptimeReturn => unreachable, |
| 4856 | error.ComptimeBreak => unreachable, | 4856 | error.ComptimeBreak => unreachable, |
| 4857 | error.AnalysisFail => {}, | 4857 | error.AnalysisFail => { |
| | 4858 | // In this case our function depends on a type that had a compile error. |
| | 4859 | // We should not try to lower this function. |
| | 4860 | decl.analysis = .dependency_failure; |
| | 4861 | return error.AnalysisFail; |
| | 4862 | }, |
| 4858 | else => |e| return e, | 4863 | else => |e| return e, |
| 4859 | }; | 4864 | }; |
| 4860 | | 4865 | |
| ... | @@ -4867,7 +4872,12 @@ pub fn analyzeFnBody(mod: *Module, decl: *Decl, func: *Fn, arena: Allocator) Sem | ... | @@ -4867,7 +4872,12 @@ pub fn analyzeFnBody(mod: *Module, decl: *Decl, func: *Fn, arena: Allocator) Sem |
| 4867 | error.GenericPoison => unreachable, | 4872 | error.GenericPoison => unreachable, |
| 4868 | error.ComptimeReturn => unreachable, | 4873 | error.ComptimeReturn => unreachable, |
| 4869 | error.ComptimeBreak => unreachable, | 4874 | error.ComptimeBreak => unreachable, |
| 4870 | error.AnalysisFail => {}, | 4875 | error.AnalysisFail => { |
| | 4876 | // In this case our function depends on a type that had a compile error. |
| | 4877 | // We should not try to lower this function. |
| | 4878 | decl.analysis = .dependency_failure; |
| | 4879 | return error.AnalysisFail; |
| | 4880 | }, |
| 4871 | else => |e| return e, | 4881 | else => |e| return e, |
| 4872 | }; | 4882 | }; |
| 4873 | } | 4883 | } |