Skip to content

Commit 46de643

Browse files
committed
---
yaml --- r: 145926 b: refs/heads/try2 c: 818ebf2 h: refs/heads/master v: v3
1 parent 1c6f630 commit 46de643

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1427
-459
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 3d75ec56931c3c6b27707e003a00385b5f01ecbc
8+
refs/heads/try2: 818ebf2ed6c6f61d0a2ec86cb104c4467b28d75e
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/doc/tutorial-ffi.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,18 +415,21 @@ fn main() {
415415

416416
Most foreign code exposes a C ABI, and Rust uses the platform's C calling convention by default when
417417
calling foreign functions. Some foreign functions, most notably the Windows API, use other calling
418-
conventions. Rust provides a way to tell the compiler which convention to use:
418+
conventions. Rust provides the `abi` attribute as a way to hint to the compiler which calling
419+
convention to use:
419420

420421
~~~~
421422
#[cfg(target_os = "win32")]
423+
#[abi = "stdcall"]
422424
#[link_name = "kernel32"]
423-
extern "stdcall" {
425+
extern {
424426
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
425427
}
426428
~~~~
427429

428-
This applies to the entire `extern` block, and must be either `"cdecl"` or
429-
`"stdcall"`. The compiler may eventually support other calling conventions.
430+
The `abi` attribute applies to a foreign module (it cannot be applied to a single function within a
431+
module), and must be either `"cdecl"` or `"stdcall"`. The compiler may eventually support other
432+
calling conventions.
430433

431434
# Interoperability with foreign code
432435

branches/try2/doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,7 +2811,7 @@ For every crate you can define a number of metadata items, such as link name, ve
28112811
You can also toggle settings that have crate-global consequences. Both mechanism
28122812
work by providing attributes in the crate root.
28132813

2814-
For example, Rust uniquely identifies crates by their link metadata, which includes
2814+
For example, Rust uniquely identifies crates by their link metadate, which includes
28152815
the link name and the version. It also hashes the filename and the symbols in a binary
28162816
based on the link metadata, allowing you to use two different versions of the same library in a crate
28172817
without conflict.
@@ -2916,7 +2916,7 @@ As well as this line into every module body:
29162916
use std::prelude::*;
29172917
~~~
29182918

2919-
The role of the `prelude` module is to re-export common definitions from `std`.
2919+
The role of the `prelude` module is to re-exports common definitions from `std`.
29202920

29212921
This allows you to use common types and functions like `Option<T>` or `println`
29222922
without needing to import them. And if you need something from `std` that's not in the prelude,

branches/try2/src/libextra/extra.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pub mod arc;
5454
pub mod comm;
5555
pub mod future;
5656
pub mod task_pool;
57+
pub mod flatpipes;
5758

5859
// Collections
5960

0 commit comments

Comments
 (0)