From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E95722FABFF for ; Thu, 20 Nov 2025 09:59:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763632773; cv=none; b=DAu7+eM30x1ySxSx2habfUly/IFIWgdpS58JmQcPRjQWM1CpaFrlHbiLMsRrbpUp3/VUvvB+byVR+42OihZ2QjibkR6ih/mzkupSDRMQq8iokrbwlJDngnA2tLM+SfHbn8qimnGJqmcS6NVT38erZnIgZFr6QrYZOztmJSSS65k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763632773; c=relaxed/simple; bh=ebkAz8idP/5kWsCMCA9Et9EJ9cCNttzJgavkMh49SLI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JfREUxRRGJi+SwxC2dOto7DaC2jTOQBslb+h6V54dKmEVZBH3uUbmw7R9Ct6ElAJZT/02Iu5TGOA/NK/3U75KCuZ15DffX8SNH1gRmkPEW4kaTG0pR4OldW3EyJI2j8Mgikb+lOzJGwQe9a/ALsXs2g51nXdlsSyvdLPH+IlWdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=gcEmZ0e7; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gcEmZ0e7" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4779393221aso3986965e9.2 for ; Thu, 20 Nov 2025 01:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1763632770; x=1764237570; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=rKhkvz9RkKrz0nh0wD2ZjaTl6jF91MXKlXmQggVVFBw=; b=gcEmZ0e7586dxVugwr6itgoelevmEidgzLqb0ljCZkKeElu8KtcqXw3/gn3pVm4bb3 gG/bB+DECwkdIvYS4OHS5CJW0Z2nn3Yfmqoo+RsQ7sgk+pUmT9bR8RzpHcaeq3/4JMQM UFK3yeJiXQLScs7x7OAw3E1zNN4q+LmjNseT+IznFvWOz+GMKEagvWtNQpfOiGAHv/gJ aLwUsbdV87xv8mqZczzx0QLQ8coJb03tV6TWjkzWxXEyb04TRmld5NraYYFet3jb3rsW QgY/XK1uXY8aU6SnsRRd0c1XBwyze4+JWkv0Uuw+MTAi7MC5HJuRRWn8Og3t14l+NzkG 57VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763632770; x=1764237570; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rKhkvz9RkKrz0nh0wD2ZjaTl6jF91MXKlXmQggVVFBw=; b=Zvcb1JiGQOvxL6F5iLT/Dgj0M7+IasKvH/WpxtmmKk/paOZlnEqPsBbVtTK7PkkQM9 FrDOIo/J1c/1kPY9uVLb0Sm75lIWVlB7001kkw4fwH8pERpBGJYRTIniq+Nc3jHv5jly Q45LTS5171FXFZyqEPpyzdSraZtZqqlMFeHR3EvBipzH12Z58T0FDgDK6MvvMke9HrkF zMCrXI80EVUkrVprhnUueqxh8XQLKfYtja+4nVMh3eR8aNuQxLogFtdRpGg2e3PAQ4Ba mGYBfDzSOmIo/d9orUMk50rsjmL7udn20lIOr0SHV9BJ0P3CoDjVIA1/WNglPSTd4Klb 5SWw== X-Forwarded-Encrypted: i=1; AJvYcCUf833AVInKYmlk8mywRBQKIgR5rH+TUkrLWkMv3v0pkJBI6aakApGanSR4Kper/qyW56/j7N34XM0PkjI=@vger.kernel.org X-Gm-Message-State: AOJu0YzI8rFMfaotaSNPwvkO5jiAi1zPkYS/ec1eseEhEUC/dInunvJr 566r4r4QtukLC07h0YB8Eqp7xzi5laH59AIbB0KRJMmgox1rdpoo6DRLotm+l/fM6vdfi5iRAfg R6P4swksgeFaAqlvOHQ== X-Google-Smtp-Source: AGHT+IEKKD/BmbPlgMBpPggaAQdc02UN5hstoI3MhFvEktRwsM27SKW5fgN95go6FNLuZRUl6xabBr5bc6/w7Gw= X-Received: from wmfr22.prod.google.com ([2002:a05:600c:1596:b0:477:632b:1238]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4fc5:b0:477:97ca:b727 with SMTP id 5b1f17b1804b1-477bac0d06amr14368825e9.19.1763632770470; Thu, 20 Nov 2025 01:59:30 -0800 (PST) Date: Thu, 20 Nov 2025 09:59:29 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251119185125.1411151-1-ojeda@kernel.org> Message-ID: Subject: Re: [PATCH] rust: slice: fix broken intra-doc links From: Alice Ryhl To: Alexandre Courbot Cc: Miguel Ojeda , Danilo Krummrich , Alex Gaynor , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="utf-8" On Thu, Nov 20, 2025 at 10:56:29AM +0900, Alexandre Courbot wrote: > On Thu Nov 20, 2025 at 3:51 AM JST, Miguel Ojeda wrote: > > In older versions of Rust, the compiler doesn't know about the newer > > `as_flattened*` methods, thus `rustdoc` complains about the intra-doc > > links, e.g. > > > > error: unresolved link to `slice::as_flattened` > > --> rust/kernel/slice.rs:19:23 > > | > > 19 | /// [`as_flattened`]: slice::as_flattened > > | ^^^^^^^^^^^^^^^^^^^ the primitive type `slice` has no associated item named `as_flattened` > > | > > = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` > > = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` > > > > Thus fix them by using an URL instead. > > > > Fixes: 88622323dde3 ("rust: enable slice_flatten feature and provide it through an extension trait") > > Signed-off-by: Miguel Ojeda > > --- > > I have seen this in -next -- please feel free to take it or rebase if > > preferred etc., of course. Thanks! > > Reviewed-by: Alexandre Courbot > > Alice, I guess we will want to take this into drm-rust-next or > drm-rust-fixes since that's where the patch introducing this originates > from? Yes, it goes in drm-rust-next: After -rc6, the branch is open for fixing bugs introduced by patches queued up in drm-rust-next for the upcoming merge window only. I will take the patch. Alice