Skip to content
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

Rollup of 10 pull requests #120431

Closed
wants to merge 33 commits into from
Closed
Changes from 8 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a208662
References refer to allocated objects
joshlf Oct 12, 2023
4f0192a
Update primitive_docs.rs
joshlf Oct 13, 2023
39660c4
Update library/core/src/primitive_docs.rs
joshlf Oct 13, 2023
55487e2
Update primitive_docs.rs
joshlf Oct 13, 2023
1a0309a
Update primitive_docs.rs
joshlf Nov 3, 2023
2bb3210
tidy: wrap regexes with lazy_static
klensy Jan 16, 2024
3249174
update ignore crate
klensy Jan 16, 2024
ab938b9
Improve documentation for [A]Rc::into_inner
steffahn Jan 23, 2024
797cf59
Add support for custom JSON targets when using build-std.
c272 Jan 22, 2024
c2c6e33
Update primitive_docs.rs
joshlf Jan 25, 2024
3269513
fix issue 120040
HTGAzureX1212 Jan 26, 2024
8f89e57
remove redundant call to Error::last_os_error
HTGAzureX1212 Jan 26, 2024
2241d16
fix
HTGAzureX1212 Jan 26, 2024
bdf7404
Update codegen test for LLVM 18
nikic Jan 26, 2024
40f5e68
Build Fuchsia on 8 cores instead of 16
tmandry Dec 29, 2023
53bf511
Skip building cranelift for Fuchsia
tmandry Dec 29, 2023
afd5edc
Bump Fuchsia (includes building tests)
tmandry Jan 26, 2024
e26f213
make modifications as per reviews
HTGAzureX1212 Jan 27, 2024
018bf30
add extra check for invalid handle in ReadDir::next
HTGAzureX1212 Jan 27, 2024
f5c7895
Stop using derivative in rustc_pattern_analysis
lnicola Jan 27, 2024
cda898b
Remove unnecessary unit returns in query declarations
DaniPopes Jan 27, 2024
b867c7c
Update primitive_docs.rs
joshlf Jan 27, 2024
5d8c178
Make the coroutine def id of an async closure the child of the closur…
compiler-errors Jan 27, 2024
bead151
Rollup merge of #116677 - joshlf:patch-11, r=RalfJung
matthiaskrgr Jan 27, 2024
9f07a7b
Rollup merge of #120023 - klensy:tidy-alloc, r=Mark-Simulacrum
matthiaskrgr Jan 27, 2024
52be0be
Rollup merge of #120232 - c272:json-buildstd, r=Mark-Simulacrum
matthiaskrgr Jan 27, 2024
ac8c8fe
Rollup merge of #120266 - steffahn:a_rc_into_inner_docs, r=Mark-Simul…
matthiaskrgr Jan 27, 2024
68b39be
Rollup merge of #120358 - tmandry:bump-fuchsia-8c-tests, r=Mark-Simul…
matthiaskrgr Jan 27, 2024
34f0710
Rollup merge of #120373 - HTGAzureX1212:HTGAzureX1212/issue-120040, r…
matthiaskrgr Jan 27, 2024
81ae2d4
Rollup merge of #120376 - nikic:update-codegen-test, r=cuviper
matthiaskrgr Jan 27, 2024
87f116b
Rollup merge of #120402 - compiler-errors:async-closure-def-tree, r=c…
matthiaskrgr Jan 27, 2024
561d6f0
Rollup merge of #120420 - lnicola:rm-pattern-analysis-derivative, r=N…
matthiaskrgr Jan 27, 2024
7274c3a
Rollup merge of #120425 - DaniPopes:query-default-return, r=Nilstrieb
matthiaskrgr Jan 27, 2024
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
24 changes: 24 additions & 0 deletions library/core/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,30 @@ mod prim_usize {}
/// work on references as well as they do on owned values! The implementations described here are
/// meant for generic contexts, where the final type `T` is a type parameter or otherwise not
/// locally known.
///
/// # Safety
///
/// For all types, `T: ?Sized`, and for all `t: &T` or `t: &mut T`, when such values cross an API
/// boundary, the following invariants must generally be upheld:
///
/// * `t` is aligned to `align_of_val(t)`
/// * `t` is dereferenceable for `size_of_val(t)` many bytes
///
/// If `t` points at address `a`, being "dereferenceable" for N bytes means that the memory range
/// `[a, a + N)` is all contained within a single [allocated object].
///
/// For instance, this means that unsafe code in a safe function may assume these invariants are
/// ensured of arguments passed by the caller, and it may assume that these invariants are ensured
/// of return values from any safe functions it calls. In most cases, the inverse is also true:
/// unsafe code must not violate these invariants when passing arguments to safe functions or
/// returning values from safe functions; such violations may result in undefined behavior. Where
/// exceptions to this latter requirement exist, they will be called out explicitly in documentation.
///
/// It is not decided yet whether unsafe code may violate these invariants temporarily on internal
/// data. As a consequence, unsafe code which violates these invariants temporarily on internal data
/// may become unsound in future versions of Rust depending on how this question is decided.
///
/// [allocated object]: ptr#allocated-object
#[stable(feature = "rust1", since = "1.0.0")]
mod prim_ref {}

Expand Down