Skip to content

Commit

Permalink
Fix fallout of removing quotes in crate names
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 27, 2015
1 parent 8bc3838 commit e77db16
Show file tree
Hide file tree
Showing 70 changed files with 195 additions and 204 deletions.
4 changes: 2 additions & 2 deletions src/test/auxiliary/issue-12133-dylib2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

#![crate_type = "dylib"]

extern crate "issue-12133-rlib" as a;
extern crate "issue-12133-dylib" as b;
extern crate issue_12133_rlib as a;
extern crate issue_12133_dylib as b;
4 changes: 2 additions & 2 deletions src/test/auxiliary/issue-13560-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

#![crate_type = "rlib"]

#[macro_use] #[no_link] extern crate "issue-13560-1" as t1;
#[macro_use] extern crate "issue-13560-2" as t2;
#[macro_use] #[no_link] extern crate issue_13560_1 as t1;
#[macro_use] extern crate issue_13560_2 as t2;
2 changes: 1 addition & 1 deletion src/test/auxiliary/issue-13620-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

extern crate "issue-13620-1" as crate1;
extern crate issue_13620_1 as crate1;

pub static FOO2: crate1::Foo = crate1::FOO;
2 changes: 1 addition & 1 deletion src/test/auxiliary/issue-13872-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

extern crate "issue-13872-1" as foo;
extern crate issue_13872_1 as foo;

pub use foo::A::B;
2 changes: 1 addition & 1 deletion src/test/auxiliary/issue-13872-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

extern crate "issue-13872-2" as bar;
extern crate issue_13872_2 as bar;

use bar::B;

Expand Down
2 changes: 0 additions & 2 deletions src/test/auxiliary/static-function-pointer-aux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![crate_name="static-function-pointer-aux"]

pub fn f(x: int) -> int { -x }

pub static F: fn(int) -> int = f;
Expand Down
2 changes: 0 additions & 2 deletions src/test/auxiliary/trait_default_method_xc_aux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![crate_name="trait_default_method_xc_aux"]

pub struct Something { pub x: int }

