Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
934e4d3
Remove not used mod
yui-knk Nov 28, 2018
eaeebb5
Clearer error message for dead assign
JohnGinger Dec 2, 2018
54026c1
Fix line length
JohnGinger Dec 2, 2018
4cf5702
Fix stderr files
JohnGinger Dec 3, 2018
70536d4
Fix stderr file (unused variable)
JohnGinger Dec 3, 2018
c0e3f4b
Change to give a help message
JohnGinger Dec 7, 2018
aa04285
Add lint for items deprecated in future
aheart Dec 9, 2018
562f33b
Document time of back operations of a Linked List
Dec 10, 2018
a5a3da5
bootstrap: fix edition
ljedrz Dec 7, 2018
a336228
Add test to check library traits have #[must_use] attribute
aelred Dec 10, 2018
ecc4ca5
Add #[must_use] attribute to stdlib traits
aelred Dec 10, 2018
3246f49
Add trailing newline
aelred Dec 10, 2018
c3c2de9
reject invalid external doc attributes
euclio Nov 28, 2018
7f7045f
improve diagnostics for invalid external docs
euclio Nov 28, 2018
07a3d69
Update the stdsimd submodule
alexcrichton Dec 10, 2018
3d23e55
fix install broken link
mishaker Dec 10, 2018
f8c03b6
Add lint for stlib
aheart Dec 10, 2018
30f531b
generate invalidations from 2-phase-borrow activations
nikomatsakis Dec 4, 2018
8ee2c06
adopt polonius-engine 0.6.1
nikomatsakis Dec 4, 2018
1006425
Test capacity of ZST vector
sugar700 Dec 11, 2018
5acab2d
Always set the RDRAND and RDSEED features on SGX
Dec 11, 2018
45b97f2
miri: use backtrace crate printing instead of rolling our own
RalfJung Dec 11, 2018
b17a3f2
fix rust-lang/rust issue #50583
piersfinlayson Dec 11, 2018
8e994a2
bump backtrace version to get prettier pretty-printing
RalfJung Dec 11, 2018
94c1c73
Documentation for impl From for AtomicBool and other Atomic types
phungleson Dec 11, 2018
b96186b
Add missing urls in ffi module docs
GuillaumeGomez Dec 11, 2018
517bfe0
Fix private_no_mangle_fns message grammar
turboladen Dec 12, 2018
29e7ca9
Add test of current behavior (infer free region within closure body) …
pnkfelix Dec 10, 2018
29bec2d
target: remove Box returned from get_targets
ljedrz Dec 12, 2018
8a6ca24
Allow ptr::hash to accept fat pointers
mbrubeck Dec 12, 2018
b9235ea
Account for `impl Trait` when suggesting lifetime
estebank Dec 12, 2018
ae893bb
Add short emoji status to toolstate updates
Manishearth Dec 12, 2018
bec5b66
Deduplicate unsatisfied trait bounds
estebank Dec 12, 2018
88cf2a2
Add x86_64-unknown-uefi target
Dec 13, 2018
a39f184
Use `dedup` instead of `dedup_by`
oli-obk Dec 13, 2018
9de6bee
debug logging, added conditional error message, tests updated
kevgrasso Nov 12, 2018
b6b278e
Fixes broken links
jrvidal Dec 14, 2018
42167b9
fix issue 54153 by ignoring issue-18804 test on windows/mac.
pnkfelix Dec 13, 2018
e44527a
Rollup merge of #53506 - phungleson:fix-from-docs-atomic, r=KodrAus
kennytm Dec 14, 2018
63e20b0
Rollup merge of #56203 - aheart:master, r=varkor
kennytm Dec 14, 2018
c41dcd0
Rollup merge of #56343 - yui-knk:remove_mir_stats_mod, r=nikomatsakis
kennytm Dec 14, 2018
8247686
Rollup merge of #56439 - JohnGinger:master, r=nikomatsakis
kennytm Dec 14, 2018
06eaf8b
Rollup merge of #56507 - nikomatsakis:polonius-integrate, r=MatthewJa…
kennytm Dec 14, 2018
ed5669a
Rollup merge of #56572 - kevgrasso:let_self_err_dev, r=estebank
kennytm Dec 14, 2018
f7e5aef
Rollup merge of #56600 - ljedrz:fix_edition, r=Mark-Simulacrum
kennytm Dec 14, 2018
40aba86
Rollup merge of #56672 - ccouzens:master, r=nikic
kennytm Dec 14, 2018
ccad2cf
Rollup merge of #56677 - aelred:must-use-on-traits, r=estebank
kennytm Dec 14, 2018
97d0748
Rollup merge of #56679 - euclio:external-doc-parse, r=estebank
kennytm Dec 14, 2018
8b57f97
Rollup merge of #56682 - alexcrichton:update-stdsimd, r=nikomatsakis
kennytm Dec 14, 2018
240e4e7
Rollup merge of #56691 - mishaker:fix_doc_install_broken_link, r=jona…
kennytm Dec 14, 2018
7c9baed
Rollup merge of #56710 - jethrogb:jb/sgx-target-features, r=alexcrichton
kennytm Dec 14, 2018
32e0e84
Rollup merge of #56713 - xfix:vec-test-zst-capacity, r=TimNN
kennytm Dec 14, 2018
bc8aef6
Rollup merge of #56718 - RalfJung:use-libbacktrace-printing, r=alexcr…
kennytm Dec 14, 2018
d1391e6
Rollup merge of #56725 - piersfinlayson:master, r=alexcrichton
kennytm Dec 14, 2018
a7d78d9
Rollup merge of #56731 - GuillaumeGomez:ffi-doc-urls, r=Centril
kennytm Dec 14, 2018
4c838e9
Rollup merge of #56738 - turboladen:fix-private_no_mangle_fns-message…
kennytm Dec 14, 2018
eaaee52
Rollup merge of #56746 - pnkfelix:issue-56537-add-test-of-closure-usi…
kennytm Dec 14, 2018
dccf781
Rollup merge of #56747 - ljedrz:remove_box_from_target, r=zackmdavis
kennytm Dec 14, 2018
433f083
Rollup merge of #56751 - mbrubeck:hash, r=dtolnay
kennytm Dec 14, 2018
3669769
Rollup merge of #56755 - estebank:impl-trait-lt-sugg, r=cramertj
kennytm Dec 14, 2018
9c56672
Rollup merge of #56758 - Manishearth:emoji-status-toolstate, r=kennytm
kennytm Dec 14, 2018
9d5f554
Rollup merge of #56760 - estebank:dedup-bounds, r=oli-obk
kennytm Dec 14, 2018
0362ccd
Rollup merge of #56769 - dvdhrm:uefi-target, r=alexcrichton
kennytm Dec 14, 2018
3ef52eb
Rollup merge of #56772 - pnkfelix:issue-54153-linkage-sometimes-requi…
kennytm Dec 14, 2018
38ac4ba
Rollup merge of #56808 - jrvidal:broken-links, r=kennytm
kennytm Dec 14, 2018
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
Add missing urls in ffi module docs
  • Loading branch information
