about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/messages.ftl
AgeCommit message (Collapse)AuthorLines
2025-08-14it's not a borrow checker limitation :<lcnr-1/+1
2025-04-03move `check_opaque_type_parameter_valid`lcnr-7/+0
2025-01-31Rework "long type names" printing logicEsteban Küber-3/+0
Make it so more type-system types can be printed in a shortened version (like `Predicate`s). Centralize printing the information about the "full type name path". Make the "long type path" for the file where long types are written part of `Diag`, so that it becomes easier to keep track of it, and ensure it will always will be printed out last in the diagnostic by making its addition to the output implicit. Tweak the shortening of types in "expected/found" labels. Remove dead file `note.rs`.
2025-01-24Use short ty string for move errorsEsteban Küber-0/+3
``` error[E0382]: use of moved value: `x` --> bay.rs:14:14 | 12 | fn foo(x: D) { | - move occurs because `x` has type `(((..., ..., ..., ...), ..., ..., ...), ..., ..., ...)`, which does not implement the `Copy` trait 13 | let _a = x; | - value moved here 14 | let _b = x; //~ ERROR use of moved value | ^ value used here after move | = note: the full type name has been written to 'bay.long-type-14349227078439097973.txt' = note: consider using `--verbose` to print the full type name to the console help: consider cloning the value if the performance cost is acceptable | 13 | let _a = x.clone(); | ++++++++ ```
2025-01-08Try to explain borrow for tail expr temporary drop order change in 2024Michael Goulet-2/+3
2025-01-08run borrowck tests on BIDs and emit tail-expr-drop-order lints forDing Xiang Fei-0/+3
potential violations
2024-09-18Begin experimental support for pin reborrowingEric Holk-1/+1
This commit adds basic support for reborrowing `Pin` types in argument position. At the moment it only supports reborrowing `Pin<&mut T>` as `Pin<&mut T>` by inserting a call to `Pin::as_mut()`, and only in argument position (not as the receiver in a method call).
2024-08-10rustc_borrowck: make "implicit static" suff translatablePavel Grigorenko-0/+9
2024-08-10rustc_borrowck: make some suggestion about static lifetimes translatablePavel Grigorenko-0/+6
2024-08-10rustc_borrowck: make suggestion to move closure translatablePavel Grigorenko-0/+3
2024-08-10rustc_borrowck: make dereference suggestion translatablePavel Grigorenko-0/+3
2024-04-11Better account for `FnOnce` in move errorsEsteban Küber-0/+6
``` error[E0382]: use of moved value: `blk` --> $DIR/once-cant-call-twice-on-heap.rs:8:5 | LL | fn foo<F:FnOnce()>(blk: F) { | --- move occurs because `blk` has type `F`, which does not implement the `Copy` trait LL | blk(); | ----- `blk` moved due to this call LL | blk(); | ^^^ value used here after move | note: `FnOnce` closures can only be called once --> $DIR/once-cant-call-twice-on-heap.rs:6:10 | LL | fn foo<F:FnOnce()>(blk: F) { | ^^^^^^^^ `F` is made to be an `FnOnce` closure here LL | blk(); | ----- this value implements `FnOnce`, which causes it to be moved when called ```
2024-03-18Prevent opaque types being instantiated twice with different regions within ↵Oli Scherer-0/+6
the same function
2024-03-13Account for UnOps in borrowck messageEsteban Küber-0/+3
2024-02-20require simd_insert, simd_extract indices to be constantsRalf Jung-1/+7
2023-10-20s/generator/coroutine/Oli Scherer-21/+21
2023-09-12cleanup on messagesyukang-9/+0
2023-09-06Don't report any errors in `lower_intrinsics`. They should have been ↵Oli Scherer-0/+2
typecked before.
2023-05-25Ensure Fluent messages are in alphabetical orderclubby789-173/+173
2023-04-27Don't call await a methodMichael Goulet-0/+9
2023-04-13migrate ftl msg accroding to #103042AndyJado-12/+138
2023-03-11Simplify message pathsest31-0/+129
This makes it easier to open the messages file while developing on features. The commit was the result of automatted changes: for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done