Skip to content

Commit 146d040

Browse files
committed
Reword tracking issue note
1 parent 3ab9706 commit 146d040

File tree

155 files changed

+375
-372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+375
-372
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,9 +1481,12 @@ fn leveled_feature_err<'a>(
14811481
};
14821482

14831483
match issue {
1484-
None | Some(0) => {}
1484+
None | Some(0) => {} // We still accept `0` as a stand-in for backwards compatibility
14851485
Some(n) => {
1486-
err.note(&format!("for more information, see tracking issue #{}", n));
1486+
err.note(&format!(
1487+
"for more information, see https://github.com/rust-lang/rust/issues/{}",
1488+
n,
1489+
));
14871490
}
14881491
}
14891492

src/test/ui/cast/cast-ptr-to-int-const.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: casting pointers to integers in constants is unstable
44
LL | main as u32
55
| ^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #51910
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/51910
88
= help: add #![feature(const_raw_ptr_to_usize_cast)] to the crate attributes to enable
99

1010
error[E0658]: casting pointers to integers in constants is unstable
@@ -13,7 +13,7 @@ error[E0658]: casting pointers to integers in constants is unstable
1313
LL | &Y as *const u32 as u32
1414
| ^^^^^^^^^^^^^^^^^^^^^^^
1515
|
16-
= note: for more information, see tracking issue #51910
16+
= note: for more information, see https://github.com/rust-lang/rust/issues/51910
1717
= help: add #![feature(const_raw_ptr_to_usize_cast)] to the crate attributes to enable
1818

1919
error: aborting due to 2 previous errors

src/test/ui/conditional-compilation/cfg-attr-crate-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: no_core is experimental
44
LL | #![cfg_attr(broken, no_core)]
55
| ^^^^^^^
66
|
7-
= note: for more information, see tracking issue #29639
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/29639
88
= help: add #![feature(no_core)] to the crate attributes to enable
99

1010
error: aborting due to previous error

src/test/ui/conditional-compilation/cfg-attr-multi-invalid-1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: no_core is experimental
44
LL | #![cfg_attr(broken, no_core, no_std)]
55
| ^^^^^^^
66
|
7-
= note: for more information, see tracking issue #29639
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/29639
88
= help: add #![feature(no_core)] to the crate attributes to enable
99

1010
error: aborting due to previous error

src/test/ui/conditional-compilation/cfg-attr-multi-invalid-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: no_core is experimental
44
LL | #![cfg_attr(broken, no_std, no_core)]
55
| ^^^^^^^
66
|
7-
= note: for more information, see tracking issue #29639
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/29639
88
= help: add #![feature(no_core)] to the crate attributes to enable
99

1010
error: aborting due to previous error

src/test/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | #[cfg_attr(all(), unknown)]
77
LL | foo!();
88
| ------- in this macro invocation
99
|
10-
= note: for more information, see tracking issue #29642
10+
= note: for more information, see https://github.com/rust-lang/rust/issues/29642
1111
= help: add #![feature(custom_attribute)] to the crate attributes to enable
1212

1313
error: aborting due to previous error

src/test/ui/consts/const-deref-ptr.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: dereferencing raw pointers in statics is unstable
44
LL | static C: u64 = unsafe {*(0xdeadbeef as *const u64)};
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #51911
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/51911
88
= help: add #![feature(const_raw_ptr_deref)] to the crate attributes to enable
99

1010
error: aborting due to previous error

src/test/ui/consts/const-eval/feature-gate-const_fn_union.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: unions in const fn are unstable
44
LL | Foo { u }.i
55
| ^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #51909
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/51909
88
= help: add #![feature(const_fn_union)] to the crate attributes to enable
99

1010
error: aborting due to previous error

src/test/ui/consts/const-eval/feature-gate-const_panic.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: panicking in constants is unstable
44
LL | const Z: () = panic!("cheese");
55
| ^^^^^^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #51999
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/51999
88
= help: add #![feature(const_panic)] to the crate attributes to enable
99
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
1010

@@ -14,7 +14,7 @@ error[E0658]: panicking in constants is unstable
1414
LL | const X: () = unimplemented!();
1515
| ^^^^^^^^^^^^^^^^
1616
|
17-
= note: for more information, see tracking issue #51999
17+
= note: for more information, see https://github.com/rust-lang/rust/issues/51999
1818
= help: add #![feature(const_panic)] to the crate attributes to enable
1919
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
2020

@@ -24,7 +24,7 @@ error[E0658]: panicking in constants is unstable
2424
LL | const Y: () = unreachable!();
2525
| ^^^^^^^^^^^^^^
2626
|
27-
= note: for more information, see tracking issue #51999
27+
= note: for more information, see https://github.com/rust-lang/rust/issues/51999
2828
= help: add #![feature(const_panic)] to the crate attributes to enable
2929
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
3030

src/test/ui/consts/const-eval/match-test-ptr-null.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn main() {
55
let _: [u8; 0] = [4; {
66
match &1 as *const i32 as usize {
77
//~^ ERROR casting pointers to integers in constants
8-
//~| NOTE for more information, see tracking issue #51910
8+
//~| NOTE for more information, see
99
0 => 42, //~ ERROR constant contains unimplemented expression type
1010
//~^ NOTE "pointer arithmetic or comparison" needs an rfc before being allowed
1111
//~| ERROR evaluation of constant value failed

0 commit comments

Comments
 (0)