pub trait A {
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/use-meta-mismatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

// error-pattern:can't find crate for `extra`

extern crate "fake-crate" as extra;
extern crate fake_crate as extra;

fn main() { }
2 changes: 1 addition & 1 deletion src/test/compile-fail/weak-lang-item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
#![no_std]

extern crate core;
extern crate "weak-lang-items" as other;
extern crate weak_lang_items;
28 changes: 14 additions & 14 deletions src/test/debuginfo/basic-types-globals-metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@

// compile-flags:-g
// gdb-command:run
// gdb-command:whatis 'basic-types-globals-metadata::B'
// gdb-command:whatis 'basic_types_globals_metadata::B'
// gdb-check:type = bool
// gdb-command:whatis 'basic-types-globals-metadata::I'
// gdb-command:whatis 'basic_types_globals_metadata::I'
// gdb-check:type = isize
// gdb-command:whatis 'basic-types-globals-metadata::C'
// gdb-command:whatis 'basic_types_globals_metadata::C'
// gdb-check:type = char
// gdb-command:whatis 'basic-types-globals-metadata::I8'
// gdb-command:whatis 'basic_types_globals_metadata::I8'
// gdb-check:type = i8
// gdb-command:whatis 'basic-types-globals-metadata::I16'
// gdb-command:whatis 'basic_types_globals_metadata::I16'
// gdb-check:type = i16
// gdb-command:whatis 'basic-types-globals-metadata::I32'
// gdb-command:whatis 'basic_types_globals_metadata::I32'
// gdb-check:type = i32
// gdb-command:whatis 'basic-types-globals-metadata::I64'
// gdb-command:whatis 'basic_types_globals_metadata::I64'
// gdb-check:type = i64
// gdb-command:whatis 'basic-types-globals-metadata::U'
// gdb-command:whatis 'basic_types_globals_metadata::U'
// gdb-check:type = usize
// gdb-command:whatis 'basic-types-globals-metadata::U8'
// gdb-command:whatis 'basic_types_globals_metadata::U8'
// gdb-check:type = u8
// gdb-command:whatis 'basic-types-globals-metadata::U16'
// gdb-command:whatis 'basic_types_globals_metadata::U16'
// gdb-check:type = u16
// gdb-command:whatis 'basic-types-globals-metadata::U32'
// gdb-command:whatis 'basic_types_globals_metadata::U32'
// gdb-check:type = u32
// gdb-command:whatis 'basic-types-globals-metadata::U64'
// gdb-command:whatis 'basic_types_globals_metadata::U64'
// gdb-check:type = u64
// gdb-command:whatis 'basic-types-globals-metadata::F32'
// gdb-command:whatis 'basic_types_globals_metadata::F32'
// gdb-check:type = f32
// gdb-command:whatis 'basic-types-globals-metadata::F64'
// gdb-command:whatis 'basic_types_globals_metadata::F64'
// gdb-check:type = f64
// gdb-command:continue

Expand Down
28 changes: 14 additions & 14 deletions src/test/debuginfo/basic-types-globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,33 @@

// compile-flags:-g
// gdb-command:run
// gdb-command:print 'basic-types-globals::B'
// gdb-command:print 'basic_types_globals::B'
// gdb-check:$1 = false
// gdb-command:print 'basic-types-globals::I'
// gdb-command:print 'basic_types_globals::I'
// gdb-check:$2 = -1
// gdb-command:print 'basic-types-globals::C'
// gdb-command:print 'basic_types_globals::C'
// gdb-check:$3 = 97
// gdb-command:print/d 'basic-types-globals::I8'
// gdb-command:print/d 'basic_types_globals::I8'
// gdb-check:$4 = 68
// gdb-command:print 'basic-types-globals::I16'
// gdb-command:print 'basic_types_globals::I16'
// gdb-check:$5 = -16
// gdb-command:print 'basic-types-globals::I32'
// gdb-command:print 'basic_types_globals::I32'
// gdb-check:$6 = -32
// gdb-command:print 'basic-types-globals::I64'
// gdb-command:print 'basic_types_globals::I64'
// gdb-check:$7 = -64
// gdb-command:print 'basic-types-globals::U'
// gdb-command:print 'basic_types_globals::U'
// gdb-check:$8 = 1
// gdb-command:print/d 'basic-types-globals::U8'
// gdb-command:print/d 'basic_types_globals::U8'
// gdb-check:$9 = 100
// gdb-command:print 'basic-types-globals::U16'
// gdb-command:print 'basic_types_globals::U16'
// gdb-check:$10 = 16
// gdb-command:print 'basic-types-globals::U32'
// gdb-command:print 'basic_types_globals::U32'
// gdb-check:$11 = 32
// gdb-command:print 'basic-types-globals::U64'
// gdb-command:print 'basic_types_globals::U64'
// gdb-check:$12 = 64
// gdb-command:print 'basic-types-globals::F32'
// gdb-command:print 'basic_types_globals::F32'
// gdb-check:$13 = 2.5
// gdb-command:print 'basic-types-globals::F64'
// gdb-command:print 'basic_types_globals::F64'
// gdb-check:$14 = 3.5
// gdb-command:continue

Expand Down
56 changes: 28 additions & 28 deletions src/test/debuginfo/basic-types-mut-globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,64 +21,64 @@
// gdb-command:run

// Check initializers
// gdb-command:print 'basic-types-mut-globals::B'
// gdb-command:print 'basic_types_mut_globals::B'
// gdb-check:$1 = false
// gdb-command:print 'basic-types-mut-globals::I'
// gdb-command:print 'basic_types_mut_globals::I'
// gdb-check:$2 = -1
// gdb-command:print 'basic-types-mut-globals::C'
// gdb-command:print 'basic_types_mut_globals::C'
// gdb-check:$3 = 97
// gdb-command:print/d 'basic-types-mut-globals::I8'
// gdb-command:print/d 'basic_types_mut_globals::I8'
// gdb-check:$4 = 68
// gdb-command:print 'basic-types-mut-globals::I16'
// gdb-command:print 'basic_types_mut_globals::I16'
// gdb-check:$5 = -16
// gdb-command:print 'basic-types-mut-globals::I32'
// gdb-command:print 'basic_types_mut_globals::I32'
// gdb-check:$6 = -32
// gdb-command:print 'basic-types-mut-globals::I64'
// gdb-command:print 'basic_types_mut_globals::I64'
// gdb-check:$7 = -64
// gdb-command:print 'basic-types-mut-globals::U'
// gdb-command:print 'basic_types_mut_globals::U'
// gdb-check:$8 = 1
// gdb-command:print/d 'basic-types-mut-globals::U8'
// gdb-command:print/d 'basic_types_mut_globals::U8'
// gdb-check:$9 = 100
// gdb-command:print 'basic-types-mut-globals::U16'
// gdb-command:print 'basic_types_mut_globals::U16'
// gdb-check:$10 = 16
// gdb-command:print 'basic-types-mut-globals::U32'
// gdb-command:print 'basic_types_mut_globals::U32'
// gdb-check:$11 = 32
// gdb-command:print 'basic-types-mut-globals::U64'
// gdb-command:print 'basic_types_mut_globals::U64'
// gdb-check:$12 = 64
// gdb-command:print 'basic-types-mut-globals::F32'
// gdb-command:print 'basic_types_mut_globals::F32'
// gdb-check:$13 = 2.5
// gdb-command:print 'basic-types-mut-globals::F64'
// gdb-command:print 'basic_types_mut_globals::F64'
// gdb-check:$14 = 3.5
// gdb-command:continue

// Check new values
// gdb-command:print 'basic-types-mut-globals'::B
// gdb-command:print 'basic_types_mut_globals'::B
// gdb-check:$15 = true
// gdb-command:print 'basic-types-mut-globals'::I
// gdb-command:print 'basic_types_mut_globals'::I
// gdb-check:$16 = 2
// gdb-command:print 'basic-types-mut-globals'::C
// gdb-command:print 'basic_types_mut_globals'::C
// gdb-check:$17 = 102
// gdb-command:print/d 'basic-types-mut-globals'::I8
// gdb-command:print/d 'basic_types_mut_globals'::I8
// gdb-check:$18 = 78
// gdb-command:print 'basic-types-mut-globals'::I16
// gdb-command:print 'basic_types_mut_globals'::I16
// gdb-check:$19 = -26
// gdb-command:print 'basic-types-mut-globals'::I32
// gdb-command:print 'basic_types_mut_globals'::I32
// gdb-check:$20 = -12
// gdb-command:print 'basic-types-mut-globals'::I64
// gdb-command:print 'basic_types_mut_globals'::I64
// gdb-check:$21 = -54
// gdb-command:print 'basic-types-mut-globals'::U
// gdb-command:print 'basic_types_mut_globals'::U
// gdb-check:$22 = 5
// gdb-command:print/d 'basic-types-mut-globals'::U8
// gdb-command:print/d 'basic_types_mut_globals'::U8
// gdb-check:$23 = 20
// gdb-command:print 'basic-types-mut-globals'::U16
// gdb-command:print 'basic_types_mut_globals'::U16
// gdb-check:$24 = 32
// gdb-command:print 'basic-types-mut-globals'::U32
// gdb-command:print 'basic_types_mut_globals'::U32
// gdb-check:$25 = 16
// gdb-command:print 'basic-types-mut-globals'::U64
// gdb-command:print 'basic_types_mut_globals'::U64
// gdb-check:$26 = 128
// gdb-command:print 'basic-types-mut-globals'::F32
// gdb-command:print 'basic_types_mut_globals'::F32
// gdb-check:$27 = 5.75
// gdb-command:print 'basic-types-mut-globals'::F64
// gdb-command:print 'basic_types_mut_globals'::F64
// gdb-check:$28 = 9.25

#![allow(unused_variables)]
Expand Down
22 changes: 11 additions & 11 deletions src/test/debuginfo/c-style-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@

// === GDB TESTS ===================================================================================

// gdb-command:print 'c-style-enum::SINGLE_VARIANT'
// gdb-command:print 'c_style_enum::SINGLE_VARIANT'
// gdb-check:$1 = TheOnlyVariant

// gdb-command:print 'c-style-enum::AUTO_ONE'
// gdb-command:print 'c_style_enum::AUTO_ONE'
// gdb-check:$2 = One

// gdb-command:print 'c-style-enum::AUTO_TWO'
// gdb-command:print 'c_style_enum::AUTO_TWO'
// gdb-check:$3 = One

// gdb-command:print 'c-style-enum::AUTO_THREE'
// gdb-command:print 'c_style_enum::AUTO_THREE'
// gdb-check:$4 = One

// gdb-command:print 'c-style-enum::MANUAL_ONE'
// gdb-command:print 'c_style_enum::MANUAL_ONE'
// gdb-check:$5 = OneHundred

// gdb-command:print 'c-style-enum::MANUAL_TWO'
// gdb-command:print 'c_style_enum::MANUAL_TWO'
// gdb-check:$6 = OneHundred

// gdb-command:print 'c-style-enum::MANUAL_THREE'
// gdb-command:print 'c_style_enum::MANUAL_THREE'
// gdb-check:$7 = OneHundred

// gdb-command:run
Expand All @@ -59,16 +59,16 @@
// gdb-command:print single_variant
// gdb-check:$14 = TheOnlyVariant

// gdb-command:print 'c-style-enum::AUTO_TWO'
// gdb-command:print 'c_style_enum::AUTO_TWO'
// gdb-check:$15 = Two

// gdb-command:print 'c-style-enum::AUTO_THREE'
// gdb-command:print 'c_style_enum::AUTO_THREE'
// gdb-check:$16 = Three

// gdb-command:print 'c-style-enum::MANUAL_TWO'
// gdb-command:print 'c_style_enum::MANUAL_TWO'
// gdb-check:$17 = OneThousand

// gdb-command:print 'c-style-enum::MANUAL_THREE'
// gdb-command:print 'c_style_enum::MANUAL_THREE'
// gdb-check:$18 = OneMillion


Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/generic-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// lldb-check:[...]$2 = AGenericStruct<f64, i32> { key: 4.5, value: 5 }

// lldb-command:print float_int_float
// lldb-check:[...]$3 = AGenericStruct<f64, generic-struct::AGenericStruct<i32, f64>> { key: 6.5, value: AGenericStruct<i32, f64> { key: 7, value: 8.5 } }
// lldb-check:[...]$3 = AGenericStruct<f64, generic_struct::AGenericStruct<i32, f64>> { key: 6.5, value: AGenericStruct<i32, f64> { key: 7, value: 8.5 } }


#![omit_gdb_pretty_printer_section]
Expand Down
Loading

0 comments on commit e77db16

Please sign in to comment.