Skip to content

Commit 19ed027

Browse files
committed
---
yaml --- r: 145074 b: refs/heads/try2 c: 524c190 h: refs/heads/master v: v3
1 parent a0c02aa commit 19ed027

Some content is hidden

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

88 files changed

+1732
-1035
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: 6c4c5f56313b3b48dc42297ca927f2a43715e19f
8+
refs/heads/try2: 524c190565c0dbafdb7f27bc3c27c0952f32c2f9
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/doc/rust.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,8 @@ Supported traits for `deriving` are:
17171717
* `Clone` and `DeepClone`, to perform (deep) copies.
17181718
* `IterBytes`, to iterate over the bytes in a data type.
17191719
* `Rand`, to create a random instance of a data type.
1720-
* `Zero`, to create an zero (or empty) instance of a data type.
1720+
* `Default`, to create an empty instance of a data type.
1721+
* `Zero`, to create an zero instance of a numeric data type.
17211722
* `ToStr`, to convert to a string. For a type with this instance,
17221723
`obj.to_str()` has similar output as `fmt!("%?", obj)`, but it differs in that
17231724
each constituent field of the type must also implement `ToStr` and will have

branches/try2/doc/rustpkg.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ A valid workspace must contain each of the following subdirectories:
5252
rustpkg will install libraries for bar to `foo/lib/x86_64-apple-darwin/`.
5353
The libraries will have names of the form `foo/lib/x86_64-apple-darwin/libbar-[hash].dylib`,
5454
where [hash] is a hash of the package ID.
55-
* 'bin/': `rustpkg install` installs executable binaries into a target-specific subdirectory of this directory.
55+
* 'bin/': `rustpkg install` installs executable binaries into this directory.
5656

57-
For example, on a 64-bit machine running Mac OS X,
58-
if `foo` is a workspace, containing the package `bar`,
59-
rustpkg will install executables for `bar` to
60-
`foo/bin/x86_64-apple-darwin/`.
61-
The executables will have names of the form `foo/bin/x86_64-apple-darwin/bar`.
57+
For example, rustpkg will install executables for `bar` to
58+
`foo/bin`.
59+
The executables will have names of the form `foo/bin/bar`.
6260
* 'build/': `rustpkg build` stores temporary build artifacts in a target-specific subdirectory of this directory.
6361

6462
For example, on a 64-bit machine running Mac OS X,
@@ -85,6 +83,12 @@ rustpkg also interprets any dependencies on such a package ID literally
8583
Thus, `github.com/mozilla/rust#5c4cd30f80` is also a valid package ID,
8684
since git can deduce that 5c4cd30f80 refers to a revision of the desired repository.
8785

86+
A package identifier can name a subdirectory of another package.
87+
For example, if `foo` is a workspace, and `foo/src/bar/lib.rs` exists,
88+
as well as `foo/src/bar/extras/baz/lib.rs`,
89+
then both `bar` and `bar/extras/baz` are valid package identifiers
90+
in the workspace `foo`.
91+
8892
## Source files
8993

9094
rustpkg searches for four different fixed filenames in order to determine the crates to build:
@@ -140,9 +144,11 @@ but not in their `lib` or `bin` directories.
140144

141145
## install
142146

143-
`rustpkg install foo` builds the libraries and/or executables that are targets for `foo`,
144-
and then installs them either into `foo`'s `lib` and `bin` directories,
145-
or into the `lib` and `bin` subdirectories of the first entry in `RUST_PATH`.
147+
`rustpkg install foo` builds the libraries and/or executables that are targets for `foo`.
148+
If `RUST_PATH` is declared as an environment variable, then rustpkg installs the
149+
libraries and executables into the `lib` and `bin` subdirectories
150+
of the first entry in `RUST_PATH`.
151+
Otherwise, it installs them into `foo`'s `lib` and `bin` directories.
146152

147153
## test
148154

branches/try2/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2249,7 +2249,7 @@ enum ABC { A, B, C }
22492249

