From 55fe9032f4af3d14f6f874e95040762f70151915 Mon Sep 17 00:00:00 2001 From: alexion Date: Sat, 19 Sep 2026 15:16:03 -0400 Subject: [PATCH] docs(xatu): note deprecated toPath resolution follow-up --- src/xatu/rules/deprecated_to_path.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xatu/rules/deprecated_to_path.rs b/src/xatu/rules/deprecated_to_path.rs index 68b7790..98837ab 100644 --- a/src/xatu/rules/deprecated_to_path.rs +++ b/src/xatu/rules/deprecated_to_path.rs @@ -24,6 +24,8 @@ impl NodeRule for DeprecatedToPath { } fn calls_to_path(function: &ast::Expr) -> bool { + // TODO: Once Xatu supports name resolution, report unqualified `toPath` only + // when it resolves to `builtins.toPath`. match function { ast::Expr::Ident(ident) => ident.name == "toPath", ast::Expr::Select(select) => is_builtins_to_path(select),