rust/compiler/rustc_const_eval/src
Jubilee 4f477427b8
Rollup merge of #135731 - frank-king:feature/pin-borrow, r=eholk,traviscross
Implement parsing of pinned borrows

This PR implements part of #130494.

EDIT: It introduces `&pin mut $place` and `&pin const $place` as sugars for `std::pin::pin!($place)` and its shared reference equivalent, except that `$place` will not be moved when borrowing. The borrow check will be in charge of enforcing places cannot be moved or mutably borrowed since being pinned till dropped.

### Implementation steps:
- [x] parse the `&pin mut $place` and `&pin const $place` syntaxes
- [ ] borrowck of `&pin mut|const`
- [ ] support autoref of `&pin mut|const` when needed
2025-06-24 19:45:29 -07:00
..
check_consts Rollup merge of #135731 - frank-king:feature/pin-borrow, r=eholk,traviscross 2025-06-24 19:45:29 -07:00
const_eval const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
interpret centralize -Zmin-function-alignment logic 2025-06-22 00:47:10 +02:00
util Rollup merge of #142103 - scottmcm:fieldidx-in-interp, r=oli-obk 2025-06-06 23:53:18 +02:00
errors.rs Make feature suggestion more consistent. 2025-06-18 16:52:38 +00:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00