The source of the type error
(&self)
| 1877 | impl<'a> TypeError<'a> { |
| 1878 | /// The source of the type error |
| 1879 | pub fn source(&self) -> Option<&'a MirRelationExpr> { |
| 1880 | use TypeError::*; |
| 1881 | match self { |
| 1882 | Unbound { source, .. } |
| 1883 | | NoSuchColumn { source, .. } |
| 1884 | | MismatchColumn { source, .. } |
| 1885 | | MismatchColumns { source, .. } |
| 1886 | | BadConstantRowLen { source, .. } |
| 1887 | | BadConstantRow { source, .. } |
| 1888 | | BadProject { source, .. } |
| 1889 | | BadJoinEquivalence { source, .. } |
| 1890 | | BadTopKGroupKey { source, .. } |
| 1891 | | BadTopKOrdering { source, .. } |
| 1892 | | BadLetRecBindings { source } |
| 1893 | | Shadowing { source, .. } |
| 1894 | | DisallowedDummy { source, .. } => Some(source), |
| 1895 | Recursion { .. } => None, |
| 1896 | } |
| 1897 | } |
| 1898 | |
| 1899 | fn humanize<H>(&self, humanizer: &H, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result |
| 1900 | where |
no outgoing calls