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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: casting pointers to integers in constants is unstable
44
LL | match &1 as *const i32 as usize {
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[E0019]: constant contains unimplemented expression type

src/test/ui/consts/min_const_fn/min_const_fn_unsafe.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: dereferencing raw pointers in constant functions is unstable
44
LL | const fn bad_const_fn_deref_raw(x: *mut usize) -> &'static usize { unsafe { &*x } }
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[E0658]: dereferencing raw pointers in constant functions is unstable
@@ -13,7 +13,7 @@ error[E0658]: dereferencing raw pointers in constant functions is unstable
1313
LL | const unsafe fn bad_const_unsafe_deref_raw(x: *mut usize) -> usize { *x }
1414
| ^^
1515
|
16-
= note: for more information, see tracking issue #51911
16+
= note: for more information, see https://github.com/rust-lang/rust/issues/51911
1717
= help: add #![feature(const_raw_ptr_deref)] to the crate attributes to enable
1818

1919
error[E0658]: dereferencing raw pointers in constant functions is unstable
@@ -22,7 +22,7 @@ error[E0658]: dereferencing raw pointers in constant functions is unstable
2222
LL | const unsafe fn bad_const_unsafe_deref_raw_ref(x: *mut usize) -> &'static usize { &*x }
2323
| ^^^
2424
|
25-
= note: for more information, see tracking issue #51911
25+
= note: for more information, see https://github.com/rust-lang/rust/issues/51911
2626
= help: add #![feature(const_raw_ptr_deref)] to the crate attributes to enable
2727

2828
error[E0658]: unions in const fn are unstable
@@ -31,7 +31,7 @@ error[E0658]: unions in const fn are unstable
3131
LL | Foo { x: () }.y
3232
| ^^^^^^^^^^^^^^^
3333
|
34-
= note: for more information, see tracking issue #51909
34+
= note: for more information, see https://github.com/rust-lang/rust/issues/51909
3535
= help: add #![feature(const_fn_union)] to the crate attributes to enable
3636

3737
error[E0133]: dereference of raw pointer is unsafe and requires unsafe function or block

src/test/ui/consts/projection_qualif.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ error[E0658]: dereferencing raw pointers in constants is unstable
1616
LL | unsafe { *b = 5; }
1717
| ^^^^^^
1818
|
19-
= note: for more information, see tracking issue #51911
19+
= note: for more information, see https://github.com/rust-lang/rust/issues/51911
2020
= help: add #![feature(const_raw_ptr_deref)] to the crate attributes to enable
2121

2222
error: aborting due to 3 previous errors

src/test/ui/custom_attribute.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: The attribute `foo` is currently unknown to the compiler and may h
44
LL | #[foo]
55
| ^^^
66
|
7-
= note: for more information, see tracking issue #29642
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/29642
88
= help: add #![feature(custom_attribute)] to the crate attributes to enable
99

1010
error[E0658]: The attribute `foo` is currently unknown to the compiler and may have meaning added to it in the future
@@ -13,7 +13,7 @@ error[E0658]: The attribute `foo` is currently unknown to the compiler and may h
1313
LL | #[foo]
1414
| ^^^
1515
|
16-
= note: for more information, see tracking issue #29642
16+
= note: for more information, see https://github.com/rust-lang/rust/issues/29642
1717
= help: add #![feature(custom_attribute)] to the crate attributes to enable
1818

1919
error[E0658]: The attribute `foo` is currently unknown to the compiler and may have meaning added to it in the future
@@ -22,7 +22,7 @@ error[E0658]: The attribute `foo` is currently unknown to the compiler and may h
2222
LL | #[foo]
2323
| ^^^
2424
|
25-
= note: for more information, see tracking issue #29642
25+
= note: for more information, see https://github.com/rust-lang/rust/issues/29642
2626
= help: add #![feature(custom_attribute)] to the crate attributes to enable
2727

2828
error: aborting due to 3 previous errors

src/test/ui/error-codes/E0395.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: comparing raw pointers inside static
44
LL | static BAZ: bool = unsafe { (&FOO as *const i32) == (&BAR as *const i32) };
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #53020
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/53020
88
= help: add #![feature(const_compare_raw_pointers)] to the crate attributes to enable
99

1010
error: aborting due to previous error

src/test/ui/error-codes/E0396.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 constants is unstable
44
LL | const VALUE: u8 = unsafe { *REG_ADDR };
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/error-codes/E0658.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | | Bar(u64),
66
LL | | }
77
| |_^
88
|
9-
= note: for more information, see tracking issue #35118
9+
= note: for more information, see https://github.com/rust-lang/rust/issues/35118
1010
= help: add #![feature(repr128)] to the crate attributes to enable
1111

1212
error: aborting due to previous error

src/test/ui/explore-issue-38412.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: use of unstable library feature 'unstable_undeclared'
44
LL | let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } =
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #38412
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/38412
88
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
99

1010
error[E0658]: use of unstable library feature 'unstable_undeclared'
@@ -13,7 +13,7 @@ error[E0658]: use of unstable library feature 'unstable_undeclared'
1313
LL | r.a_unstable_undeclared_pub;
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515
|
16-
= note: for more information, see tracking issue #38412
16+
= note: for more information, see https://github.com/rust-lang/rust/issues/38412
1717
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
1818

