Skip to content

Commit 8b09607

Browse files
Apply suggestions from code review
Co-authored-by: Travis Cross <[email protected]>
1 parent e3fa2da commit 8b09607

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

compiler/rustc_feature/src/unstable.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@ declare_features! (
546546
/// Allows using `#[link(kind = "link-arg", name = "...")]`
547547
/// to pass custom arguments to the linker.
548548
(unstable, link_arg_attribute, "1.76.0", Some(99427)),
549-
(unstable, loop_match, "CURRENT_RUSTC_VERSION", Some(138777)),
549+
/// Allows fused `loop`/`match` for direct intraprocedural jumps.
550+
(incomplete, loop_match, "CURRENT_RUSTC_VERSION", Some(138777)),
550551
/// Give access to additional metadata about declarative macro meta-variables.
551552
(unstable, macro_metavar_expr, "1.61.0", Some(83527)),
552553
/// Provides a way to concatenate identifiers using metavariable expressions.

compiler/rustc_mir_build/messages.ftl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,15 @@ mir_build_literal_in_range_out_of_bounds =
215215
.label = this value does not fit into the type `{$ty}` whose range is `{$min}..={$max}`
216216
217217
mir_build_loop_match_bad_rhs =
218-
this expression must be a single `match` wrapped in a labelled block
218+
this expression must be a single `match` wrapped in a labeled block
219219
220220
mir_build_loop_match_bad_statements =
221221
statements are not allowed in this position within a `loop_match`
222222
223223
mir_build_loop_match_invalid_match =
224224
invalid match on `loop_match` state
225225
.note = only matches on local variables are valid
226+
226227
mir_build_loop_match_invalid_update =
227228
invalid update of the `loop_match` state
228229
.label = the assignment must update this variable

compiler/rustc_mir_build/src/builder/expr/into.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
248248
None
249249
})
250250
}
251-
ExprKind::LoopMatch { state, region_scope, ref arms, .. } => {
251+
ExprKind::LoopMatch { state, region_scope, ref arms } => {
252252
// FIXME add diagram
253253

254254
let dropless_arena = rustc_arena::DroplessArena::default();

compiler/rustc_passes/messages.ftl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ passes_const_continue_attr =
103103
`#[const_continue]` should be applied to a break expression
104104
.label = not a break expression
105105
106-
107106
passes_const_stable_not_stable =
108107
attribute `#[rustc_const_stable]` can only be applied to functions that are declared `#[stable]`
109108
.label = attribute specified here

0 commit comments

Comments
 (0)