Skip to content

Commit da99de4

Browse files
author
zhuyunxing
committed
coverage. put mcdc warnings in alphabetical order
1 parent 5bdc58a commit da99de4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_mir_build/messages.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ mir_build_deref_raw_pointer_requires_unsafe_unsafe_op_in_unsafe_fn_allowed =
9797
.note = raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
9898
.label = dereference of raw pointer
9999
100+
mir_build_exceeds_mcdc_condition_num_limit = Conditions number of the decision ({$conditions_num}) exceeds limit ({$max_conditions_num}). MCDC analysis will not count this expression.
101+
100102
mir_build_extern_static_requires_unsafe =
101103
use of extern static is unsafe and requires unsafe block
102104
.note = extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
@@ -406,5 +408,3 @@ mir_build_unused_unsafe_enclosing_block_label = because it's nested under this `
406408
mir_build_variant_defined_here = not covered
407409
408410
mir_build_wrap_suggestion = consider wrapping the function body in an unsafe block
409-
410-
mir_build_exceeds_mcdc_condition_num_limit = Conditions number of the decision ({$conditions_num}) exceeds limit ({$max_conditions_num}). MCDC analysis will not count this expression.

0 commit comments

Comments
 (0)