diff options
| author | Michael Goulet <michael@errs.io> | 2025-01-18 21:25:31 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-01-18 21:25:47 +0000 |
| commit | b08f3d5bdb264aba8d81e6e13ebe498bd6a6bb12 (patch) | |
| tree | 833699ef6aa3fac697a54ef969e0e37140fc77bc /compiler/rustc_mir_transform/messages.ftl | |
| parent | 8e59cf95d540fcb341790126f524754f45a198ad (diff) | |
| download | rust-b08f3d5bdb264aba8d81e6e13ebe498bd6a6bb12.tar.gz rust-b08f3d5bdb264aba8d81e6e13ebe498bd6a6bb12.zip | |
Consolidate ad-hoc MIR lints into real pass-manager-based MIR lints
Diffstat (limited to 'compiler/rustc_mir_transform/messages.ftl')
| -rw-r--r-- | compiler/rustc_mir_transform/messages.ftl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/rustc_mir_transform/messages.ftl b/compiler/rustc_mir_transform/messages.ftl index b0c023cca82..5628f4c9381 100644 --- a/compiler/rustc_mir_transform/messages.ftl +++ b/compiler/rustc_mir_transform/messages.ftl @@ -27,6 +27,12 @@ mir_transform_force_inline = .callee = `{$callee}` defined here .note = could not be inlined due to: {$reason} +mir_transform_force_inline_attr = + `{$callee}` is incompatible with `#[rustc_force_inline]` + .attr = annotation here + .callee = `{$callee}` defined here + .note = incompatible due to: {$reason} + mir_transform_force_inline_justification = `{$callee}` is required to be inlined to: {$sym} @@ -66,6 +72,12 @@ mir_transform_unaligned_packed_ref = reference to packed field is unaligned .note_ub = creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) .help = copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) +mir_transform_unconditional_recursion = function cannot return without recursing + .label = cannot return without recursing + .help = a `loop` may express intention better if this is on purpose + +mir_transform_unconditional_recursion_call_site_label = recursive call site + mir_transform_undefined_transmute = pointers cannot be transmuted to integers during const eval .note = at compile-time, pointers do not have an integer value .note2 = avoiding this restriction via `union` or raw pointers leads to compile-time undefined behavior |
