Skip to content

Commit 4a6288a

Browse files
committed
---
yaml --- r: 80759 b: refs/heads/try c: ade7df4 h: refs/heads/master i: 80757: 191672b 80755: 8347d55 80751: a5d95ee v: v3
1 parent 6753604 commit 4a6288a

File tree

4 files changed

+29
-304
lines changed

4 files changed

+29
-304
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cbd1eefbd350797b783df119fed7956d7e1c74ad
5-
refs/heads/try: 462dcc8e7a44972b57cb3060a48970c0499d5dee
5+
refs/heads/try: ade7df43d667a4a10d7f893591e790961422fa68
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

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

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
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
11-
`.emacs` file:
10+
To install manually, check out this repository and add this to your .emacs
11+
file:
1212

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

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

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

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

2826
Using Marmalade:
2927

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

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

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

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

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

6462
* <kbd>M-x package-list-packages</kbd>
6563

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/`).
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/).
7068

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

7371
### Tests via ERT
7472

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`.
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`.
7976

8077
### Known bugs
8178

branches/try/src/libsyntax/ast_map.rs

Lines changed: 1 addition & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -362,85 +362,9 @@ impl Visitor<()> for Ctx {
362362
self.map_block(block)
363363
}
364364

365-
// XXX: Methods below can become default methods.
366-
367-
fn visit_mod(&mut self, module: &_mod, _: Span, _: NodeId, _: ()) {
368-
visit::walk_mod(self, module, ())
369-
}
370-
371-
fn visit_view_item(&mut self, view_item: &view_item, _: ()) {
372-
visit::walk_view_item(self, view_item, ())
373-
}
374-
375-
fn visit_foreign_item(&mut self, foreign_item: @foreign_item, _: ()) {
376-
visit::walk_foreign_item(self, foreign_item, ())
377-
}
378-
379-
fn visit_local(&mut self, local: @Local, _: ()) {
380-
visit::walk_local(self, local, ())
381-
}
382-
383-
fn visit_arm(&mut self, arm: &Arm, _: ()) {
384-
visit::walk_arm(self, arm, ())
385-
}
386-
387-
fn visit_decl(&mut self, decl: @Decl, _: ()) {
388-
visit::walk_decl(self, decl, ())
389-
}
390-
391-
fn visit_expr_post(&mut self, _: @Expr, _: ()) {
392-
// Empty!
393-
}
394-
395365
fn visit_ty(&mut self, typ: &Ty, _: ()) {
396366
visit::walk_ty(self, typ, ())
397367
}
398-
399-
fn visit_generics(&mut self, generics: &Generics, _: ()) {
400-
visit::walk_generics(self, generics, ())
401-
}
402-
403-
fn visit_fn(&mut self,
404-
function_kind: &fn_kind,
405-
function_declaration: &fn_decl,
406-
block: &Block,
407-
span: Span,
408-
node_id: NodeId,
409-
_: ()) {
410-
visit::walk_fn(self,
411-
function_kind,
412-
function_declaration,
413-
block,
414-
span,
415-
node_id,
416-
())
417-
}
418-
419-
fn visit_ty_method(&mut self, ty_method: &TypeMethod, _: ()) {
420-
visit::walk_ty_method(self, ty_method, ())
421-
}
422-
423-
fn visit_trait_method(&mut self, trait_method: &trait_method, _: ()) {
424-
visit::walk_trait_method(self, trait_method, ())
425-
}
426-
427-
fn visit_struct_def(&mut self,
428-
struct_def: @struct_def,
429-
ident: Ident,
430-
generics: &Generics,
431-
node_id: NodeId,
432-
_: ()) {
433-
visit::walk_struct_def(self,
434-
struct_def,
435-
ident,
436-
generics,
437-
node_id,
438-
())
439-
}
440-
441-
fn visit_struct_field(&mut self, struct_field: @struct_field, _: ()) {
442-
visit::walk_struct_field(self, struct_field, ())
443-
}
444368
}
445369

446370
pub fn map_crate(diag: @mut span_handler, c: &Crate) -> map {

0 commit comments

Comments
 (0)