Skip to content

Rollup of 10 pull requests #75609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Aug 16, 2020
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2303939
Don't visit foreign function bodies when lowering ast to hir
ayazhafiz Jul 10, 2020
ab4275c
fixup! Don't visit foreign function bodies when lowering ast to hir
ayazhafiz Jul 10, 2020
68aca3b
fixup! fixup! Don't visit foreign function bodies when lowering ast t…
ayazhafiz Jul 15, 2020
0c64d32
fixup! Don't visit foreign function bodies when lowering ast to hir
ayazhafiz Jul 15, 2020
d442bf7
fixup! Don't visit foreign function bodies when lowering ast to hir
ayazhafiz Jul 16, 2020
50ead68
Add regression test for issue-66768
JohnTitor Aug 5, 2020
0d0546a
Add #[track_caller] to `Session::delay_span_bug`
Aaron1011 Aug 6, 2020
3c2eb18
Use intra-doc links
denisvasilik Aug 11, 2020
c492341
Revert broken link
denisvasilik Aug 11, 2020
4c5896f
Remove intra-doc link as it resolves without reference link
denisvasilik Aug 12, 2020
7aac3e0
pin docs: add some forward references
RalfJung Aug 13, 2020
8de63eb
Bump minor version of emsdk to 1.38.47
tmiasko Aug 15, 2020
0a96e08
Switch to intra-doc links in /sys/windows/ext/{ffi,fs,process}.rs
nixphix Aug 16, 2020
8b86b28
Use LocalDefId instead of HirId for reachable_set elements.
eddyb Jul 14, 2020
5d44d54
rustc_typeck: construct {Closure,Generator}Substs more directly.
eddyb Jul 13, 2020
e1cd185
move DelaySpanBugEmitted to ty::context
mark-i-m Jul 16, 2020
8eba138
Rollup merge of #74204 - ayazhafiz:i/74120, r=eddyb
tmandry Aug 16, 2020
c518347
Rollup merge of #74314 - eddyb:closure-substs-direct, r=nikomatsakis
tmandry Aug 16, 2020
3ef2244
Rollup merge of #74346 - eddyb:reachable-defs, r=nikomatsakis
tmandry Aug 16, 2020
54c7434
Rollup merge of #74399 - mark-i-m:ty-err-4, r=eddyb
tmandry Aug 16, 2020
76b2fce
Rollup merge of #75177 - JohnTitor:broken-mir-test, r=eddyb
tmandry Aug 16, 2020
8a33c98
Rollup merge of #75223 - Aaron1011:feature/session-track-caller, r=eddyb
tmandry Aug 16, 2020
18e3799
Rollup merge of #75423 - denisvasilik:intra-doc-links-core-hint, r=dt…
tmandry Aug 16, 2020
8ba56af
Rollup merge of #75485 - RalfJung:pin, r=nagisa
tmandry Aug 16, 2020
b32df43
Rollup merge of #75569 - tmiasko:emscripten, r=tlively
tmandry Aug 16, 2020
e46b1ef
Rollup merge of #75596 - nixphix:docs/windows-ext, r=jyn514
tmandry Aug 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pin docs: add some forward references
  • Loading branch information
RalfJung committed Aug 13, 2020
commit 7aac3e0400d29c79623e7fefb43f17b6a765a326
13 changes: 10 additions & 3 deletions library/core/src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
//! as moving an object with pointers to itself will invalidate them, which could cause undefined
//! behavior.
//!
//! A [`Pin<P>`] ensures that the pointee of any pointer type `P` has a stable location in memory,
//! meaning it cannot be moved elsewhere and its memory cannot be deallocated
//! until it gets dropped. We say that the pointee is "pinned".
//! At a high level, a [`Pin<P>`] ensures that the pointee of any pointer type
//! `P` has a stable location in memory, meaning it cannot be moved elsewhere
//! and its memory cannot be deallocated until it gets dropped. We say that the
//! pointee is "pinned". Things get more subtle when discussing types that
//! combine pinned with non-pinned data; [see below](#projections-and-structural-pinning)
//! for more details.
//!
//! By default, all types in Rust are movable. Rust allows passing all types by-value,
//! and common smart-pointer types such as [`Box<T>`] and `&mut T` allow replacing and
Expand Down Expand Up @@ -61,6 +64,10 @@
//!
//! # Example: self-referential struct
//!
//! Before we go into more details to explain the guarantees and choices
//! associated with `Pin<T>`, we discuss some examples for how it might be used.
//! Feel free to [skip to where the theoretical discussion continues](#drop-guarantee).
//!
//! ```rust
//! use std::pin::Pin;
//! use std::marker::PhantomPinned;
Expand Down