diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-06-06 14:33:07 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-06-06 14:33:07 -0700 |
| commit | 9a80c2b99473d504c6e16d8fe55d3344d770320c (patch) | |
| tree | 453da83096e4560b4e9df7b387926345921a9e2c | |
| parent | 451eb66a53efdad9886bfb1525a217a3ca5beb1f (diff) | |
| download | rust-9a80c2b99473d504c6e16d8fe55d3344d770320c.tar.gz rust-9a80c2b99473d504c6e16d8fe55d3344d770320c.zip | |
Change repr documentation link
| -rw-r--r-- | src/librustc_lint/builtin.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr | 12 | ||||
| -rw-r--r-- | src/test/ui/suggestions/repr.stderr | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 0987197db26..0688e47606f 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -736,7 +736,7 @@ impl EarlyLintPass for BadRepr { warn.help("valid hints include `#[repr(C)]`, `#[repr(packed)]`, \ `#[repr(rust)]` and `#[repr(transparent)]`"); warn.note("for more information, visit \ - <https://doc.rust-lang.org/nomicon/other-reprs.html>"); + <https://doc.rust-lang.org/reference/type-layout.html>"); } warn.emit(); } diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr b/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr index 2b6396249bb..f351a9e69d0 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr +++ b/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr @@ -194,7 +194,7 @@ LL | mod inner { #![repr="3900"] } | = note: #[warn(bad_repr)] on by default = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html> + = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:320:5 @@ -203,7 +203,7 @@ LL | #[repr = "3900"] fn f() { } | ^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html> + = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:326:5 @@ -212,7 +212,7 @@ LL | #[repr = "3900"] type T = S; | ^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html> + = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:330:5 @@ -221,7 +221,7 @@ LL | #[repr = "3900"] impl S { } | ^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html> + = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:312:1 @@ -230,7 +230,7 @@ LL | #[repr = "3900"] | ^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html> + = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> warning: `repr` attribute isn't configurable with a literal --> $DIR/issue-43106-gating-of-builtin-attrs.rs:62:1 @@ -239,7 +239,7 @@ LL | #![repr = "3900"] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html> + = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> warning: unused attribute --> $DIR/issue-43106-gating-of-builtin-attrs.rs:194:5 diff --git a/src/test/ui/suggestions/repr.stderr b/src/test/ui/suggestions/repr.stderr index efc7e0fd2be..83f5bb48f7a 100644 --- a/src/test/ui/suggestions/repr.stderr +++ b/src/test/ui/suggestions/repr.stderr @@ -6,7 +6,7 @@ LL | #[repr] | = note: #[warn(bad_repr)] on by default = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html> + = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> warning: `repr` attribute isn't configurable with a literal --> $DIR/repr.rs:17:1 @@ -15,7 +15,7 @@ LL | #[repr = "B"] | ^^^^^^^^^^^^^ needs a hint | = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]` - = note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html> + = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html> warning: `repr` attribute isn't configurable with a literal --> $DIR/repr.rs:21:3 |