1919
error[E0616]: field `b_crate` of struct `pub_and_stability::Record` is private
@@ -40,7 +40,7 @@ error[E0658]: use of unstable library feature 'unstable_undeclared'
4040
LL | t.2;
4141
| ^^^
4242
|
43-
= note: for more information, see tracking issue #38412
43+
= note: for more information, see https://github.com/rust-lang/rust/issues/38412
4444
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
4545

4646
error[E0616]: field `3` of struct `pub_and_stability::Tuple` is private
@@ -67,7 +67,7 @@ error[E0658]: use of unstable library feature 'unstable_undeclared'
6767
LL | r.unstable_undeclared_trait_method();
6868
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6969
|
70-
= note: for more information, see tracking issue #38412
70+
= note: for more information, see https://github.com/rust-lang/rust/issues/38412
7171
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
7272

7373
error[E0658]: use of unstable library feature 'unstable_undeclared'
@@ -76,7 +76,7 @@ error[E0658]: use of unstable library feature 'unstable_undeclared'
7676
LL | r.unstable_undeclared();
7777
| ^^^^^^^^^^^^^^^^^^^
7878
|
79-
= note: for more information, see tracking issue #38412
79+
= note: for more information, see https://github.com/rust-lang/rust/issues/38412
8080
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
8181

8282
error[E0624]: method `pub_crate` is private
@@ -103,7 +103,7 @@ error[E0658]: use of unstable library feature 'unstable_undeclared'
103103
LL | t.unstable_undeclared_trait_method();
104104
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105105
|
106-
= note: for more information, see tracking issue #38412
106+
= note: for more information, see https://github.com/rust-lang/rust/issues/38412
107107
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
108108

109109
error[E0658]: use of unstable library feature 'unstable_undeclared'
@@ -112,7 +112,7 @@ error[E0658]: use of unstable library feature 'unstable_undeclared'
112112
LL | t.unstable_undeclared();
113113
| ^^^^^^^^^^^^^^^^^^^
114114
|
115-
= note: for more information, see tracking issue #38412
115+
= note: for more information, see https://github.com/rust-lang/rust/issues/38412
116116
= help: add #![feature(unstable_undeclared)] to the crate attributes to enable
117117

118118
error[E0624]: method `pub_crate` is private

src/test/ui/feature-gate-optimize_attribute.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: #[optimize] attribute is an unstable feature
44
LL | #[optimize(size)]
55
| ^^^^^^^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #54882
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
88
= help: add #![feature(optimize_attribute)] to the crate attributes to enable
99

1010
error[E0658]: #[optimize] attribute is an unstable feature
@@ -13,7 +13,7 @@ error[E0658]: #[optimize] attribute is an unstable feature
1313
LL | #[optimize(speed)]
1414
| ^^^^^^^^^^^^^^^^^^
1515
|
16-
= note: for more information, see tracking issue #54882
16+
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
1717
= help: add #![feature(optimize_attribute)] to the crate attributes to enable
1818

1919
error[E0658]: #[optimize] attribute is an unstable feature
@@ -22,7 +22,7 @@ error[E0658]: #[optimize] attribute is an unstable feature
2222
LL | #[optimize(banana)]
2323
| ^^^^^^^^^^^^^^^^^^^
2424
|
25-
= note: for more information, see tracking issue #54882
25+
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
2626
= help: add #![feature(optimize_attribute)] to the crate attributes to enable
2727

2828
error[E0658]: #[optimize] attribute is an unstable feature
@@ -31,7 +31,7 @@ error[E0658]: #[optimize] attribute is an unstable feature
3131
LL | #[optimize(size)]
3232
| ^^^^^^^^^^^^^^^^^
3333
|
34-
= note: for more information, see tracking issue #54882
34+
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
3535
= help: add #![feature(optimize_attribute)] to the crate attributes to enable
3636

3737
error[E0658]: #[optimize] attribute is an unstable feature
@@ -40,7 +40,7 @@ error[E0658]: #[optimize] attribute is an unstable feature
4040
LL | #![optimize(speed)]
4141
| ^^^^^^^^^^^^^^^^^^^
4242
|
43-
= note: for more information, see tracking issue #54882
43+
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
4444
= help: add #![feature(optimize_attribute)] to the crate attributes to enable
4545

4646
error[E0722]: invalid argument

src/test/ui/feature-gate/feature-gate-c_variadic.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: C-varaidic functions are unstable
44
LL | pub unsafe extern "C" fn test(_: i32, ap: ...) { }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #44930
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/44930
88
= help: add #![feature(c_variadic)] to the crate attributes to enable
99

1010
error: aborting due to previous error

src/test/ui/feature-gate/feature-gate-static-nobundle-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error[E0658]: kind="static-nobundle" is feature gated
22
|
3-
= note: for more information, see tracking issue #37403
3+
= note: for more information, see https://github.com/rust-lang/rust/issues/37403
44
= help: add #![feature(static_nobundle)] to the crate attributes to enable
55

66
error: aborting due to previous error

src/test/ui/feature-gates/feature-gate-abi-msp430-interrupt.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: msp430-interrupt ABI is experimental and subject to change
44
LL | extern "msp430-interrupt" fn foo() {}
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: for more information, see tracking issue #38487
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/38487
88
= help: add #![feature(abi_msp430_interrupt)] to the crate attributes to enable
99

1010
error: aborting due to previous error

0 commit comments

Comments
 (0)