Skip to content

Commit 9a80c2b

Browse files
committed
Change repr documentation link
1 parent 451eb66 commit 9a80c2b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/librustc_lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ impl EarlyLintPass for BadRepr {
736736
warn.help("valid hints include `#[repr(C)]`, `#[repr(packed)]`, \
737737
`#[repr(rust)]` and `#[repr(transparent)]`");
738738
warn.note("for more information, visit \
739-
<https://doc.rust-lang.org/nomicon/other-reprs.html>");
739+
<https://doc.rust-lang.org/reference/type-layout.html>");
740740
}
741741
warn.emit();
742742
}

src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ LL | mod inner { #![repr="3900"] }
194194
|
195195
= note: #[warn(bad_repr)] on by default
196196
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
197-
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
197+
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
198198

199199
warning: `repr` attribute isn't configurable with a literal
200200
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:320:5
@@ -203,7 +203,7 @@ LL | #[repr = "3900"] fn f() { }
203203
| ^^^^^^^^^^^^^^^^ needs a hint
204204
|
205205
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
206-
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
206+
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
207207

208208
warning: `repr` attribute isn't configurable with a literal
209209
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:326:5
@@ -212,7 +212,7 @@ LL | #[repr = "3900"] type T = S;
212212
| ^^^^^^^^^^^^^^^^ needs a hint
213213
|
214214
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
215-
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
215+
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
216216

217217
warning: `repr` attribute isn't configurable with a literal
218218
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:330:5
@@ -221,7 +221,7 @@ LL | #[repr = "3900"] impl S { }
221221
| ^^^^^^^^^^^^^^^^ needs a hint
222222
|
223223
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
224-
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
224+
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
225225

226226
warning: `repr` attribute isn't configurable with a literal
227227
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:312:1
@@ -230,7 +230,7 @@ LL | #[repr = "3900"]
230230
| ^^^^^^^^^^^^^^^^ needs a hint
231231
|
232232
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
233-
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
233+
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
234234

235235
warning: `repr` attribute isn't configurable with a literal
236236
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:62:1
@@ -239,7 +239,7 @@ LL | #![repr = "3900"]
239239
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ needs a hint
240240
|
241241
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
242-
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
242+
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
243243

244244
warning: unused attribute
245245
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:194:5

src/test/ui/suggestions/repr.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | #[repr]
66
|
77
= note: #[warn(bad_repr)] on by default
88
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
9-
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
9+
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
1010

1111
warning: `repr` attribute isn't configurable with a literal
1212
--> $DIR/repr.rs:17:1
@@ -15,7 +15,7 @@ LL | #[repr = "B"]
1515
| ^^^^^^^^^^^^^ needs a hint
1616
|
1717
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
18-
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
18+
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
1919

2020
warning: `repr` attribute isn't configurable with a literal
2121
--> $DIR/repr.rs:21:3

0 commit comments

Comments
 (0)