about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-06-11 21:27:45 +0100
committerGitHub <noreply@github.com>2024-06-11 21:27:45 +0100
commitecc0046fb621ce5b6a36c5fc3fcb69d07db81bb8 (patch)
treefcc537fbfbe3acee581d9e3f0948c884d6de3c68
parentd9deb38ec003a5b8891264648e39c5e78d370101 (diff)
parenteb0ed28cedc2f5d96695d0ccd75ff831ec221a13 (diff)
downloadrust-ecc0046fb621ce5b6a36c5fc3fcb69d07db81bb8.tar.gz
rust-ecc0046fb621ce5b6a36c5fc3fcb69d07db81bb8.zip
Rollup merge of #125659 - tbu-:pr_rm_isize, r=pnkfelix
Remove usage of `isize` in example

`isize` is a rare integer type, replace it with a more common one.
-rw-r--r--compiler/rustc_lint/src/builtin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs
index 8c9abeafacf..98318cd14d9 100644
--- a/compiler/rustc_lint/src/builtin.rs
+++ b/compiler/rustc_lint/src/builtin.rs
@@ -142,7 +142,7 @@ declare_lint! {
     /// ```rust,compile_fail
     /// #![deny(box_pointers)]
     /// struct Foo {
-    ///     x: Box<isize>,
+    ///     x: Box<i32>,
     /// }
     /// ```
     ///