mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
527ab050fa
The `looks_like_refdef` function was assuming the range was valid, this just adds a check to ensure that is the case. It also works around a subtraction underflow due to the same invalid range. changelog: [`doc_nested_refdefs`]: Fix #14287 by avoiding invalid ranges