Skip to content

Commit 13e4270

Browse files
committed
Unquote all crate names without underscores
1 parent 199bdcf commit 13e4270

35 files changed

+40
-40
lines changed

src/doc/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ extern crate pcre;
980980
981981
extern crate std; // equivalent to: extern crate std as std;
982982
983-
extern crate "std" as ruststd; // linking to 'std' under another name
983+
extern crate std as ruststd; // linking to 'std' under another name
984984
```
985985

986986
##### Use declarations

src/driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
#![cfg_attr(rustdoc, feature(rustdoc))]
1313

1414
#[cfg(rustdoc)]
15-
extern crate "rustdoc" as this;
15+
extern crate rustdoc as this;
1616

1717
#[cfg(rustc)]
18-
extern crate "rustc_driver" as this;
18+
extern crate rustc_driver as this;
1919

2020
fn main() { this::main() }

src/liblibc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
7777
#![allow(bad_style, raw_pointer_derive)]
7878
#![cfg_attr(target_os = "nacl", allow(unused_imports))]
79-
#[cfg(feature = "cargo-build")] extern crate "std" as core;
79+
#[cfg(feature = "cargo-build")] extern crate std as core;
8080
#[cfg(not(feature = "cargo-build"))] extern crate core;
8181

8282
#[cfg(test)] extern crate std;

src/librustc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ extern crate collections;
6565
#[macro_use] extern crate syntax;
6666
#[macro_use] #[no_link] extern crate rustc_bitflags;
6767

68-
extern crate "serialize" as rustc_serialize; // used by deriving
68+
extern crate serialize as rustc_serialize; // used by deriving
6969

7070
#[cfg(test)]
7171
extern crate test;

src/librustc_borrowck/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
// for "clarity", rename the graphviz crate to dot; graphviz within `borrowck`
3737
// refers to the borrowck-specific graphviz adapter traits.
38-
extern crate "graphviz" as dot;
38+
extern crate graphviz as dot;
3939
extern crate rustc;
4040

4141
pub use borrowck::check_crate;

src/librustc_driver/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern crate rustc_resolve;
5555
extern crate rustc_trans;
5656
extern crate rustc_typeck;
5757
extern crate serialize;
58-
extern crate "rustc_llvm" as llvm;
58+
extern crate rustc_llvm as llvm;
5959
#[macro_use] extern crate log;
6060
#[macro_use] extern crate syntax;
6161

src/librustc_trans/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extern crate libc;
5454
extern crate rustc;
5555
extern crate rustc_back;
5656
extern crate serialize;
57-
extern crate "rustc_llvm" as llvm;
57+
extern crate rustc_llvm as llvm;
5858

5959
#[macro_use] extern crate log;
6060
#[macro_use] extern crate syntax;

src/librustdoc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ extern crate rustc_lint;
5151
extern crate rustc_back;
5252
extern crate serialize;
5353
extern crate syntax;
54-
extern crate "test" as testing;
54+
extern crate test as testing;
5555
extern crate unicode;
5656
#[macro_use] extern crate log;
5757

58-
extern crate "serialize" as rustc_serialize; // used by deriving
58+
extern crate serialize as rustc_serialize; // used by deriving
5959

6060
use std::cell::RefCell;
6161
use std::collections::HashMap;

src/libstd/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,17 @@ extern crate core;
149149

150150
#[macro_use]
151151
#[macro_reexport(vec, format)]
152-
extern crate "collections" as core_collections;
152+
extern crate collections as core_collections;
153153

154-
#[allow(deprecated)] extern crate "rand" as core_rand;
154+
#[allow(deprecated)] extern crate rand as core_rand;
155155
extern crate alloc;
156156
extern crate unicode;
157157
extern crate libc;
158158

159159
#[macro_use] #[no_link] extern crate rustc_bitflags;
160160

161161
// Make std testable by not duplicating lang items. See #2912
162-
#[cfg(test)] extern crate "std" as realstd;
162+
#[cfg(test)] extern crate std as realstd;
163163
#[cfg(test)] pub use realstd::marker;
164164
#[cfg(test)] pub use realstd::ops;
165165
#[cfg(test)] pub use realstd::cmp;

src/libstd/old_io/mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl<'a> Buffer for BufReader<'a> {
397397

398398
#[cfg(test)]
399399
mod test {
400-
extern crate "test" as test_crate;
400+
extern crate test as test_crate;
401401
use old_io::{SeekSet, SeekCur, SeekEnd, Reader, Writer, Seek, Buffer};
402402
use prelude::v1::{Ok, Err, Vec, AsSlice};
403403
use prelude::v1::IteratorExt;

0 commit comments

Comments
 (0)