Skip to content

Commit dc4242d

Browse files
committed
Auto merge of rust-lang#68929 - matprec:consistent-issue-references, r=Dylan-DPC
Make issue references consistent Fixes rust-lang#62976 cc rust-lang#63008 r? @varkor because you reviewed the original pr
2 parents 0f0cdf6 + 7b55517 commit dc4242d

File tree

266 files changed

+778
-735
lines changed

Some content is hidden

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

266 files changed

+778
-735
lines changed

src/librustc/traits/error_reporting/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -702,11 +702,11 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
702702
if self.predicate_may_hold(&unit_obligation) {
703703
err.note(
704704
"the trait is implemented for `()`. \
705-
Possibly this error has been caused by changes to \
706-
Rust's type-inference algorithm \
707-
(see: https://github.com/rust-lang/rust/issues/48950 \
708-
for more info). Consider whether you meant to use the \
709-
type `()` here instead.",
705+
Possibly this error has been caused by changes to \
706+
Rust's type-inference algorithm (see issue #48950 \
707+
<https://github.com/rust-lang/rust/issues/48950> \
708+
for more information). Consider whether you meant to use \
709+
the type `()` here instead.",
710710
);
711711
}
712712
}

src/librustc/traits/error_reporting/suggestions.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,9 +1511,9 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
15111511
);
15121512
if suggest_const_in_array_repeat_expressions {
15131513
err.note(
1514-
"this array initializer can be evaluated at compile-time, for more \
1515-
information, see issue \
1516-
https://github.com/rust-lang/rust/issues/49147",
1514+
"this array initializer can be evaluated at compile-time, see issue \
1515+
#48147 <https://github.com/rust-lang/rust/issues/49147> \
1516+
for more information",
15171517
);
15181518
if tcx.sess.opts.unstable_features.is_nightly_build() {
15191519
err.help(

src/librustc/ty/error.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,9 @@ impl Trait for X {
483483
if ty.is_closure() || ty.is_generator() {
484484
db.note(
485485
"closures cannot capture themselves or take themselves as argument;\n\
486-
this error may be the result of a recent compiler bug-fix,\n\
487-
see https://github.com/rust-lang/rust/issues/46062 for more details",
486+
this error may be the result of a recent compiler bug-fix,\n\
487+
see issue #46062 <https://github.com/rust-lang/rust/issues/46062>\n\
488+
for more information",
488489
);
489490
}
490491
}

src/librustc_ast_passes/ast_validation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,8 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
996996
)
997997
.span_label(predicate.span, "not supported")
998998
.note(
999-
"for more information, see https://github.com/rust-lang/rust/issues/20041",
999+
"see issue #20041 <https://github.com/rust-lang/rust/issues/20041> \
1000+
for more information",
10001001
)
10011002
.emit();
10021003
}

src/librustc_lint/lib.rs

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -324,47 +324,58 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
324324
);
325325
store.register_removed(
326326
"hr_lifetime_in_assoc_type",
327-
"converted into hard error, see https://github.com/rust-lang/rust/issues/33685",
327+
"converted into hard error, see issue #33685 \
328+
<https://github.com/rust-lang/rust/issues/33685> for more information",
328329
);
329330
store.register_removed(
330331
"inaccessible_extern_crate",
331-
"converted into hard error, see https://github.com/rust-lang/rust/issues/36886",
332+
"converted into hard error, see issue #36886 \
333+
<https://github.com/rust-lang/rust/issues/36886> for more information",
332334
);
333335
store.register_removed(
334336
"super_or_self_in_global_path",
335-
"converted into hard error, see https://github.com/rust-lang/rust/issues/36888",
337+
"converted into hard error, see issue #36888 \
338+
<https://github.com/rust-lang/rust/issues/36888> for more information",
336339
);
337340
store.register_removed(
338341
"overlapping_inherent_impls",
339-
"converted into hard error, see https://github.com/rust-lang/rust/issues/36889",
342+
"converted into hard error, see issue #36889 \
343+
<https://github.com/rust-lang/rust/issues/36889> for more information",
340344
);
341345
store.register_removed(
342346
"illegal_floating_point_constant_pattern",
343-
"converted into hard error, see https://github.com/rust-lang/rust/issues/36890",
347+
"converted into hard error, see issue #36890 \
348+
<https://github.com/rust-lang/rust/issues/36890> for more information",
344349
);
345350
store.register_removed(
346351
"illegal_struct_or_enum_constant_pattern",
347-
"converted into hard error, see https://github.com/rust-lang/rust/issues/36891",
352+
"converted into hard error, see issue #36891 \
353+
<https://github.com/rust-lang/rust/issues/36891> for more information",
348354
);
349355
store.register_removed(
350356
"lifetime_underscore",
351-
"converted into hard error, see https://github.com/rust-lang/rust/issues/36892",
357+
"converted into hard error, see issue #36892 \
358+
<https://github.com/rust-lang/rust/issues/36892> for more information",
352359
);
353360
store.register_removed(
354361
"extra_requirement_in_impl",
355-
"converted into hard error, see https://github.com/rust-lang/rust/issues/37166",
362+
"converted into hard error, see issue #37166 \
363+
<https://github.com/rust-lang/rust/issues/37166> for more information",
356364
);
357365
store.register_removed(
358366
"legacy_imports",
359-
"converted into hard error, see https://github.com/rust-lang/rust/issues/38260",
367+
"converted into hard error, see issue #38260 \
368+
<https://github.com/rust-lang/rust/issues/38260> for more information",
360369
);
361370
store.register_removed(
362371
"coerce_never",
363-
"converted into hard error, see https://github.com/rust-lang/rust/issues/48950",
372+
"converted into hard error, see issue #48950 \
373+
<https://github.com/rust-lang/rust/issues/48950> for more information",
364374
);
365375
store.register_removed(
366376
"resolve_trait_on_defaulted_unit",
367-
"converted into hard error, see https://github.com/rust-lang/rust/issues/48950",
377+
"converted into hard error, see issue #48950 \
378+
<https://github.com/rust-lang/rust/issues/48950> for more information",
368379
);
369380
store.register_removed(
370381
"private_no_mangle_fns",
@@ -377,35 +388,43 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
377388
store.register_removed("bad_repr", "replaced with a generic attribute input check");
378389
store.register_removed(
379390
"duplicate_matcher_binding_name",
380-
"converted into hard error, see https://github.com/rust-lang/rust/issues/57742",
391+
"converted into hard error, see issue #57742 \
392+
<https://github.com/rust-lang/rust/issues/57742> for more information",
381393
);
382394
store.register_removed(
383395
"incoherent_fundamental_impls",
384-
"converted into hard error, see https://github.com/rust-lang/rust/issues/46205",
396+
"converted into hard error, see issue #46205 \
397+
<https://github.com/rust-lang/rust/issues/46205> for more information",
385398
);
386399
store.register_removed(
387400
"legacy_constructor_visibility",
388-
"converted into hard error, see https://github.com/rust-lang/rust/issues/39207",
401+
"converted into hard error, see issue #39207 \
402+
<https://github.com/rust-lang/rust/issues/39207> for more information",
389403
);
390404
store.register_removed(
391405
"legacy_directory_ownership",
392-
"converted into hard error, see https://github.com/rust-lang/rust/issues/37872",
406+
"converted into hard error, see issue #37872 \
407+
<https://github.com/rust-lang/rust/issues/37872> for more information",
393408
);
394409
store.register_removed(
395410
"safe_extern_statics",
396-
"converted into hard error, see https://github.com/rust-lang/rust/issues/36247",
411+
"converted into hard error, see issue #36247 \
412+
<https://github.com/rust-lang/rust/issues/36247> for more information",
397413
);
398414
store.register_removed(
399415
"parenthesized_params_in_types_and_modules",
400-
"converted into hard error, see https://github.com/rust-lang/rust/issues/42238",
416+
"converted into hard error, see issue #42238 \
417+
<https://github.com/rust-lang/rust/issues/42238> for more information",
401418
);
402419
store.register_removed(
403420
"duplicate_macro_exports",
404-
"converted into hard error, see https://github.com/rust-lang/rust/issues/35896",
421+
"converted into hard error, see issue #35896 \
422+
<https://github.com/rust-lang/rust/issues/35896> for more information",
405423
);
406424
store.register_removed(
407425
"nested_impl_trait",
408-
"converted into hard error, see https://github.com/rust-lang/rust/issues/59014",
426+
"converted into hard error, see issue #59014 \
427+
<https://github.com/rust-lang/rust/issues/59014> for more information",
409428
);
410429
store.register_removed("plugin_as_library", "plugins have been deprecated and retired");
411430
}

