about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2024-01-08`all` to `any`lcnr-5/+5
don't really know why, but it is a lot easier for me to think about cycles that way.
2024-01-08do not track root depth of cycleslcnr-37/+32
results in slightly cleaner logic while making the following commit easier
2024-01-08use doc commentslcnr-3/+3
2024-01-08Auto merge of #119693 - petrochenkov:cachemark, r=cjgillotbors-5/+14
macro_rules: Add an expansion-local cache to span marker Most tokens in a macro body typically have the same syntax context. So the cache should usually be hit. This change can either be combined with https://github.com/rust-lang/rust/pull/119689, or serve as its alternative, depending on perf results.
2024-01-08macro_rules: Add an expansion-local cache to span markerVadim Petrochenkov-5/+14
2024-01-08Auto merge of #119722 - matthiaskrgr:rollup-y6w3c9h, r=matthiaskrgrbors-597/+1499
Rollup of 5 pull requests Successful merges: - #116129 (Rewrite `pin` module documentation to clarify usage and invariants) - #119703 (Impl trait diagnostic tweaks) - #119705 (Support `~const` in associated functions in trait impls) - #119708 (Unions are not `PointerLike`) - #119711 (Delete unused makefile in tests/ui) r? `@ghost` `@rustbot` modify labels: rollup
2024-01-08Rollup merge of #119711 - Nilstrieb:makewtf, r=WaffleLapkinMatthias Krüger-8/+0
Delete unused makefile in tests/ui ??????????
2024-01-08Rollup merge of #119708 - compiler-errors:pointer-like, r=NilstriebMatthias Krüger-2/+38
Unions are not `PointerLike` I introduced the `PointerLike` trait to enforce `dyn*` coercions only from types that share the same ABI as a pointer. On top of needing to be scalar, they also should not be unions, since CTFE chokes on scalar reads for union types. Fixes #119695
2024-01-08Rollup merge of #119705 - fmease:tilde-const-assoc-fns-trait-impls, ↵Matthias Krüger-30/+65
r=compiler-errors Support `~const` in associated functions in trait impls Fixes #119700.
2024-01-08Rollup merge of #119703 - compiler-errors:impl-trait-tweaks, r=fmeaseMatthias Krüger-182/+292
Impl trait diagnostic tweaks 1. Tweak some names for `impl Trait` being used in the wrong position 2. Remove two helper functions that are no longer needed since RPITIT is stable, and which causes matches to be a bit obtuse. 3. Split and fix the part where the error notes that it's "only allowed in XX" Fixes #119629
2024-01-08Rollup merge of #116129 - fu5ha:better-pin-docs-2, r=AmanieuMatthias Krüger-375/+1104
Rewrite `pin` module documentation to clarify usage and invariants The documentation of `pin` today does not give a complete treatment of pinning from first principles, nor does it adequately help build intuition and understanding for how the different elements of the pinning story fit together. This rewrite attempts to address these in a way that makes the concept more approachable while also making the documentation more normative. This PR picks up where `@mcy` left off in #88500 (thanks to him for the original work and `@Manishearth` for mentioning it such that I originally found it). I've directly incorporated much of the feedback left on the original PR and have rewritten and changed some of the main conceits of the prose to better adhere to the feedback from the reviewers on that PR or just explain something in (hopefully) a better way.
2024-01-07Delete unused makefile in tests/uiNilstrieb-8/+0
??????????
2024-01-07Unions are not PointerLikeMichael Goulet-2/+38
2024-01-07Split note, fix const/static impl trait errorMichael Goulet-129/+257
2024-01-07effects: support ~const in assoc fns in trait implsLeón Orell Valerian Liehr-30/+65
2024-01-07linkManish Goregaokar-1/+1
2024-01-07Update library/core/src/pin.rsManish Goregaokar-1/+1
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-01-07clean up structural pinningManish Goregaokar-8/+10
2024-01-07footnote on dropping futuresManish Goregaokar-2/+5
2024-01-07validManish Goregaokar-1/+1
2024-01-07punctuation in parensManish Goregaokar-2/+2
2024-01-07Apply suggestions from code reviewManish Goregaokar-4/+4
Co-authored-by: Ralf Jung <post@ralfj.de> Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
2024-01-07Clean up guarantees wordingManish Goregaokar-15/+7
We don't need to go into that much depth at this stage
2024-01-07lifetime -> lifespan where relevant. improve docs on as_ref()Manish Goregaokar-6/+6
2024-01-07Rephrase unpin docs in terms of pinning-agnosticnessManish Goregaokar-4/+6
2024-01-07trim section on managed-box modelGray Olson-9/+4
2024-01-07improve `Pin::new_unchecked` docsGray Olson-10/+16
2024-01-07update ui testsGray Olson-5/+5
2024-01-07fix broken linkGray Olson-1/+1
2024-01-07justify motivation of `Unpin` betterGray Olson-14/+30
2024-01-07improve `Pin` and `Pin::new` docsGray Olson-23/+67
2024-01-07`Pin<P>` -> `Pin<Ptr>`Gray Olson-75/+81
2024-01-07fix typos and edit proseGray Olson-76/+85
2024-01-07edit new section for typos and better wordingGray Olson-16/+21
2024-01-07fix importsGray Olson-6/+5
2024-01-07fix typosGray Olson-4/+4
2024-01-07add section on manual owning ptr managed solution via @kpreidGray Olson-9/+36
2024-01-07improve structural Unpin + formattingGray Olson-8/+10
2024-01-07reword unpin auto impl sectionGray Olson-26/+20
2024-01-07fix link in footnoteGray Olson-3/+3
2024-01-07improve `Pin` struct docs and add examplesGray Olson-8/+89
2024-01-07improve intro and discussion of pinning as library contractGray Olson-39/+59
2024-01-07improve intro and `Unpin`-related discussionGray Olson-67/+145
2024-01-07update doubly linked list commentary and fix linksGray Olson-19/+26
2024-01-07fix one more broken linkGray Olson-1/+1
2024-01-07fix broken linksGray Olson-2/+2
2024-01-07Fix examples, finish polishingGray Olson-48/+87
2024-01-07mostly doneGray Olson-348/+359
2024-01-07Rewrite `Pin<P>` docs to clarify guarantees and usesMiguel Young de la Sota-214/+605
The documentation today does not give a complete treatment of pinning from first principles, which appropriately describes how to design types that use it, nor does it provide formal statements of the guarantees users need to be aware of. This rewrite attempts to address these in a way that makes the concept more approachable while also making the documentation more normative.
2024-01-07Inline some helpers no longer needed due to RPITIT being stableMichael Goulet-47/+29