Skip to content

Commit

Permalink
extern mod => extern crate
Browse files Browse the repository at this point in the history
This was previously implemented, and it just needed a snapshot to go through
  • Loading branch information
alexcrichton committed Feb 15, 2014
1 parent 359ac36 commit a41b0c2
Show file tree
Hide file tree
Showing 438 changed files with 682 additions and 685 deletions.
4 changes: 2 additions & 2 deletions src/compiletest/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#[allow(non_camel_case_types)];
#[deny(warnings)];

extern mod extra;
extern mod getopts;
extern crate extra;
extern crate getopts;

use std::os;
use std::io;
Expand Down
2 changes: 1 addition & 1 deletion src/doc/favicon.inc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico" />
<link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico" />
2 changes: 1 addition & 1 deletion src/doc/guide-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ fn main() {}
Whereas this program explicitly opts into using a particular runtime

~~~{.rust}
extern mod green;
extern crate green;
#[start]
fn start(argc: int, argv: **u8) -> int {
Expand Down
16 changes: 8 additions & 8 deletions src/doc/guide-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ later.
The basic example below illustrates this.

~~~
# extern mod sync;
# extern crate sync;
# fn main() {
# fn make_a_sandwich() {};
Expand All @@ -310,7 +310,7 @@ Here is another example showing how futures allow you to background computations
be distributed on the available cores.

~~~
# extern mod sync;
# extern crate sync;
# use std::vec;
fn partial_sum(start: uint) -> f64 {
let mut local_sum = 0f64;
Expand Down Expand Up @@ -346,7 +346,7 @@ Here is a small example showing how to use Arcs. We wish to run concurrently sev
a single large vector of floats. Each task needs the full vector to perform its duty.

~~~
# extern mod sync;
# extern crate sync;
# use std::vec;
# use std::rand;
use sync::Arc;
Expand Down Expand Up @@ -379,7 +379,7 @@ at the power given as argument and takes the inverse power of this value). The A
created by the line

~~~
# extern mod sync;
# extern crate sync;
# use sync::Arc;
# use std::vec;
# use std::rand;
Expand All @@ -392,7 +392,7 @@ let numbers_arc=Arc::new(numbers);
and a clone of it is sent to each task

~~~
# extern mod sync;
# extern crate sync;
# use sync::Arc;
# use std::vec;
# use std::rand;
Expand All @@ -409,7 +409,7 @@ copying only the wrapper and not its contents.
Each task recovers the underlying data by

~~~
# extern mod sync;
# extern crate sync;
# use sync::Arc;
# use std::vec;
# use std::rand;
Expand Down Expand Up @@ -499,7 +499,7 @@ the string in response. The child terminates when it receives `0`.
Here is the function that implements the child task:

~~~
# extern mod sync;
# extern crate sync;
# fn main() {
# use sync::DuplexStream;
fn stringifier(channel: &DuplexStream<~str, uint>) {
Expand All @@ -524,7 +524,7 @@ response itself is simply the stringified version of the received value,
Here is the code for the parent task:

~~~
# extern mod sync;
# extern crate sync;
# use std::task::spawn;
# use sync::DuplexStream;
# fn stringifier(channel: &DuplexStream<~str, uint>) {
Expand Down
4 changes: 2 additions & 2 deletions src/doc/guide-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ amount.
For example:

~~~
extern mod extra;
extern crate extra;
use std::vec;
use extra::test::BenchHarness;
Expand Down Expand Up @@ -243,7 +243,7 @@ recognize that some calculation has no external effects and remove
it entirely.

~~~
extern mod extra;
extern crate extra;
use extra::test::BenchHarness;
#[bench]
Expand Down
4 changes: 2 additions & 2 deletions src/doc/po/ja/complement-cheatsheet.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ msgstr "## タプル"
#. type: Plain text
#: src/doc/complement-cheatsheet.md:122
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"~~~\n"
"struct Foo {\n"
Expand All @@ -282,7 +282,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down
4 changes: 2 additions & 2 deletions src/doc/po/ja/guide-conditions.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ msgstr "# 関数"
#: src/doc/guide-conditions.md:262
#, fuzzy
#| msgid ""
#| "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello "
#| "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello "
#| "\" + world::explore()); } ~~~~"
msgid "fn main() {"
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down
4 changes: 2 additions & 2 deletions src/doc/po/ja/guide-container.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ msgstr "# イントロダクション"
#. type: Plain text
#: src/doc/guide-container.md:85
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"impl Iterator<int> for ZeroStream {\n"
" fn next(&mut self) -> Option<int> {\n"
Expand All @@ -85,7 +85,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down
4 changes: 2 additions & 2 deletions src/doc/po/ja/guide-ffi.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ msgstr "## 最小限の例"
#. type: Plain text
#: src/doc/guide-ffi.md:323
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"struct RustObject {\n"
" a: i32,\n"
Expand All @@ -79,7 +79,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down
32 changes: 16 additions & 16 deletions src/doc/po/ja/guide-pointers.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ msgstr ""
#: src/doc/guide-pointers.md:141 src/doc/guide-pointers.md:221
#: src/doc/guide-pointers.md:238 src/doc/guide-pointers.md:300
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"~~~rust\n"
"struct Point {\n"
Expand All @@ -164,7 +164,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down Expand Up @@ -222,7 +222,7 @@ msgstr "# データ構造"
#. type: Plain text
#: src/doc/guide-pointers.md:189
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"~~~rust\n"
"enum List<T> {\n"
Expand All @@ -232,7 +232,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down Expand Up @@ -304,7 +304,7 @@ msgstr "## マネージドボックス"
#. type: Plain text
#: src/doc/guide-pointers.md:269
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"~~~rust{.ignore}\n"
"struct Point {\n"
Expand All @@ -314,7 +314,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down Expand Up @@ -372,7 +372,7 @@ msgstr ""
#. type: Plain text
#: src/doc/guide-pointers.md:341
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"struct Point {\n"
" x: f32,\n"
Expand All @@ -381,7 +381,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand All @@ -402,7 +402,7 @@ msgstr ""
#. type: Plain text
#: src/doc/guide-pointers.md:378
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"~~~rust{.ignore}\n"
"fn main() {\n"
Expand All @@ -413,7 +413,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down Expand Up @@ -499,7 +499,7 @@ msgstr ""
#. type: Plain text
#: src/doc/guide-pointers.md:450
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"fn main() {\n"
" let x = ~5;\n"
Expand All @@ -509,7 +509,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand All @@ -530,7 +530,7 @@ msgstr ""
#. type: Plain text
#: src/doc/guide-pointers.md:463
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"fn main() {\n"
" let x = ~5;\n"
Expand All @@ -540,14 +540,14 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

#. type: Plain text
#: src/doc/guide-pointers.md:477
#, fuzzy, no-wrap
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
#| msgid "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
msgid ""
"fn main() {\n"
" let x = ~5;\n"
Expand All @@ -557,7 +557,7 @@ msgid ""
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down
10 changes: 5 additions & 5 deletions src/doc/po/ja/guide-runtime.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,21 @@ msgstr "## 他のクレートの利用"
#: src/doc/guide-runtime.md:231
#, fuzzy
#| msgid ""
#| "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello "
#| "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello "
#| "\" + world::explore()); } ~~~~"
msgid "~~~{.rust} fn main() {} ~~~"
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

#. type: Plain text
#: src/doc/guide-runtime.md:236
#, fuzzy
#| msgid "~~~~ {.ignore} let foo = 10;"
msgid "~~~{.rust} extern mod green;"
msgid "~~~{.rust} extern crate green;"
msgstr ""
"~~~~ {.ignore}\n"
"let foo = 10;"
Expand All @@ -106,13 +106,13 @@ msgstr ""
#: src/doc/guide-runtime.md:246
#, fuzzy
#| msgid ""
#| "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello "
#| "~~~~ {.ignore} // main.rs extern crate world; fn main() { println(~\"hello "
#| "\" + world::explore()); } ~~~~"
msgid "fn main() {} ~~~"
msgstr ""
"~~~~ {.ignore}\n"
"// main.rs\n"
"extern mod world;\n"
"extern crate world;\n"
"fn main() { println(~\"hello \" + world::explore()); }\n"
"~~~~"

Expand Down
2 changes: 1 addition & 1 deletion src/doc/po/ja/guide-testing.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ msgstr "## 最小限の例"
#: src/doc/guide-testing.md:131
#, fuzzy
#| msgid "~~~~ use std::task::spawn;"
msgid "~~~ extern mod extra; use std::vec;"
msgid "~~~ extern crate extra; use std::vec;"
msgstr ""
"~~~~\n"
"use std::task::spawn;"
Expand Down
Loading

0 comments on commit a41b0c2

Please sign in to comment.