Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 79c760a

Browse files
author
Samy Kacimi
committedJul 6, 2019
normalize use of backticks/lowercase in compiler messages for librustc_mir
#60532 r? @alexreg
1 parent b820c76 commit 79c760a

32 files changed

+96
-96
lines changed
 

‎src/librustc_mir/build/matches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
14651465
.map(|b| GuardFrameLocal::new(b.var_id, b.binding_mode))
14661466
.collect(),
14671467
};
1468-
debug!("Entering guard building context: {:?}", guard_frame);
1468+
debug!("entering guard building context: {:?}", guard_frame);
14691469
self.guard_context.push(guard_frame);
14701470

14711471
let re_erased = tcx.lifetimes.re_erased;

‎src/librustc_mir/hair/pattern/check_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ fn check_legality_of_move_bindings(
576576
"cannot bind by-move into a pattern guard");
577577
err.span_label(p.span, "moves value into pattern guard");
578578
if cx.tcx.sess.opts.unstable_features.is_nightly_build() {
579-
err.help("add #![feature(bind_by_move_pattern_guards)] to the \
579+
err.help("add `#![feature(bind_by_move_pattern_guards)]` to the \
580580
crate attributes to enable");
581581
}
582582
err.emit();
@@ -663,7 +663,7 @@ impl<'a, 'tcx> Delegate<'tcx> for MutationChecker<'a, 'tcx> {
663663
"cannot mutably borrow in a pattern guard");
664664
err.span_label(span, "borrowed mutably in pattern guard");
665665
if self.cx.tcx.sess.opts.unstable_features.is_nightly_build() {
666-
err.help("add #![feature(bind_by_move_pattern_guards)] to the \
666+
err.help("add `#![feature(bind_by_move_pattern_guards)]` to the \
667667
crate attributes to enable");
668668
}
669669
err.emit();

‎src/librustc_mir/interpret/place.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ where
351351
if field >= len {
352352
// This can be violated because this runs during promotion on code where the
353353
// type system has not yet ensured that such things don't happen.
354-
debug!("Tried to access element {} of array/slice with length {}", field, len);
354+
debug!("tried to access element {} of array/slice with length {}", field, len);
355355
return err!(BoundsCheck { len, index: field });
356356
}
357357
stride * field

‎src/librustc_mir/monomorphize/collector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ pub fn collect_crate_mono_items(
289289
collect_roots(tcx, mode)
290290
});
291291

292-
debug!("Building mono item graph, beginning at roots");
292+
debug!("building mono item graph, beginning at roots");
293293

294294
let mut visited = MTLock::new(FxHashSet::default());
295295
let mut inlining_map = MTLock::new(InliningMap::new());
@@ -316,7 +316,7 @@ pub fn collect_crate_mono_items(
316316
// Find all non-generic items by walking the HIR. These items serve as roots to
317317
// start monomorphizing from.
318318
fn collect_roots(tcx: TyCtxt<'_>, mode: MonoItemCollectionMode) -> Vec<MonoItem<'_>> {
319-
debug!("Collecting roots");
319+
debug!("collecting roots");
320320
let mut roots = Vec::new();
321321

322322
{

‎src/librustc_mir/transform/check_unsafety.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,10 @@ fn unsafe_derive_on_repr_packed(tcx: TyCtxt<'_>, def_id: DefId) {
552552
// FIXME: when we make this a hard error, this should have its
553553
// own error code.
554554
let message = if tcx.generics_of(def_id).own_requires_monomorphization() {
555-
"#[derive] can't be used on a #[repr(packed)] struct with \
555+
"`#[derive]` can't be used on a `#[repr(packed)]` struct with \
556556
type or const parameters (error E0133)".to_string()
557557
} else {
558-
"#[derive] can't be used on a #[repr(packed)] struct that \
558+
"`#[derive]` can't be used on a `#[repr(packed)]` struct that \
559559
does not derive Copy (error E0133)".to_string()
560560
};
561561
tcx.lint_hir(SAFE_PACKED_BORROWS,

‎src/librustc_mir/transform/copy_prop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl MirPass for CopyPropagation {
4747

4848
let mut changed = false;
4949
for dest_local in body.local_decls.indices() {
50-
debug!("Considering destination local: {:?}", dest_local);
50+
debug!("considering destination local: {:?}", dest_local);
5151

5252
let action;
5353
let location;
@@ -159,7 +159,7 @@ fn eliminate_self_assignments(
159159
} else {
160160
continue;
161161
}
162-
debug!("Deleting a self-assignment for {:?}", dest_local);
162+
debug!("deleting a self-assignment for {:?}", dest_local);
163163
body.make_statement_nop(location);
164164
changed = true;
165165
}

‎src/librustc_mir/transform/inline.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ impl Inliner<'tcx> {
159159

160160
// Simplify if we inlined anything.
161161
if changed {
162-
debug!("Running simplify cfg on {:?}", self.source);
162+
debug!("running simplify cfg on {:?}", self.source);
163163
CfgSimplifier::new(caller_body).simplify();
164164
remove_dead_blocks(caller_body);
165165
}
@@ -247,7 +247,7 @@ impl Inliner<'tcx> {
247247
// need to check for first.
248248
attr::InlineAttr::Always => true,
249249
attr::InlineAttr::Never => {
250-
debug!("#[inline(never)] present - not inlining");
250+
debug!("`#[inline(never)]` present - not inlining");
251251
return false
252252
}
253253
attr::InlineAttr::Hint => true,
@@ -397,7 +397,7 @@ impl Inliner<'tcx> {
397397
match terminator.kind {
398398
// FIXME: Handle inlining of diverging calls
399399
TerminatorKind::Call { args, destination: Some(destination), cleanup, .. } => {
400-
debug!("Inlined {:?} into {:?}", callsite.callee, self.source);
400+
debug!("inlined {:?} into {:?}", callsite.callee, self.source);
401401

402402
let mut local_map = IndexVec::with_capacity(callee_body.local_decls.len());
403403
let mut scope_map = IndexVec::with_capacity(callee_body.source_scopes.len());
@@ -456,7 +456,7 @@ impl Inliner<'tcx> {
456456
}
457457

458458
let dest = if dest_needs_borrow(&destination.0) {
459-
debug!("Creating temp for return destination");
459+
debug!("creating temp for return destination");
460460
let dest = Rvalue::Ref(
461461
self.tcx.lifetimes.re_erased,
462462
BorrowKind::Mut { allow_two_phase_borrow: false },
@@ -610,7 +610,7 @@ impl Inliner<'tcx> {
610610
}
611611
}
612612

613-
debug!("Creating temp for argument {:?}", arg);
613+
debug!("creating temp for argument {:?}", arg);
614614
// Otherwise, create a temporary for the arg
615615
let arg = Rvalue::Use(arg);
616616

@@ -659,7 +659,7 @@ struct Integrator<'a, 'tcx> {
659659
impl<'a, 'tcx> Integrator<'a, 'tcx> {
660660
fn update_target(&self, tgt: BasicBlock) -> BasicBlock {
661661
let new = BasicBlock::new(tgt.index() + self.block_idx);
662-
debug!("Updating target `{:?}`, new: `{:?}`", tgt, new);
662+
debug!("updating target `{:?}`, new: `{:?}`", tgt, new);
663663
new
664664
}
665665
}

‎src/librustc_mir/transform/instcombine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub struct InstCombineVisitor<'tcx> {
3939
impl<'tcx> MutVisitor<'tcx> for InstCombineVisitor<'tcx> {
4040
fn visit_rvalue(&mut self, rvalue: &mut Rvalue<'tcx>, location: Location) {
4141
if self.optimizations.and_stars.remove(&location) {
42-
debug!("Replacing `&*`: {:?}", rvalue);
42+
debug!("replacing `&*`: {:?}", rvalue);
4343
let new_place = match *rvalue {
4444
Rvalue::Ref(_, _, Place::Projection(ref mut projection)) => {
4545
// Replace with dummy
@@ -51,7 +51,7 @@ impl<'tcx> MutVisitor<'tcx> for InstCombineVisitor<'tcx> {
5151
}
5252

5353
if let Some(constant) = self.optimizations.arrays_lengths.remove(&location) {
54-
debug!("Replacing `Len([_; N])`: {:?}", rvalue);
54+
debug!("replacing `Len([_; N])`: {:?}", rvalue);
5555
*rvalue = Rvalue::Use(Operand::Constant(box constant));
5656
}
5757

‎src/librustc_mir/transform/qualify_consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ impl MirPass for QualifyAndPromoteConstants {
15451545
diag.note("for more information, see issue \
15461546
https://github.com/rust-lang/rust/issues/57563");
15471547
diag.help(
1548-
"add #![feature(const_fn)] to the crate attributes to enable",
1548+
"add `#![feature(const_fn)]` to the crate attributes to enable",
15491549
);
15501550
diag.emit();
15511551
} else {

‎src/test/ui/bind-by-move/bind-by-move-no-guards.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0008]: cannot bind by-move into a pattern guard
44
LL | Some(z) if z.recv().unwrap() => { panic!() },
55
| ^ moves value into pattern guard
66
|
7-
= help: add #![feature(bind_by_move_pattern_guards)] to the crate attributes to enable
7+
= help: add `#![feature(bind_by_move_pattern_guards)]` to the crate attributes to enable
88

99
error: aborting due to previous error
1010

‎src/test/ui/borrowck/borrowck-mutate-in-guard.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error[E0301]: cannot mutably borrow in a pattern guard
1010
LL | Enum::A(_) if { let y = &mut x; *y = Enum::B(false); false } => 1,
1111
| ^ borrowed mutably in pattern guard
1212
|
13-
= help: add #![feature(bind_by_move_pattern_guards)] to the crate attributes to enable
13+
= help: add `#![feature(bind_by_move_pattern_guards)]` to the crate attributes to enable
1414

1515
error[E0302]: cannot assign in a pattern guard
1616
--> $DIR/borrowck-mutate-in-guard.rs:15:41

‎src/test/ui/consts/const_let_refutable.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | a + b
1111
| ^^^^^
1212
|
1313
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
14-
= help: add #![feature(const_fn)] to the crate attributes to enable
14+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1515

1616
warning[E0381]: use of possibly uninitialized variable: `a`
1717
--> $DIR/const_let_refutable.rs:4:5

‎src/test/ui/consts/min_const_fn/allow_const_fn_ptr.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const fn error(_: fn()) {}
55
| ^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error: aborting due to previous error
1111

‎src/test/ui/consts/min_const_fn/bad_const_fn_body_ice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | vec![1, 2, 3]
55
| ^^^^^^^^^^^^^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` 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

1111
error: aborting due to previous error

‎src/test/ui/consts/min_const_fn/cast_errors.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const fn unsize(x: &[u8; 3]) -> &[u8] { x }
55
| ^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error[E0723]: function pointers in const fn are unstable
1111
--> $DIR/cast_errors.rs:5:23
@@ -14,7 +14,7 @@ LL | const fn closure() -> fn() { || {} }
1414
| ^^^^
1515
|
1616
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17-
= help: add #![feature(const_fn)] to the crate attributes to enable
17+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1818

1919
error[E0723]: function pointers in const fn are unstable
2020
--> $DIR/cast_errors.rs:8:5
@@ -23,7 +23,7 @@ LL | (|| {}) as fn();
2323
| ^^^^^^^^^^^^^^^
2424
|
2525
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
26-
= help: add #![feature(const_fn)] to the crate attributes to enable
26+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
2727

2828
error[E0723]: function pointers in const fn are unstable
2929
--> $DIR/cast_errors.rs:11:28
@@ -32,7 +32,7 @@ LL | const fn reify(f: fn()) -> unsafe fn() { f }
3232
| ^^^^^^^^^^^
3333
|
3434
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
35-
= help: add #![feature(const_fn)] to the crate attributes to enable
35+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
3636

3737
error[E0723]: function pointers in const fn are unstable
3838
--> $DIR/cast_errors.rs:13:21
@@ -41,7 +41,7 @@ LL | const fn reify2() { main as unsafe fn(); }
4141
| ^^^^^^^^^^^^^^^^^^^
4242
|
4343
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
44-
= help: add #![feature(const_fn)] to the crate attributes to enable
44+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
4545

4646
error: aborting due to 5 previous errors
4747

‎src/test/ui/consts/min_const_fn/cmp_fn_pointers.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const fn cmp(x: fn(), y: fn()) -> bool {
55
| ^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error: aborting due to previous error
1111

‎src/test/ui/consts/min_const_fn/loop_ice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | loop {}
55
| ^^^^^^^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error: aborting due to previous error
1111

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

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | const fn get_mut(&mut self) -> &mut T { &mut self.0 }
1111
| ^^^^^^
1212
|
1313
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
14-
= help: add #![feature(const_fn)] to the crate attributes to enable
14+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1515

1616
error[E0493]: destructors cannot be evaluated at compile-time
1717
--> $DIR/min_const_fn.rs:44:28
@@ -26,7 +26,7 @@ LL | const fn get_mut_lt(&'a mut self) -> &mut T { &mut self.0 }
2626
| ^^^^^^
2727
|
2828
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
29-
= help: add #![feature(const_fn)] to the crate attributes to enable
29+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
3030

3131
error[E0493]: destructors cannot be evaluated at compile-time
3232
--> $DIR/min_const_fn.rs:51:27
@@ -41,7 +41,7 @@ LL | const fn get_mut_s(&mut self) -> &mut T { &mut self.0 }
4141
| ^^^^^^
4242
|
4343
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
44-
= help: add #![feature(const_fn)] to the crate attributes to enable
44+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
4545

4646
error[E0723]: mutable references in const fn are unstable
4747
--> $DIR/min_const_fn.rs:58:39
@@ -50,7 +50,7 @@ LL | const fn get_mut_sq(&mut self) -> &mut T { &mut self.0 }
5050
| ^^^^^^
5151
|
5252
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
53-
= help: add #![feature(const_fn)] to the crate attributes to enable
53+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
5454

5555
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
5656
--> $DIR/min_const_fn.rs:76:16
@@ -59,7 +59,7 @@ LL | const fn foo11<T: std::fmt::Display>(t: T) -> T { t }
5959
| ^
6060
|
6161
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
62-
= help: add #![feature(const_fn)] to the crate attributes to enable
62+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
6363

6464
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
6565
--> $DIR/min_const_fn.rs:78:18
@@ -68,7 +68,7 @@ LL | const fn foo11_2<T: Send>(t: T) -> T { t }
6868
| ^
6969
|
7070
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
71-
= help: add #![feature(const_fn)] to the crate attributes to enable
71+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
7272

7373
error[E0723]: only int, `bool` and `char` operations are stable in const fn
7474
--> $DIR/min_const_fn.rs:80:33
@@ -77,7 +77,7 @@ LL | const fn foo19(f: f32) -> f32 { f * 2.0 }
7777
| ^^^^^^^
7878
|
7979
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
80-
= help: add #![feature(const_fn)] to the crate attributes to enable
80+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
8181

8282
error[E0723]: only int, `bool` and `char` operations are stable in const fn
8383
--> $DIR/min_const_fn.rs:82:35
@@ -86,7 +86,7 @@ LL | const fn foo19_2(f: f32) -> f32 { 2.0 - f }
8686
| ^^^^^^^
8787
|
8888
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
89-
= help: add #![feature(const_fn)] to the crate attributes to enable
89+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
9090

9191
error[E0723]: only int and `bool` operations are stable in const fn
9292
--> $DIR/min_const_fn.rs:84:35
@@ -95,7 +95,7 @@ LL | const fn foo19_3(f: f32) -> f32 { -f }
9595
| ^^
9696
|
9797
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
98-
= help: add #![feature(const_fn)] to the crate attributes to enable
98+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
9999

100100
error[E0723]: only int, `bool` and `char` operations are stable in const fn
101101
--> $DIR/min_const_fn.rs:86:43
@@ -104,7 +104,7 @@ LL | const fn foo19_4(f: f32, g: f32) -> f32 { f / g }
104104
| ^^^^^
105105
|
106106
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
107-
= help: add #![feature(const_fn)] to the crate attributes to enable
107+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
108108

109109
error[E0723]: cannot access `static` items in const fn
110110
--> $DIR/min_const_fn.rs:90:27
@@ -113,7 +113,7 @@ LL | const fn foo25() -> u32 { BAR }
113113
| ^^^
114114
|
115115
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
116-
= help: add #![feature(const_fn)] to the crate attributes to enable
116+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
117117

118118
error[E0723]: cannot access `static` items in const fn
119119
--> $DIR/min_const_fn.rs:91:36
@@ -122,7 +122,7 @@ LL | const fn foo26() -> &'static u32 { &BAR }
122122
| ^^^^
123123
|
124124
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
125-
= help: add #![feature(const_fn)] to the crate attributes to enable
125+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
126126

127127
error[E0723]: casting pointers to ints is unstable in const fn
128128
--> $DIR/min_const_fn.rs:92:42
@@ -131,7 +131,7 @@ LL | const fn foo30(x: *const u32) -> usize { x as usize }
131131
| ^^^^^^^^^^
132132
|
133133
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
134-
= help: add #![feature(const_fn)] to the crate attributes to enable
134+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
135135

136136
error[E0723]: casting pointers to ints is unstable in const fn
137137
--> $DIR/min_const_fn.rs:94:63
@@ -140,7 +140,7 @@ LL | const fn foo30_with_unsafe(x: *const u32) -> usize { unsafe { x as usize }
140140
| ^^^^^^^^^^
141141
|
142142
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
143-
= help: add #![feature(const_fn)] to the crate attributes to enable
143+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
144144

145145
error[E0723]: casting pointers to ints is unstable in const fn
146146
--> $DIR/min_const_fn.rs:96:42
@@ -149,7 +149,7 @@ LL | const fn foo30_2(x: *mut u32) -> usize { x as usize }
149149
| ^^^^^^^^^^
150150
|
151151
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
152-
= help: add #![feature(const_fn)] to the crate attributes to enable
152+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
153153

154154
error[E0723]: casting pointers to ints is unstable in const fn
155155
--> $DIR/min_const_fn.rs:98:63
@@ -158,7 +158,7 @@ LL | const fn foo30_2_with_unsafe(x: *mut u32) -> usize { unsafe { x as usize }
158158
| ^^^^^^^^^^
159159
|
160160
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
161-
= help: add #![feature(const_fn)] to the crate attributes to enable
161+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
162162

163163
error[E0723]: loops and conditional expressions are not stable in const fn
164164
--> $DIR/min_const_fn.rs:100:38
@@ -167,7 +167,7 @@ LL | const fn foo30_4(b: bool) -> usize { if b { 1 } else { 42 } }
167167
| ^^^^^^^^^^^^^^^^^^^^^^
168168
|
169169
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
170-
= help: add #![feature(const_fn)] to the crate attributes to enable
170+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
171171

172172
error[E0723]: loops and conditional expressions are not stable in const fn
173173
--> $DIR/min_const_fn.rs:102:29
@@ -176,7 +176,7 @@ LL | const fn foo30_5(b: bool) { while b { } }
176176
| ^^^^^^^^^^^
177177
|
178178
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
179-
= help: add #![feature(const_fn)] to the crate attributes to enable
179+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
180180

181181
error[E0723]: loops and conditional expressions are not stable in const fn
182182
--> $DIR/min_const_fn.rs:104:44
@@ -185,7 +185,7 @@ LL | const fn foo36(a: bool, b: bool) -> bool { a && b }
185185
| ^^^^^^
186186
|
187187
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
188-
= help: add #![feature(const_fn)] to the crate attributes to enable
188+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
189189

190190
error[E0723]: loops and conditional expressions are not stable in const fn
191191
--> $DIR/min_const_fn.rs:106:44
@@ -194,7 +194,7 @@ LL | const fn foo37(a: bool, b: bool) -> bool { a || b }
194194
| ^^^^^^
195195
|
196196
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
197-
= help: add #![feature(const_fn)] to the crate attributes to enable
197+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
198198

199199
error[E0723]: mutable references in const fn are unstable
200200
--> $DIR/min_const_fn.rs:108:14
@@ -203,7 +203,7 @@ LL | const fn inc(x: &mut i32) { *x += 1 }
203203
| ^
204204
|
205205
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
206-
= help: add #![feature(const_fn)] to the crate attributes to enable
206+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
207207

208208
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
209209
--> $DIR/min_const_fn.rs:113:6
@@ -212,7 +212,7 @@ LL | impl<T: std::fmt::Debug> Foo<T> {
212212
| ^
213213
|
214214
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
215-
= help: add #![feature(const_fn)] to the crate attributes to enable
215+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
216216

217217
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
218218
--> $DIR/min_const_fn.rs:118:6
@@ -221,7 +221,7 @@ LL | impl<T: std::fmt::Debug + Sized> Foo<T> {
221221
| ^
222222
|
223223
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
224-
= help: add #![feature(const_fn)] to the crate attributes to enable
224+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
225225

226226
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
227227
--> $DIR/min_const_fn.rs:123:6
@@ -230,7 +230,7 @@ LL | impl<T: Sync + Sized> Foo<T> {
230230
| ^
231231
|
232232
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
233-
= help: add #![feature(const_fn)] to the crate attributes to enable
233+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
234234

235235
error[E0723]: `impl Trait` in const fn is unstable
236236
--> $DIR/min_const_fn.rs:129:24
@@ -239,7 +239,7 @@ LL | const fn no_rpit2() -> AlanTuring<impl std::fmt::Debug> { AlanTuring(0) }
239239
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
240240
|
241241
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
242-
= help: add #![feature(const_fn)] to the crate attributes to enable
242+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
243243

244244
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
245245
--> $DIR/min_const_fn.rs:131:34
@@ -248,7 +248,7 @@ LL | const fn no_apit2(_x: AlanTuring<impl std::fmt::Debug>) {}
248248
| ^^^^^^^^^^^^^^^^^^^^
249249
|
250250
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
251-
= help: add #![feature(const_fn)] to the crate attributes to enable
251+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
252252

253253
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
254254
--> $DIR/min_const_fn.rs:133:22
@@ -257,7 +257,7 @@ LL | const fn no_apit(_x: impl std::fmt::Debug) {}
257257
| ^^^^^^^^^^^^^^^^^^^^
258258
|
259259
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
260-
= help: add #![feature(const_fn)] to the crate attributes to enable
260+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
261261

262262
error[E0723]: `impl Trait` in const fn is unstable
263263
--> $DIR/min_const_fn.rs:134:23
@@ -266,7 +266,7 @@ LL | const fn no_rpit() -> impl std::fmt::Debug {}
266266
| ^^^^^^^^^^^^^^^^^^^^
267267
|
268268
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
269-
= help: add #![feature(const_fn)] to the crate attributes to enable
269+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
270270

271271
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
272272
--> $DIR/min_const_fn.rs:135:23
@@ -275,7 +275,7 @@ LL | const fn no_dyn_trait(_x: &dyn std::fmt::Debug) {}
275275
| ^^
276276
|
277277
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
278-
= help: add #![feature(const_fn)] to the crate attributes to enable
278+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
279279

280280
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
281281
--> $DIR/min_const_fn.rs:136:32
@@ -284,7 +284,7 @@ LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
284284
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
285285
|
286286
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
287-
= help: add #![feature(const_fn)] to the crate attributes to enable
287+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
288288

289289
warning[E0515]: cannot return reference to temporary value
290290
--> $DIR/min_const_fn.rs:136:63
@@ -306,7 +306,7 @@ LL | const fn really_no_traits_i_mean_it() { (&() as &dyn std::fmt::Debug, ()).1
306306
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
307307
|
308308
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
309-
= help: add #![feature(const_fn)] to the crate attributes to enable
309+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
310310

311311
error[E0723]: function pointers in const fn are unstable
312312
--> $DIR/min_const_fn.rs:147:21
@@ -315,7 +315,7 @@ LL | const fn no_fn_ptrs(_x: fn()) {}
315315
| ^^
316316
|
317317
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
318-
= help: add #![feature(const_fn)] to the crate attributes to enable
318+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
319319

320320
error[E0723]: function pointers in const fn are unstable
321321
--> $DIR/min_const_fn.rs:149:27
@@ -324,7 +324,7 @@ LL | const fn no_fn_ptrs2() -> fn() { fn foo() {} foo }
324324
| ^^^^
325325
|
326326
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
327-
= help: add #![feature(const_fn)] to the crate attributes to enable
327+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
328328

329329
error: aborting due to 36 previous errors
330330

‎src/test/ui/consts/min_const_fn/min_const_fn_dyn.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | x.0.field;
55
| ^^^^^^^^^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
1111
--> $DIR/min_const_fn_dyn.rs:12:66
@@ -14,7 +14,7 @@ LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
1414
| ^^
1515
|
1616
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17-
= help: add #![feature(const_fn)] to the crate attributes to enable
17+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1818

1919
warning[E0716]: temporary value dropped while borrowed
2020
--> $DIR/min_const_fn_dyn.rs:12:67

‎src/test/ui/consts/min_const_fn/min_const_fn_fn_ptr.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | x.0.field;
55
| ^^^^^^^^^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error[E0723]: function pointers in const fn are unstable
1111
--> $DIR/min_const_fn_fn_ptr.rs:14:59
@@ -14,7 +14,7 @@ LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasPtr { field }) }
1414
| ^^^^^
1515
|
1616
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17-
= help: add #![feature(const_fn)] to the crate attributes to enable
17+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1818

1919
error: aborting due to 2 previous errors
2020

‎src/test/ui/consts/min_const_fn/min_const_fn_libstd_stability.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const fn bar() -> u32 { foo() }
55
| ^^^^^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error[E0723]: can only call other `const fn` within a `const fn`, but `const foo2` is not stable as `const fn`
1111
--> $DIR/min_const_fn_libstd_stability.rs:22:26
@@ -14,7 +14,7 @@ LL | const fn bar2() -> u32 { foo2() }
1414
| ^^^^^^
1515
|
1616
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17-
= help: add #![feature(const_fn)] to the crate attributes to enable
17+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1818

1919
error[E0723]: only int, `bool` and `char` operations are stable in const fn
2020
--> $DIR/min_const_fn_libstd_stability.rs:26:26
@@ -23,7 +23,7 @@ LL | const fn bar3() -> u32 { (5f32 + 6f32) as u32 }
2323
| ^^^^^^^^^^^^^
2424
|
2525
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
26-
= help: add #![feature(const_fn)] to the crate attributes to enable
26+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
2727

2828
error[E0723]: can only call other `const fn` within a `const fn`, but `const foo2_gated` is not stable as `const fn`
2929
--> $DIR/min_const_fn_libstd_stability.rs:34:32
@@ -32,7 +32,7 @@ LL | const fn bar2_gated() -> u32 { foo2_gated() }
3232
| ^^^^^^^^^^^^
3333
|
3434
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
35-
= help: add #![feature(const_fn)] to the crate attributes to enable
35+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
3636

3737
error: aborting due to 4 previous errors
3838

‎src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const unsafe fn bar() -> u32 { unsafe { foo() } }
55
| ^^^^^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error[E0723]: can only call other `const fn` within a `const fn`, but `const foo2` is not stable as `const fn`
1111
--> $DIR/min_const_unsafe_fn_libstd_stability.rs:22:42
@@ -14,7 +14,7 @@ LL | const unsafe fn bar2() -> u32 { unsafe { foo2() } }
1414
| ^^^^^^
1515
|
1616
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17-
= help: add #![feature(const_fn)] to the crate attributes to enable
17+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1818

1919
error[E0723]: only int, `bool` and `char` operations are stable in const fn
2020
--> $DIR/min_const_unsafe_fn_libstd_stability.rs:26:33
@@ -23,7 +23,7 @@ LL | const unsafe fn bar3() -> u32 { (5f32 + 6f32) as u32 }
2323
| ^^^^^^^^^^^^^
2424
|
2525
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
26-
= help: add #![feature(const_fn)] to the crate attributes to enable
26+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
2727

2828
error[E0723]: can only call other `const fn` within a `const fn`, but `const foo2_gated` is not stable as `const fn`
2929
--> $DIR/min_const_unsafe_fn_libstd_stability.rs:34:48
@@ -32,7 +32,7 @@ LL | const unsafe fn bar2_gated() -> u32 { unsafe { foo2_gated() } }
3232
| ^^^^^^^^^^^^
3333
|
3434
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
35-
= help: add #![feature(const_fn)] to the crate attributes to enable
35+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
3636

3737
error: aborting due to 4 previous errors
3838

‎src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | const unsafe fn bar() -> u32 { foo() }
55
| ^^^^^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error[E0723]: can only call other `const fn` within a `const fn`, but `const foo2` is not stable as `const fn`
1111
--> $DIR/min_const_unsafe_fn_libstd_stability2.rs:22:33
@@ -14,7 +14,7 @@ LL | const unsafe fn bar2() -> u32 { foo2() }
1414
| ^^^^^^
1515
|
1616
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17-
= help: add #![feature(const_fn)] to the crate attributes to enable
17+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1818

1919
error[E0723]: can only call other `const fn` within a `const fn`, but `const foo2_gated` is not stable as `const fn`
2020
--> $DIR/min_const_unsafe_fn_libstd_stability2.rs:30:39
@@ -23,7 +23,7 @@ LL | const unsafe fn bar2_gated() -> u32 { foo2_gated() }
2323
| ^^^^^^^^^^^^
2424
|
2525
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
26-
= help: add #![feature(const_fn)] to the crate attributes to enable
26+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
2727

2828
error: aborting due to 3 previous errors
2929

‎src/test/ui/consts/min_const_fn/mutable_borrow.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | let b = &mut a;
55
| ^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error[E0723]: mutable references in const fn are unstable
1111
--> $DIR/mutable_borrow.rs:12:13
@@ -14,7 +14,7 @@ LL | let b = &mut a;
1414
| ^
1515
|
1616
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17-
= help: add #![feature(const_fn)] to the crate attributes to enable
17+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1818

1919
error: aborting due to 2 previous errors
2020

‎src/test/ui/consts/single_variant_match_ice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LL | match *self {
1717
| ^^^^^
1818
|
1919
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
20-
= help: add #![feature(const_fn)] to the crate attributes to enable
20+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
2121

2222
error: aborting due to 3 previous errors
2323

‎src/test/ui/derives/deriving-with-repr-packed.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
// not be aligned.
77

88
#[derive(Copy, Clone, PartialEq, Eq)]
9-
//~^ ERROR #[derive] can't be used
9+
//~^ ERROR `#[derive]` can't be used
1010
//~| hard error
11-
//~^^^ ERROR #[derive] can't be used
11+
//~^^^ ERROR `#[derive]` can't be used
1212
//~| hard error
1313
#[repr(packed)]
1414
pub struct Foo<T>(T, T, T);
1515

1616
#[derive(PartialEq, Eq)]
17-
//~^ ERROR #[derive] can't be used
17+
//~^ ERROR `#[derive]` can't be used
1818
//~| hard error
1919
#[repr(packed)]
2020
pub struct Bar(u32, u32, u32);
@@ -23,7 +23,7 @@ pub struct Bar(u32, u32, u32);
2323
struct Y(usize);
2424

2525
#[derive(PartialEq)]
26-
//~^ ERROR #[derive] can't be used
26+
//~^ ERROR `#[derive]` can't be used
2727
//~| hard error
2828
#[repr(packed)]
2929
struct X(Y);

‎src/test/ui/derives/deriving-with-repr-packed.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: #[derive] can't be used on a #[repr(packed)] struct with type or const parameters (error E0133)
1+
error: `#[derive]` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
22
--> $DIR/deriving-with-repr-packed.rs:8:16
33
|
44
LL | #[derive(Copy, Clone, PartialEq, Eq)]
@@ -12,7 +12,7 @@ LL | #![deny(safe_packed_borrows)]
1212
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1313
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
1414

15-
error: #[derive] can't be used on a #[repr(packed)] struct with type or const parameters (error E0133)
15+
error: `#[derive]` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
1616
--> $DIR/deriving-with-repr-packed.rs:8:23
1717
|
1818
LL | #[derive(Copy, Clone, PartialEq, Eq)]
@@ -21,7 +21,7 @@ LL | #[derive(Copy, Clone, PartialEq, Eq)]
2121
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2222
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
2323

24-
error: #[derive] can't be used on a #[repr(packed)] struct that does not derive Copy (error E0133)
24+
error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
2525
--> $DIR/deriving-with-repr-packed.rs:16:10
2626
|
2727
LL | #[derive(PartialEq, Eq)]
@@ -30,7 +30,7 @@ LL | #[derive(PartialEq, Eq)]
3030
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3131
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
3232

33-
error: #[derive] can't be used on a #[repr(packed)] struct that does not derive Copy (error E0133)
33+
error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
3434
--> $DIR/deriving-with-repr-packed.rs:25:10
3535
|
3636
LL | #[derive(PartialEq)]

‎src/test/ui/error-codes/E0008.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0008]: cannot bind by-move into a pattern guard
44
LL | Some(s) if s.len() == 0 => {},
55
| ^ moves value into pattern guard
66
|
7-
= help: add #![feature(bind_by_move_pattern_guards)] to the crate attributes to enable
7+
= help: add `#![feature(bind_by_move_pattern_guards)]` to the crate attributes to enable
88

99
error: aborting due to previous error
1010

‎src/test/ui/error-codes/E0301.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0301]: cannot mutably borrow in a pattern guard
44
LL | option if option.take().is_none() => {},
55
| ^^^^^^ borrowed mutably in pattern guard
66
|
7-
= help: add #![feature(bind_by_move_pattern_guards)] to the crate attributes to enable
7+
= help: add `#![feature(bind_by_move_pattern_guards)]` to the crate attributes to enable
88

99
error[E0596]: cannot borrow `option` as mutable, as it is immutable for the pattern guard
1010
--> $DIR/E0301.rs:4:19

‎src/test/ui/issues/issue-37550.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | let x = || t;
55
| ^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error: aborting due to previous error
1111

‎src/test/ui/rfc-0107-bind-by-move-pattern-guards/feature-gate.no_gate.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0008]: cannot bind by-move into a pattern guard
44
LL | A { a: v } if *v == 42 => v,
55
| ^ moves value into pattern guard
66
|
7-
= help: add #![feature(bind_by_move_pattern_guards)] to the crate attributes to enable
7+
= help: add `#![feature(bind_by_move_pattern_guards)]` to the crate attributes to enable
88

99
error: aborting due to previous error
1010

‎src/test/ui/unsafe/ranged_ints2_const.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | let y = &mut x.0;
55
| ^
66
|
77
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8-
= help: add #![feature(const_fn)] to the crate attributes to enable
8+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
99

1010
error[E0723]: mutable references in const fn are unstable
1111
--> $DIR/ranged_ints2_const.rs:18:9
@@ -14,7 +14,7 @@ LL | let y = unsafe { &mut x.0 };
1414
| ^
1515
|
1616
= note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17-
= help: add #![feature(const_fn)] to the crate attributes to enable
17+
= help: add `#![feature(const_fn)]` to the crate attributes to enable
1818

1919
error[E0133]: mutation of layout constrained field is unsafe and requires unsafe function or block
2020
--> $DIR/ranged_ints2_const.rs:11:13

0 commit comments

Comments
 (0)
Please sign in to comment.