src/librustc_mir/transform/check_consts/validation.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,10 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
565565

566566
fn error_min_const_fn_violation(tcx: TyCtxt<'_>, span: Span, msg: Cow<'_, str>) {
567567
struct_span_err!(tcx.sess, span, E0723, "{}", msg)
568-
.note("for more information, see issue https://github.com/rust-lang/rust/issues/57563")
568+
.note(
569+
"see issue #57563 <https://github.com/rust-lang/rust/issues/57563> \
570+
for more information",
571+
)
569572
.help("add `#![feature(const_fn)]` to the crate attributes to enable")
570573
.emit();
571574
}
@@ -593,9 +596,9 @@ fn check_short_circuiting_in_const_local(item: &Item<'_, 'tcx>) {
593596
*span,
594597
&format!(
595598
"use of {} here does not actually short circuit due to \
596-
the const evaluator presently not being able to do control flow. \
597-
See https://github.com/rust-lang/rust/issues/49146 for more \
598-
information.",
599+
the const evaluator presently not being able to do control flow. \
600+
See issue #49146 <https://github.com/rust-lang/rust/issues/49146> \
601+
for more information.",
599602
kind
600603
),
601604
);

src/librustc_parse/lexer/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,9 @@ impl<'a> StringReader<'a> {
248248
a future release!",
249249
)
250250
.note(
251-
"for more information, see issue #42326 \
252-
<https://github.com/rust-lang/rust/issues/42326>",
251+
"see issue #42326 \
252+
<https://github.com/rust-lang/rust/issues/42326> \
253+
for more information",
253254
)
254255
.emit();
255256
None

