Skip to content

Commit ee225ed

Browse files
committed
---
yaml --- r: 97405 b: refs/heads/dist-snap c: c38456a h: refs/heads/master i: 97403: c45b62e v: v3
1 parent 1f5c8b2 commit ee225ed

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: af0439b1e337915f59af568ec422caf3a0e452c9
9+
refs/heads/dist-snap: c38456a92f81442093be2a7658742ecca96d0f84
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustdoc/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn run_core (libs: HashSet<Path>, cfgs: ~[~str], path: &Path) -> (clean::Cra
8888
let ctxt = @ctxt;
8989
local_data::set(super::ctxtkey, ctxt);
9090

91-
let v = @mut RustdocVisitor::new();
91+
let mut v = RustdocVisitor::new();
9292
v.visit(&ctxt.crate);
9393

9494
(v.clean(), analysis)

branches/dist-snap/src/librustdoc/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ fn rust_input(cratefile: &str, matches: &getopts::Matches) -> Output {
267267
/// This input format purely deserializes the json output file. No passes are
268268
/// run over the deserialized output.
269269
fn json_input(input: &str) -> Result<Output, ~str> {
270-
let input = match File::open(&Path::new(input)) {
270+
let mut input = match File::open(&Path::new(input)) {
271271
Some(f) => f,
272272
None => return Err(format!("couldn't open {} for reading", input)),
273273
};
274-
match json::from_reader(@mut input as @mut io::Reader) {
274+
match json::from_reader(&mut input) {
275275
Err(s) => Err(s.to_str()),
276276
Ok(json::Object(obj)) => {
277277
let mut obj = obj;
@@ -332,6 +332,6 @@ fn json_output(crate: clean::Crate, res: ~[plugins::PluginJson], dst: Path) {
332332
json.insert(~"crate", crate_json);
333333
json.insert(~"plugins", json::Object(plugins_json));
334334

335-
let file = @mut File::create(&dst).unwrap();
336-
json::Object(json).to_writer(file as @mut io::Writer);
335+
let mut file = File::create(&dst).unwrap();
336+
json::Object(json).to_writer(&mut file);
337337
}

branches/dist-snap/src/librustdoc/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn run(input: &str, matches: &getopts::Matches) -> int {
6767
};
6868
local_data::set(super::ctxtkey, ctx);
6969

70-
let v = @mut RustdocVisitor::new();
70+
let mut v = RustdocVisitor::new();
7171
v.visit(&ctx.crate);
7272
let crate = v.clean();
7373
let (crate, _) = passes::unindent_comments(crate);

branches/dist-snap/src/librustdoc/visit_ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl RustdocVisitor {
3232
}
3333

3434
impl RustdocVisitor {
35-
pub fn visit(@mut self, crate: &ast::Crate) {
35+
pub fn visit(&mut self, crate: &ast::Crate) {
3636
self.attrs = crate.attrs.clone();
3737
fn visit_struct_def(item: &ast::item, sd: @ast::struct_def, generics:
3838
&ast::Generics) -> Struct {

0 commit comments

Comments
 (0)