diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-06-11 21:27:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 21:27:45 +0100 |
| commit | ecc0046fb621ce5b6a36c5fc3fcb69d07db81bb8 (patch) | |
| tree | fcc537fbfbe3acee581d9e3f0948c884d6de3c68 | |
| parent | d9deb38ec003a5b8891264648e39c5e78d370101 (diff) | |
| parent | eb0ed28cedc2f5d96695d0ccd75ff831ec221a13 (diff) | |
| download | rust-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.rs | 2 |
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>, /// } /// ``` /// |
