Skip to content

Commit 344f68f

Browse files
committed
---
yaml --- r: 71983 b: refs/heads/dist-snap c: 8c2e5cc h: refs/heads/master i: 71981: ba71742 71979: 1836464 71975: e3d42ee 71967: 7a7b0f3 v: v3
1 parent 9cee773 commit 344f68f

File tree

319 files changed

+15859
-8930
lines changed

Some content is hidden

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

319 files changed

+15859
-8930
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10-
refs/heads/dist-snap: 2950152dc33e764567fc980c87531cbd83ff783b
10+
refs/heads/dist-snap: 8c2e5cceee6603030a1a96f92be3676d388562e3
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
.valgrindrc
5050
lexer.ml
5151
TAGS
52+
TAGS.emacs
53+
TAGS.vim
5254
version.ml
5355
version.texi
5456
/Makefile
@@ -60,6 +62,7 @@ config.mk
6062
/inst/
6163
/mingw-build/
6264
src/.DS_Store
65+
/tmp/
6366
/stage0/
6467
/dl/
6568
/stage1/
@@ -75,6 +78,8 @@ version.md
7578
rust.tex
7679
keywords.md
7780
x86_64-apple-darwin/
81+
x86_64-unknown-linux-gnu/
82+
i686-unknown-linux-gnu/
7883
doc/core/
7984
tmp.*.rs
8085
config.stamp

branches/dist-snap/.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "src/llvm"]
22
path = src/llvm
3-
url = git://github.com/brson/llvm.git
3+
url = https://github.com/brson/llvm.git
44
[submodule "src/libuv"]
55
path = src/libuv
6-
url = git://github.com/brson/libuv.git
6+
url = https://github.com/brson/libuv.git

branches/dist-snap/configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ need_cmd uname
237237
need_cmd date
238238
need_cmd tr
239239
need_cmd sed
240-
240+
need_cmd file
241241

242242
msg "inspecting environment"
243243

@@ -533,7 +533,7 @@ then
533533
LLVM_VERSION=$($LLVM_CONFIG --version)
534534

535535
case $LLVM_VERSION in
536-
(3.2svn|3.2|3.1svn|3.1|3.0svn|3.0)
536+
(3.3|3.3svn|3.2|3.2svn)
537537
msg "found ok version of LLVM: $LLVM_VERSION"
538538
;;
539539
(*)
@@ -859,7 +859,7 @@ do
859859
LDFLAGS=$LLVM_LDFLAGS
860860

861861
LLVM_FLAGS="$LLVM_TARGETS $LLVM_OPTS $LLVM_BUILD \
862-
$LLVM_HOST $LLVM_TARGET"
862+
$LLVM_HOST $LLVM_TARGET --with-python=$CFG_PYTHON"
863863

864864
msg "configuring LLVM with:"
865865
msg "$LLVM_FLAGS"

branches/dist-snap/doc/rust.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ expression context, the final namespace qualifier is omitted.
441441
Two examples of paths with type arguments:
442442

443443
~~~~
444-
# use core::hashmap::linear::LinearMap;
444+
# use core::hashmap::HashMap;
445445
# fn f() {
446446
# fn id<T:Copy>(t: T) -> T { t }
447-
type t = LinearMap<int,~str>; // Type arguments used in a type expression
447+
type t = HashMap<int,~str>; // Type arguments used in a type expression
448448
let x = id::<int>(10); // Type arguments used in a call expression
449449
# }
450450
~~~~
@@ -1653,11 +1653,12 @@ Path expressions are [lvalues](#lvalues-rvalues-and-temporaries).
16531653

16541654
### Tuple expressions
16551655

1656-
Tuples are written by enclosing two or more comma-separated
1656+
Tuples are written by enclosing one or more comma-separated
16571657
expressions in parentheses. They are used to create [tuple-typed](#tuple-types)
16581658
values.
16591659

16601660
~~~~~~~~ {.tuple}
1661+
(0,);
16611662
(0f, 4.5f);
16621663
("a", 4u, true);
16631664
~~~~~~~~
@@ -2578,7 +2579,7 @@ to the record type-constructor. The differences are as follows:
25782579

25792580
Tuple types and values are denoted by listing the types or values of their
25802581
elements, respectively, in a parenthesized, comma-separated
2581-
list. Single-element tuples are not legal; all tuples have two or more values.
2582+
list.
25822583

25832584
The members of a tuple are laid out in memory contiguously, like a record, in
25842585
order specified by the tuple type.
@@ -3251,6 +3252,28 @@ of runtime logging modules follows.
32513252
* `::rt::backtrace` Log a backtrace on task failure
32523253
* `::rt::callback` Unused
32533254

3255+
#### Logging Expressions
3256+
3257+
Rust provides several macros to log information. Here's a simple Rust program
3258+
that demonstrates all four of them:
3259+
3260+
```rust
3261+
fn main() {
3262+
error!("This is an error log")
3263+
warn!("This is a warn log")
3264+
info!("this is an info log")
3265+
debug!("This is a debug log")
3266+
}
3267+
```
3268+
3269+
These four log levels correspond to levels 1-4, as controlled by `RUST_LOG`:
3270+
3271+
```bash
3272+
$ RUST_LOG=rust=3 ./rust
3273+
rust: ~"\"This is an error log\""
3274+
rust: ~"\"This is a warn log\""
3275+
rust: ~"\"this is an info log\""
3276+
```
32543277

32553278
# Appendix: Rationales and design tradeoffs
32563279

0 commit comments

Comments
 (0)