src/librustc_parse/parser/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ impl<'a> Parser<'a> {
366366
type: `<expr>: <type>`",
367367
);
368368
err.note(
369-
"for more information, see \
370-
https://github.com/rust-lang/rust/issues/23416",
369+
"see issue #23416 <https://github.com/rust-lang/rust/issues/23416> \
370+
for more information",
371371
);
372372
}
373373
}

src/librustc_parse/parser/expr.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,10 @@ impl<'a> Parser<'a> {
12951295
`proc_macro::Literal::*_unsuffixed` for code that will desugar \
12961296
to tuple field access",
12971297
);
1298-
err.note("for more context, see https://github.com/rust-lang/rust/issues/60210");
1298+
err.note(
1299+
"see issue #60210 <https://github.com/rust-lang/rust/issues/60210> \
1300+
for more information",
1301+
);
12991302
err
13001303
} else {
13011304
self.struct_span_err(sp, &format!("suffixes on {} are invalid", kind))

src/librustc_passes/check_attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ impl CheckAttrVisitor<'tcx> {
120120
a future release!",
121121
)
122122
.note(
123-
"for more information, see issue #65833 \
124-
<https://github.com/rust-lang/rust/issues/65833>",
123+
"see issue #65833 <https://github.com/rust-lang/rust/issues/65833> \
124+
for more information",
125125
)
126126
.emit();
127127
true

0 commit comments

Comments
 (0)