nak: Fix some rusdoc warnings

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34919>
This commit is contained in:
Faith Ekstrand 2025-05-11 23:21:11 -04:00 committed by Marge Bot
parent 3459004104
commit 98deabfa90
4 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@ const INIT_DATA: [u16; 64] = [
/// An implementation of the ACORN random number generator
///
/// See also http://acorn.wikramaratna.org/concept.html
/// See also <http://acorn.wikramaratna.org/concept.html>
///
/// This isn't cryptographically secure but it's easy and fast and good enough
/// for generating test data. More importantly, we own the implementation so it

View file

@ -221,8 +221,8 @@ pub fn side_effect_type(op: &Op) -> SideEffect {
/// Try to guess how many cycles a variable latency instruction will take
///
/// These values are based on the cycle estimates from "Dissecting the NVidia
/// Turing T4 GPU via Microbenchmarking" https://arxiv.org/pdf/1903.07486
/// These values are based on the cycle estimates from ["Dissecting the NVidia
/// Turing T4 GPU via Microbenchmarking"](https://arxiv.org/pdf/1903.07486).
/// Memory instructions were copied from L1 data cache latencies.
/// For instructions not mentioned in the paper, I made up numbers.
/// This could probably be improved.

View file

@ -1056,7 +1056,7 @@ impl Function {
///
/// - S, the set of variables which have been spilled
///
/// These sets are tracked as we walk instructions and [un]spill values to
/// These sets are tracked as we walk instructions and \[un\]spill values to
/// satisfy the given limit. When spills are required we spill the value
/// with the nighest next-use IP. At block boundaries, Braun and Hack
/// describe a heuristic for determining the starting W and S sets based on

View file

@ -23,7 +23,7 @@ enum Node<X: Copy> {
///
/// Robert E. Tarjan and Jan van Leeuwen. 1984. Worst-case Analysis of Set
/// Union Algorithms. J. ACM 31, 2 (April 1984), 245281.
/// https://doi.org/10.1145/62.2160
/// <https://doi.org/10.1145/62.2160>
pub struct UnionFind<X: Copy + Hash + Eq> {
idx_map: HashMap<X, usize>,
nodes: Vec<Node<X>>,