22502250
The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
22512251
`TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
2252-
`IterBytes`, `Rand`, `Zero`, and `ToStr`.
2252+
`IterBytes`, `Rand`, `Default`, `Zero`, and `ToStr`.
22532253

22542254
# Crates and the module system
22552255

branches/try2/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ pub fn make_test_name(config: &config, testfile: &Path) -> test::TestName {
309309
let filename = path.filename();
310310
let p = path.pop();
311311
let dir = p.filename();
312-
fmt!("%s/%s", dir.unwrap_or_default(""), filename.unwrap_or_default(""))
312+
fmt!("%s/%s", dir.unwrap_or(""), filename.unwrap_or(""))
313313
}
314314

315315
test::DynTestName(fmt!("[%s] %s",

branches/try2/src/etc/emacs/README.md

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
rust-mode: A major emacs mode for editing Rust source code
2-
==========================================================
1+
`rust-mode`: A major Emacs mode for editing Rust source code
2+
============================================================
33

4-
`rust-mode` makes editing [Rust](http://rust-lang.org) code with emacs
4+
`rust-mode` makes editing [Rust](http://rust-lang.org) code with Emacs
55
enjoyable.
66

77

88
### Manual Installation
99

10-
To install manually, check out this repository and add this to your .emacs
11-
file:
10+
To install manually, check out this repository and add this to your
11+
`.emacs` file:
1212

13-
(add-to-list 'load-path "/path/to/rust-mode/")
14-
(require 'rust-mode)
13+
```lisp
14+
(add-to-list 'load-path "/path/to/rust-mode/")
15+
(require 'rust-mode)
16+
```
1517

16-
Rust mode will automatically be associated with .rs files. To enable it
17-
explicitly, do `M-x rust-mode`.
18+
`rust-mode` will automatically be associated with `.rs` files. To enable it
19+
explicitly, do <kbd>M-x rust-mode</kbd>.
1820

19-
### package.el installation via Marmalade or MELPA
21+
### `package.el` installation via Marmalade or MELPA
2022

2123
It can be more convenient to use Emacs's package manager to handle
2224
installation for you if you use many elisp libraries. If you have
23-
package.el but haven't added Marmalade or MELPA, the community package source,
24-
yet, add this to ~/.emacs.d/init.el:
25+
`package.el` but haven't added Marmalade or MELPA, the community
26+
package source, yet, add this to `~/.emacs.d/init.el`:
2527

2628
Using Marmalade:
2729

@@ -47,32 +49,33 @@ Then do this to load the package listing:
4749
* <kbd>M-x package-refresh-contents</kbd>
4850

4951
If you use a version of Emacs prior to 24 that doesn't include
50-
package.el, you can get it from http://bit.ly/pkg-el23.
52+
`package.el`, you can get it from [here](http://bit.ly/pkg-el23).
5153

52-
If you have an older ELPA package.el installed from tromey.com, you
54+
If you have an older ELPA `package.el` installed from tromey.com, you
5355
should upgrade in order to support installation from multiple sources.
5456
The ELPA archive is deprecated and no longer accepting new packages,
5557
so the version there (1.7.1) is very outdated.
5658

57-
#### Install rust-mode
59+
#### Install `rust-mode`
5860

59-
From there you can install rust-mode or any other modes by choosing
60-
them from a list:
61+
One you have `package.el`, you can install `rust-mode` or any other
62+
modes by choosing them from a list:
6163

6264
* <kbd>M-x package-list-packages</kbd>
6365

64-
Now, to install packages, move your cursor to them and press i. This
65-
will mark the packages for installation. When you're done with
66-
marking, press x, and ELPA will install the packages for you (under
67-
~/.emacs.d/elpa/).
66+
Now, to install packages, move your cursor to them and press
67+
<kbd>i</kbd>. This will mark the packages for installation. When
68+
you're done with marking, press <kbd>x</kbd>, and ELPA will install
69+
the packages for you (under `~/.emacs.d/elpa/`).
6870

69-
* or using <kbd>M-x package-install rust-mode
71+
* or using <kbd>M-x package-install rust-mode</kbd>
7072

7173
### Tests via ERT
7274

73-
The file `rust-mode-tests.el` contains tests that can be run via ERT. You can
74-
use `run_rust_emacs_tests.sh` to run them in batch mode, if emacs is somewhere
75-
in your `$PATH`.
75+
The file `rust-mode-tests.el` contains tests that can be run via
76+
[ERT](http://www.gnu.org/software/emacs/manual/html_node/ert/index.html).
77+
You can use `run_rust_emacs_tests.sh` to run them in batch mode, if
78+
Emacs is somewhere in your `$PATH`.
7679

7780
### Known bugs
7881

0 commit comments

Comments
 (0)