From ad6472d3b69d9485f73c8fa9034a328eef94e55d Mon Sep 17 00:00:00 2001 From: discord9 <55937128+discord9@users.noreply.github.com> Date: Wed, 21 Oct 2026 16:32:01 +0800 Subject: [PATCH] docs(promql): link the validator by the node that has it `NativeTree` has no `validate`; the method lives on `NativeNode`. Both doc comments linked the tree, so rustdoc reports an unresolved link and the published API docs lose the reference. Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com> --- src/query/src/promql/native_compile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query/src/promql/native_compile.rs b/src/query/src/promql/native_compile.rs index 23d25903802..1be936d7980 100644 --- a/src/query/src/promql/native_compile.rs +++ b/src/query/src/promql/native_compile.rs @@ -36,7 +36,7 @@ //! single authority on that, so a node added later cannot be legal in one place and illegal in //! another. What is refused before a tree exists is the scan's shape: no shape below can consume //! chunks of different series that interleave, so an `Interleaved` ordering is refused once, at the -//! entry, and [`NativeTree::validate`] refuses the same ordering for a tree built some other way. +//! entry, and [`NativeNode::validate`] refuses the same ordering for a tree built some other way. use std::sync::Arc; use std::time::Duration; @@ -78,7 +78,7 @@ const SUPPORTED: &str = "a bare selector, a range function over a selector — \ /// one series to its last chunk before the next, so an `Interleaved` declaration is refused at the /// entry, before any shape is built — the bare selector included, which returns before a window /// exists — and a shape added later inherits the refusal instead of restating it. -/// [`NativeTree::validate`] refuses the same ordering in its `Instant` and `Window` branches, as a +/// [`NativeNode::validate`] refuses the same ordering in its `Instant` and `Window` branches, as a /// backstop for a tree built some other way. /// /// The tree carries no metric name and no matchers, so `rate(x{job="a"}[5m])` and `rate(y[5m])`