You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #144876 - Zalathar:rollup-jhv9rir, r=Zalathar
Rollup of 12 pull requests
Successful merges:
- #142205 (Mark `slice::swap_with_slice` unstably const)
- #144188 (`available_parallelism`: Add documentation for why we don't look at `ulimit`)
- #144322 (Add lint against dangling pointers from local variables)
- #144497 (tests: Add test for basic line-by-line stepping in a debugger)
- #144559 (Enable extract-insert-dyn.rs test on RISC-V (riscv64))
- #144667 (`AlignmentEnum` should just be `repr(usize)` now)
- #144706 (Do not give function allocations alignment in consteval and Miri.)
- #144746 (resolve: Cleanups and micro-optimizations to extern prelude)
- #144785 (Regression test for LLVM error with unsupported expression in static initializer for const pointer in array on macOS.)
- #144811 (Stylize `*-lynxos178-*` target maintainer handle to make it easier to copy/paste)
- #144848 (For "stage 1" ui-fulldeps, use the stage 1 compiler to query target info)
- #144853 (Remove unnecessary `rust_` prefixes)
Failed merges:
- #144794 (Port `#[coroutine]` to the new attribute system)
r? `@ghost`
`@rustbot` modify labels: rollup
Copy file name to clipboardExpand all lines: compiler/rustc_lint/messages.ftl
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,12 @@ lint_confusable_identifier_pair = found both `{$existing_sym}` and `{$sym}` as i
207
207
208
208
lint_custom_inner_attribute_unstable = custom inner attributes are unstable
209
209
210
+
lint_dangling_pointers_from_locals = a dangling pointer will be produced because the local variable `{$local_var_name}` will be dropped
211
+
.ret_ty = return type of the {$fn_kind} is `{$ret_ty}`
212
+
.local_var = `{$local_var_name}` is part the {$fn_kind} and will be dropped at the end of the {$fn_kind}
213
+
.created_at = dangling pointer created here
214
+
.note = pointers do not have a lifetime; after returning, the `{$local_var_ty}` will be deallocated at the end of the {$fn_kind} because nothing is referencing it as far as the type system is concerned
215
+
210
216
lint_dangling_pointers_from_temporaries = a dangling pointer will be produced because the temporary `{$ty}` will be dropped
211
217
.label_ptr = this pointer will immediately be invalid
212
218
.label_temporary = this `{$ty}` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
0 commit comments