GuillaumeGomez committed Dec 11, 2018
commit b96186b8a7250727c35ece5e46bd683f2276129f
28 changes: 15 additions & 13 deletions src/libstd/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,40 +72,40 @@
//!
//! * **From Rust to C:** [`CString`] represents an owned, C-friendly
//! string: it is nul-terminated, and has no internal nul characters.
//! Rust code can create a `CString` out of a normal string (provided
//! Rust code can create a [`CString`] out of a normal string (provided
//! that the string doesn't have nul characters in the middle), and
//! then use a variety of methods to obtain a raw `*mut u8` that can
//! then use a variety of methods to obtain a raw `*mut `[`u8`] that can
//! then be passed as an argument to functions which use the C
//! conventions for strings.
//!
//! * **From C to Rust:** [`CStr`] represents a borrowed C string; it
//! is what you would use to wrap a raw `*const u8` that you got from
//! a C function. A `CStr` is guaranteed to be a nul-terminated array
//! of bytes. Once you have a `CStr`, you can convert it to a Rust
//! `&str` if it's valid UTF-8, or lossily convert it by adding
//! is what you would use to wrap a raw `*const `[`u8`] that you got from
//! a C function. A [`CStr`] is guaranteed to be a nul-terminated array
//! of bytes. Once you have a [`CStr`], you can convert it to a Rust
//! [`&str`][`str`] if it's valid UTF-8, or lossily convert it by adding
//! replacement characters.
//!
//! [`OsString`] and [`OsStr`] are useful when you need to transfer
//! strings to and from the operating system itself, or when capturing
//! the output of external commands. Conversions between `OsString`,
//! `OsStr` and Rust strings work similarly to those for [`CString`]
//! the output of external commands. Conversions between [`OsString`],
//! [`OsStr`] and Rust strings work similarly to those for [`CString`]
//! and [`CStr`].
//!
//! * [`OsString`] represents an owned string in whatever
//! representation the operating system prefers. In the Rust standard
//! library, various APIs that transfer strings to/from the operating
//! system use `OsString` instead of plain strings. For example,
//! system use [`OsString`] instead of plain strings. For example,
//! [`env::var_os()`] is used to query environment variables; it
//! returns an `Option<OsString>`. If the environment variable exists
//! you will get a `Some(os_string)`, which you can *then* try to
//! returns an [`Option`]`<`[`OsString`]`>`. If the environment variable
//! exists you will get a [`Some`]`(os_string)`, which you can *then* try to
//! convert to a Rust string. This yields a [`Result<>`], so that
//! your code can detect errors in case the environment variable did
//! not in fact contain valid Unicode data.
//!
//! * [`OsStr`] represents a borrowed reference to a string in a
//! format that can be passed to the operating system. It can be
//! converted into an UTF-8 Rust string slice in a similar way to
//! `OsString`.
//! [`OsString`].
//!
//! # Conversions
//!
Expand All @@ -131,7 +131,7 @@
//! Additionally, on Windows [`OsString`] implements the
//! `std::os::windows:ffi::`[`OsStringExt`][windows.OsStringExt]
//! trait, which provides a [`from_wide`] method. The result of this
//! method is an `OsString` which can be round-tripped to a Windows
//! method is an [`OsString`] which can be round-tripped to a Windows
//! string losslessly.
//!
//! [`String`]: ../string/struct.String.html
Expand Down Expand Up @@ -160,6 +160,8 @@
//! [`collect`]: ../iter/trait.Iterator.html#method.collect
//! [windows.OsStringExt]: ../os/windows/ffi/trait.OsStringExt.html
//! [`from_wide`]: ../os/windows/ffi/trait.OsStringExt.html#tymethod.from_wide
//! [`Option`]: ../option/enum.Option.html
//! [`Some`]: ../option/enum.Option.html#variant.Some

#![stable(feature = "rust1", since = "1.0.0")]

Expand Down