mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 21:05:12 +00:00
Fix fallout of removing quotes in crate names
This commit is contained in:
parent
8bc3838e91
commit
e77db16afb
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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() { }
|
||||
|
@ -17,4 +17,4 @@
|
||||
#![no_std]
|
||||
|
||||
extern crate core;
|
||||
extern crate "weak-lang-items" as other;
|
||||
extern crate weak_lang_items;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)]
|
||||
|
@ -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
|
||||
@ -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
|
||||
|
||||
|
||||
|
@ -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]
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$1 = 0
|
||||
|
||||
// STRUCT EXPRESSION
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$4 = 11
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$5 = 1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$6 = 10
|
||||
@ -49,7 +49,7 @@
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$11 = 12
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$12 = 2
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$13 = 10
|
||||
@ -70,7 +70,7 @@
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$18 = 13
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$19 = 3
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$20 = 10
|
||||
@ -91,7 +91,7 @@
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$25 = 14
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$26 = 4
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$27 = 10
|
||||
@ -112,7 +112,7 @@
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$32 = 15
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$33 = 5
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$34 = 10
|
||||
@ -133,7 +133,7 @@
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$39 = 16
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$40 = 6
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$41 = 10
|
||||
@ -155,7 +155,7 @@
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$46 = 17
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$47 = 7
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$48 = 10
|
||||
@ -176,7 +176,7 @@
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$53 = 18
|
||||
// gdb-command:print 'lexical-scopes-in-block-expression::MUT_INT'
|
||||
// gdb-command:print 'lexical_scopes_in_block_expression::MUT_INT'
|
||||
// gdb-check:$54 = 8
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$55 = 10
|
||||
|
@ -14,22 +14,22 @@
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:print 'simple-struct::NO_PADDING_16'
|
||||
// gdb-command:print 'simple_struct::NO_PADDING_16'
|
||||
// gdb-check:$1 = {x = 1000, y = -1001}
|
||||
|
||||
// gdb-command:print 'simple-struct::NO_PADDING_32'
|
||||
// gdb-command:print 'simple_struct::NO_PADDING_32'
|
||||
// gdb-check:$2 = {x = 1, y = 2, z = 3}
|
||||
|
||||
// gdb-command:print 'simple-struct::NO_PADDING_64'
|
||||
// gdb-command:print 'simple_struct::NO_PADDING_64'
|
||||
// gdb-check:$3 = {x = 4, y = 5, z = 6}
|
||||
|
||||
// gdb-command:print 'simple-struct::NO_PADDING_163264'
|
||||
// gdb-command:print 'simple_struct::NO_PADDING_163264'
|
||||
// gdb-check:$4 = {a = 7, b = 8, c = 9, d = 10}
|
||||
|
||||
// gdb-command:print 'simple-struct::INTERNAL_PADDING'
|
||||
// gdb-command:print 'simple_struct::INTERNAL_PADDING'
|
||||
// gdb-check:$5 = {x = 11, y = 12}
|
||||
|
||||
// gdb-command:print 'simple-struct::PADDING_AT_END'
|
||||
// gdb-command:print 'simple_struct::PADDING_AT_END'
|
||||
// gdb-check:$6 = {x = 13, y = 14}
|
||||
|
||||
// gdb-command:run
|
||||
@ -52,22 +52,22 @@
|
||||
// gdb-command:print padding_at_end
|
||||
// gdb-check:$12 = {x = -10014, y = 10015}
|
||||
|
||||
// gdb-command:print 'simple-struct::NO_PADDING_16'
|
||||
// gdb-command:print 'simple_struct::NO_PADDING_16'
|
||||
// gdb-check:$13 = {x = 100, y = -101}
|
||||
|
||||
// gdb-command:print 'simple-struct::NO_PADDING_32'
|
||||
// gdb-command:print 'simple_struct::NO_PADDING_32'
|
||||
// gdb-check:$14 = {x = -15, y = -16, z = 17}
|
||||
|
||||
// gdb-command:print 'simple-struct::NO_PADDING_64'
|
||||
// gdb-command:print 'simple_struct::NO_PADDING_64'
|
||||
// gdb-check:$15 = {x = -18, y = 19, z = 20}
|
||||
|
||||
// gdb-command:print 'simple-struct::NO_PADDING_163264'
|
||||
// gdb-command:print 'simple_struct::NO_PADDING_163264'
|
||||
// gdb-check:$16 = {a = -21, b = 22, c = 23, d = 24}
|
||||
|
||||
// gdb-command:print 'simple-struct::INTERNAL_PADDING'
|
||||
// gdb-command:print 'simple_struct::INTERNAL_PADDING'
|
||||
// gdb-check:$17 = {x = 25, y = -26}
|
||||
|
||||
// gdb-command:print 'simple-struct::PADDING_AT_END'
|
||||
// gdb-command:print 'simple_struct::PADDING_AT_END'
|
||||
// gdb-check:$18 = {x = -27, y = 28}
|
||||
|
||||
// gdb-command:continue
|
||||
|
@ -14,21 +14,21 @@
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:print/d 'simple-tuple::NO_PADDING_8'
|
||||
// gdb-command:print/d 'simple_tuple::NO_PADDING_8'
|
||||
// gdb-check:$1 = {-50, 50}
|
||||
// gdb-command:print 'simple-tuple::NO_PADDING_16'
|
||||
// gdb-command:print 'simple_tuple::NO_PADDING_16'
|
||||
// gdb-check:$2 = {-1, 2, 3}
|
||||
// gdb-command:print 'simple-tuple::NO_PADDING_32'
|
||||
// gdb-command:print 'simple_tuple::NO_PADDING_32'
|
||||
// gdb-check:$3 = {4, 5, 6}
|
||||
// gdb-command:print 'simple-tuple::NO_PADDING_64'
|
||||
// gdb-command:print 'simple_tuple::NO_PADDING_64'
|
||||
// gdb-check:$4 = {7, 8, 9}
|
||||
|
||||
// gdb-command:print 'simple-tuple::INTERNAL_PADDING_1'
|
||||
// gdb-command:print 'simple_tuple::INTERNAL_PADDING_1'
|
||||
// gdb-check:$5 = {10, 11}
|
||||
// gdb-command:print 'simple-tuple::INTERNAL_PADDING_2'
|
||||
// gdb-command:print 'simple_tuple::INTERNAL_PADDING_2'
|
||||
// gdb-check:$6 = {12, 13, 14, 15}
|
||||
|
||||
// gdb-command:print 'simple-tuple::PADDING_AT_END'
|
||||
// gdb-command:print 'simple_tuple::PADDING_AT_END'
|
||||
// gdb-check:$7 = {16, 17}
|
||||
|
||||
// gdb-command:run
|
||||
@ -50,21 +50,21 @@
|
||||
// gdb-command:print paddingAtEnd
|
||||
// gdb-check:$14 = {15, 16}
|
||||
|
||||
// gdb-command:print/d 'simple-tuple::NO_PADDING_8'
|
||||
// gdb-command:print/d 'simple_tuple::NO_PADDING_8'
|
||||
// gdb-check:$15 = {-127, 127}
|
||||
// gdb-command:print 'simple-tuple::NO_PADDING_16'
|
||||
// gdb-command:print 'simple_tuple::NO_PADDING_16'
|
||||
// gdb-check:$16 = {-10, 10, 9}
|
||||
// gdb-command:print 'simple-tuple::NO_PADDING_32'
|
||||
// gdb-command:print 'simple_tuple::NO_PADDING_32'
|
||||
// gdb-check:$17 = {14, 15, 16}
|
||||
// gdb-command:print 'simple-tuple::NO_PADDING_64'
|
||||
// gdb-command:print 'simple_tuple::NO_PADDING_64'
|
||||
// gdb-check:$18 = {17, 18, 19}
|
||||
|
||||
// gdb-command:print 'simple-tuple::INTERNAL_PADDING_1'
|
||||
// gdb-command:print 'simple_tuple::INTERNAL_PADDING_1'
|
||||
// gdb-check:$19 = {110, 111}
|
||||
// gdb-command:print 'simple-tuple::INTERNAL_PADDING_2'
|
||||
// gdb-command:print 'simple_tuple::INTERNAL_PADDING_2'
|
||||
// gdb-check:$20 = {112, 113, 114, 115}
|
||||
|
||||
// gdb-command:print 'simple-tuple::PADDING_AT_END'
|
||||
// gdb-command:print 'simple_tuple::PADDING_AT_END'
|
||||
// gdb-check:$21 = {116, 117}
|
||||
|
||||
|
||||
|
@ -21,10 +21,10 @@
|
||||
// gdb-check:type = struct Struct1
|
||||
|
||||
// gdb-command:whatis generic_struct1
|
||||
// gdb-check:type = struct GenericStruct<type-names::Mod1::Struct2, type-names::Mod1::Mod2::Struct3>
|
||||
// gdb-check:type = struct GenericStruct<type_names::Mod1::Struct2, type_names::Mod1::Mod2::Struct3>
|
||||
|
||||
// gdb-command:whatis generic_struct2
|
||||
// gdb-check:type = struct GenericStruct<type-names::Struct1, extern "fastcall" fn(isize) -> usize>
|
||||
// gdb-check:type = struct GenericStruct<type_names::Struct1, extern "fastcall" fn(isize) -> usize>
|
||||
|
||||
// gdb-command:whatis mod_struct
|
||||
// gdb-check:type = struct Struct2
|
||||
@ -41,18 +41,18 @@
|
||||
// gdb-check:type = union Enum2
|
||||
|
||||
// gdb-command:whatis generic_enum_1
|
||||
// gdb-check:type = union Enum3<type-names::Mod1::Struct2>
|
||||
// gdb-check:type = union Enum3<type_names::Mod1::Struct2>
|
||||
|
||||
// gdb-command:whatis generic_enum_2
|
||||
// gdb-check:type = union Enum3<type-names::Struct1>
|
||||
// gdb-check:type = union Enum3<type_names::Struct1>
|
||||
|
||||
|
||||
// TUPLES
|
||||
// gdb-command:whatis tuple1
|
||||
// gdb-check:type = struct (u32, type-names::Struct1, type-names::Mod1::Mod2::Enum3<type-names::Mod1::Struct2>)
|
||||
// gdb-check:type = struct (u32, type_names::Struct1, type_names::Mod1::Mod2::Enum3<type_names::Mod1::Struct2>)
|
||||
|
||||
// gdb-command:whatis tuple2
|
||||
// gdb-check:type = struct ((type-names::Struct1, type-names::Mod1::Mod2::Struct3), type-names::Mod1::Enum2, char)
|
||||
// gdb-check:type = struct ((type_names::Struct1, type_names::Mod1::Mod2::Struct3), type_names::Mod1::Enum2, char)
|
||||
|
||||
|
||||
// BOX
|
||||
@ -60,46 +60,46 @@
|
||||
// gdb-check:type = struct (Box<f32>, i32)
|
||||
|
||||
// gdb-command:whatis box2
|
||||
// gdb-check:type = struct (Box<type-names::Mod1::Mod2::Enum3<f32>>, i32)
|
||||
// gdb-check:type = struct (Box<type_names::Mod1::Mod2::Enum3<f32>>, i32)
|
||||
|
||||
|
||||
// REFERENCES
|
||||
// gdb-command:whatis ref1
|
||||
// gdb-check:type = struct (&type-names::Struct1, i32)
|
||||
// gdb-check:type = struct (&type_names::Struct1, i32)
|
||||
|
||||
// gdb-command:whatis ref2
|
||||
// gdb-check:type = struct (&type-names::GenericStruct<char, type-names::Struct1>, i32)
|
||||
// gdb-check:type = struct (&type_names::GenericStruct<char, type_names::Struct1>, i32)
|
||||
|
||||
// gdb-command:whatis mut_ref1
|
||||
// gdb-check:type = struct (&mut type-names::Struct1, i32)
|
||||
// gdb-check:type = struct (&mut type_names::Struct1, i32)
|
||||
|
||||
// gdb-command:whatis mut_ref2
|
||||
// gdb-check:type = struct (&mut type-names::GenericStruct<type-names::Mod1::Enum2, f64>, i32)
|
||||
// gdb-check:type = struct (&mut type_names::GenericStruct<type_names::Mod1::Enum2, f64>, i32)
|
||||
|
||||
|
||||
// RAW POINTERS
|
||||
// gdb-command:whatis mut_ptr1
|
||||
// gdb-check:type = struct (*mut type-names::Struct1, isize)
|
||||
// gdb-check:type = struct (*mut type_names::Struct1, isize)
|
||||
|
||||
// gdb-command:whatis mut_ptr2
|
||||
// gdb-check:type = struct (*mut isize, isize)
|
||||
|
||||
// gdb-command:whatis mut_ptr3
|
||||
// gdb-check:type = struct (*mut type-names::Mod1::Mod2::Enum3<type-names::Struct1>, isize)
|
||||
// gdb-check:type = struct (*mut type_names::Mod1::Mod2::Enum3<type_names::Struct1>, isize)
|
||||
|
||||
// gdb-command:whatis const_ptr1
|
||||
// gdb-check:type = struct (*const type-names::Struct1, isize)
|
||||
// gdb-check:type = struct (*const type_names::Struct1, isize)
|
||||
|
||||
// gdb-command:whatis const_ptr2
|
||||
// gdb-check:type = struct (*const isize, isize)
|
||||
|
||||
// gdb-command:whatis const_ptr3
|
||||
// gdb-check:type = struct (*const type-names::Mod1::Mod2::Enum3<type-names::Struct1>, isize)
|
||||
// gdb-check:type = struct (*const type_names::Mod1::Mod2::Enum3<type_names::Struct1>, isize)
|
||||
|
||||
|
||||
// VECTORS
|
||||
// gdb-command:whatis fixed_size_vec1
|
||||
// gdb-check:type = struct ([type-names::Struct1; 3], i16)
|
||||
// gdb-check:type = struct ([type_names::Struct1; 3], i16)
|
||||
|
||||
// gdb-command:whatis fixed_size_vec2
|
||||
// gdb-check:type = struct ([usize; 3], i16)
|
||||
@ -108,7 +108,7 @@
|
||||
// gdb-check:type = struct &[usize]
|
||||
|
||||
// gdb-command:whatis slice2
|
||||
// gdb-check:type = struct &[type-names::Mod1::Enum2]
|
||||
// gdb-check:type = struct &[type_names::Mod1::Enum2]
|
||||
|
||||
|
||||
// TRAITS
|
||||
@ -122,18 +122,18 @@
|
||||
// gdb-check:type = struct &mut Trait1
|
||||
|
||||
// gdb-command:whatis generic_box_trait
|
||||
// gdb-check:type = struct Box<Trait2<i32, type-names::Mod1::Struct2>>
|
||||
// gdb-check:type = struct Box<Trait2<i32, type_names::Mod1::Struct2>>
|
||||
|
||||
// gdb-command:whatis generic_ref_trait
|
||||
// gdb-check:type = struct &Trait2<type-names::Struct1, type-names::Struct1>
|
||||
// gdb-check:type = struct &Trait2<type_names::Struct1, type_names::Struct1>
|
||||
|
||||
// gdb-command:whatis generic_mut_ref_trait
|
||||
// gdb-check:type = struct &mut Trait2<type-names::Mod1::Mod2::Struct3, type-names::GenericStruct<usize, isize>>
|
||||
// gdb-check:type = struct &mut Trait2<type_names::Mod1::Mod2::Struct3, type_names::GenericStruct<usize, isize>>
|
||||
|
||||
|
||||
// BARE FUNCTIONS
|
||||
// gdb-command:whatis rust_fn
|
||||
// gdb-check:type = struct (fn(core::option::Option<isize>, core::option::Option<&type-names::Mod1::Struct2>), usize)
|
||||
// gdb-check:type = struct (fn(core::option::Option<isize>, core::option::Option<&type_names::Mod1::Struct2>), usize)
|
||||
|
||||
// gdb-command:whatis extern_c_fn
|
||||
// gdb-check:type = struct (extern "C" fn(isize), usize)
|
||||
@ -148,10 +148,10 @@
|
||||
// gdb-check:type = struct (fn(f64) -> usize, usize)
|
||||
|
||||
// gdb-command:whatis extern_c_fn_with_return_value
|
||||
// gdb-check:type = struct (extern "C" fn() -> type-names::Struct1, usize)
|
||||
// gdb-check:type = struct (extern "C" fn() -> type_names::Struct1, usize)
|
||||
|
||||
// gdb-command:whatis unsafe_fn_with_return_value
|
||||
// gdb-check:type = struct (unsafe fn(type-names::GenericStruct<u16, u8>) -> type-names::Mod1::Struct2, usize)
|
||||
// gdb-check:type = struct (unsafe fn(type_names::GenericStruct<u16, u8>) -> type_names::Mod1::Struct2, usize)
|
||||
|
||||
// gdb-command:whatis extern_stdcall_fn_with_return_value
|
||||
// gdb-check:type = struct (extern "stdcall" fn(Box<isize>) -> usize, usize)
|
||||
@ -160,7 +160,7 @@
|
||||
// gdb-check:type = struct (fn(isize) -> isize, usize)
|
||||
|
||||
// gdb-command:whatis generic_function_struct3
|
||||
// gdb-check:type = struct (fn(type-names::Mod1::Mod2::Struct3) -> type-names::Mod1::Mod2::Struct3, usize)
|
||||
// gdb-check:type = struct (fn(type_names::Mod1::Mod2::Struct3) -> type_names::Mod1::Mod2::Struct3, usize)
|
||||
|
||||
// gdb-command:whatis variadic_function
|
||||
// gdb-check:type = struct (unsafe extern "C" fn(*const u8, ...) -> isize, usize)
|
||||
|
@ -49,9 +49,9 @@
|
||||
// gdb-command:print padded_struct.data_ptr[1]
|
||||
// gdb-check:$13 = {x = 13, y = 14, z = 15}
|
||||
|
||||
// gdb-command:print 'vec-slices::MUT_VECT_SLICE'.length
|
||||
// gdb-command:print 'vec_slices::MUT_VECT_SLICE'.length
|
||||
// gdb-check:$14 = 2
|
||||
// gdb-command:print *((int64_t[2]*)('vec-slices::MUT_VECT_SLICE'.data_ptr))
|
||||
// gdb-command:print *((int64_t[2]*)('vec_slices::MUT_VECT_SLICE'.data_ptr))
|
||||
// gdb-check:$15 = {64, 65}
|
||||
|
||||
|
||||
|
@ -9,11 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
extern crate
|
||||
"foo"suffix //~ ERROR extern crate name with a suffix is illegal
|
||||
//~^ WARNING: obsolete syntax
|
||||
as foo;
|
||||
|
||||
extern
|
||||
"C"suffix //~ ERROR ABI spec with a suffix is illegal
|
||||
fn foo() {}
|
||||
|
@ -12,4 +12,4 @@ all:
|
||||
| grep "invalid character.*in crate name:"
|
||||
cp foo.rs $(TMPDIR)/-foo.rs
|
||||
$(RUSTC) $(TMPDIR)/-foo.rs 2>&1 \
|
||||
| grep "soon cannot contain hyphens:"
|
||||
| grep 'crate names cannot start with a `-`'
|
||||
|
@ -16,7 +16,7 @@
|
||||
// Regression test for issue #13560, the test itself is all in the dependent
|
||||
// libraries. The fail which previously failed to compile is the one numbered 3.
|
||||
|
||||
extern crate "issue-13560-2" as t2;
|
||||
extern crate "issue-13560-3" as t3;
|
||||
extern crate issue_13560_2 as t2;
|
||||
extern crate issue_13560_3 as t3;
|
||||
|
||||
fn main() {}
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// aux-build:issue-16822.rs
|
||||
|
||||
extern crate "issue-16822" as lib;
|
||||
extern crate issue_16822 as lib;
|
||||
|
||||
use std::cell::RefCell;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// aux-build:issue-18502.rs
|
||||
|
||||
extern crate "issue-18502" as fmt;
|
||||
extern crate issue_18502 as fmt;
|
||||
|
||||
fn main() {
|
||||
::fmt::baz();
|
||||
|
@ -13,7 +13,7 @@
|
||||
// Test that we are able to reference cross-crate traits that employ
|
||||
// associated types.
|
||||
|
||||
extern crate "associated-types-cc-lib" as bar;
|
||||
extern crate associated_types_cc_lib as bar;
|
||||
|
||||
use bar::Bar;
|
||||
|
||||
|
@ -21,14 +21,14 @@ mod m {
|
||||
const BAR: () = ();
|
||||
struct Data;
|
||||
use m::f;
|
||||
extern crate "blind-item-mixed-crate-use-item-foo" as foo;
|
||||
extern crate blind_item_mixed_crate_use_item_foo as foo;
|
||||
|
||||
fn main() {
|
||||
const BAR2: () = ();
|
||||
struct Data2;
|
||||
use m::g;
|
||||
|
||||
extern crate "blind-item-mixed-crate-use-item-foo2" as foo2;
|
||||
extern crate blind_item_mixed_crate_use_item_foo2 as foo2;
|
||||
|
||||
f(Data, BAR, foo::X);
|
||||
g(Data2, BAR2, foo2::Y);
|
||||
|
@ -8,10 +8,10 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// compile-flags:--crate-name crate-name-attr-used -F unused-attributes
|
||||
// compile-flags:--crate-name crate_name_attr_used -F unused-attributes
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![crate_name = "crate-name-attr-used"]
|
||||
#![crate_name = "crate_name_attr_used"]
|
||||
|
||||
fn main() {}
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-10028" as issue10028;
|
||||
extern crate issue_10028 as issue10028;
|
||||
|
||||
use issue10028::ZeroLengthThingWithDestructor;
|
||||
|
||||
|
@ -12,6 +12,6 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-11224" as unused;
|
||||
extern crate issue_11224 as unused;
|
||||
|
||||
pub fn main() {}
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-11225-1" as foo;
|
||||
extern crate issue_11225_1 as foo;
|
||||
|
||||
pub fn main() {
|
||||
foo::foo(1);
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-11225-2" as foo;
|
||||
extern crate issue_11225_2 as foo;
|
||||
|
||||
pub fn main() {
|
||||
foo::foo(1);
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// aux-build:issue-11508.rs
|
||||
|
||||
extern crate "issue-11508" as rand;
|
||||
extern crate issue_11508 as rand;
|
||||
|
||||
use rand::{Closed01, random};
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-11529" as a;
|
||||
extern crate issue_11529 as a;
|
||||
|
||||
fn main() {
|
||||
let one = 1;
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
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;
|
||||
|
||||
fn main() {}
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
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;
|
||||
|
||||
fn main() {}
|
||||
|
@ -14,6 +14,6 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-12133-dylib2" as other;
|
||||
extern crate issue_12133_dylib2 as other;
|
||||
|
||||
fn main() {}
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-13620-2" as crate2;
|
||||
extern crate issue_13620_2 as crate2;
|
||||
|
||||
fn main() {
|
||||
(crate2::FOO2.foo)();
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-13872-3" as other;
|
||||
extern crate issue_13872_3 as other;
|
||||
|
||||
fn main() {
|
||||
other::foo();
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-14421" as bug_lib;
|
||||
extern crate issue_14421 as bug_lib;
|
||||
|
||||
use bug_lib::B;
|
||||
use bug_lib::make;
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-14422" as bug_lib;
|
||||
extern crate issue_14422 as bug_lib;
|
||||
|
||||
use bug_lib::B;
|
||||
use bug_lib::make;
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-15562" as i;
|
||||
extern crate issue_15562 as i;
|
||||
|
||||
pub fn main() {
|
||||
extern {
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-16643" as i;
|
||||
extern crate issue_16643 as i;
|
||||
|
||||
pub fn main() {
|
||||
i::TreeBuilder { h: 3u }.process_token();
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-17662" as i;
|
||||
extern crate issue_17662 as i;
|
||||
|
||||
use std::marker;
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
extern crate "issue-17718" as other;
|
||||
extern crate issue_17718 as other;
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
// aux-build:issue-18501.rs
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-18501" as issue;
|
||||
extern crate issue_18501 as issue;
|
||||
|
||||
fn main() {
|
||||
issue::pass_method();
|
||||
|
@ -17,7 +17,7 @@
|
||||
// aux-build:issue-18514.rs
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-18514" as ice;
|
||||
extern crate issue_18514 as ice;
|
||||
use ice::{Tr, St};
|
||||
|
||||
fn main() {
|
||||
|
@ -16,7 +16,7 @@
|
||||
#![feature(unboxed_closures)]
|
||||
|
||||
// aux-build:issue-18711.rs
|
||||
extern crate "issue-18711" as issue;
|
||||
extern crate issue_18711 as issue;
|
||||
|
||||
fn main() {
|
||||
(|| issue::inner(()))();
|
||||
|
@ -21,6 +21,6 @@ mod foo {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(module_path!(), "issue-18859");
|
||||
assert_eq!(foo::bar::baz::name(), "issue-18859::foo::bar::baz");
|
||||
assert_eq!(module_path!(), "issue_18859");
|
||||
assert_eq!(foo::bar::baz::name(), "issue_18859::foo::bar::baz");
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-19340-1" as lib;
|
||||
extern crate issue_19340_1 as lib;
|
||||
|
||||
use lib::Homura;
|
||||
|
||||
|
@ -12,5 +12,5 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-4545" as somelib;
|
||||
extern crate issue_4545 as somelib;
|
||||
pub fn main() { somelib::mk::<int>(); }
|
||||
|
@ -12,6 +12,6 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-5518" as other;
|
||||
extern crate issue_5518 as other;
|
||||
|
||||
fn main() {}
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-5521" as foo;
|
||||
extern crate issue_5521 as foo;
|
||||
|
||||
fn bar(a: foo::map) {
|
||||
if false {
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-7178" as cross_crate_self;
|
||||
extern crate issue_7178 as cross_crate_self;
|
||||
|
||||
pub fn main() {
|
||||
let _ = cross_crate_self::Foo::new(&1);
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-7899" as testcrate;
|
||||
extern crate issue_7899 as testcrate;
|
||||
|
||||
fn main() {
|
||||
let f = testcrate::V2(1.0f32, 2.0f32);
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-8044" as minimal;
|
||||
extern crate issue_8044 as minimal;
|
||||
use minimal::{BTree, leaf};
|
||||
|
||||
pub fn main() {
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-8259" as other;
|
||||
extern crate issue_8259 as other;
|
||||
static a: other::Foo<'static> = other::Foo::A;
|
||||
|
||||
pub fn main() {}
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-9906" as testmod;
|
||||
extern crate issue_9906 as testmod;
|
||||
|
||||
pub fn main() {
|
||||
testmod::foo();
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "issue-9968" as lib;
|
||||
extern crate issue_9968 as lib;
|
||||
|
||||
use lib::{Trait, Struct};
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#![feature(lang_items, start, no_std)]
|
||||
#![no_std]
|
||||
|
||||
extern crate "lang-item-public" as lang_lib;
|
||||
extern crate lang_item_public as lang_lib;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[link(name = "c")]
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#![feature(std_misc, old_path)]
|
||||
|
||||
extern crate "linkage-visibility" as foo;
|
||||
extern crate linkage_visibility as foo;
|
||||
|
||||
pub fn main() {
|
||||
foo::test();
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// exec-env:RUST_LOG=logging-enabled=info
|
||||
// exec-env:RUST_LOG=logging_enabled=info
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "priv-impl-prim-ty" as bar;
|
||||
extern crate priv_impl_prim_ty as bar;
|
||||
|
||||
pub fn main() {
|
||||
bar::frob(1);
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "reexport-should-still-link" as foo;
|
||||
extern crate reexport_should_still_link as foo;
|
||||
|
||||
pub fn main() {
|
||||
foo::bar();
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// exec-env:RUST_LOG=rust-log-filter/foo
|
||||
// exec-env:RUST_LOG=rust_log_filter/foo
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#[link(name = "sepcomp-extern-lib")]
|
||||
#[link(name = "sepcomp_extern_lib")]
|
||||
extern {
|
||||
#[allow(ctypes)]
|
||||
fn foo() -> uint;
|
||||
|
@ -11,7 +11,7 @@
|
||||
// aux-build:static-function-pointer-aux.rs
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "static-function-pointer-aux" as aux;
|
||||
extern crate static_function_pointer_aux as aux;
|
||||
|
||||
fn f(x: int) -> int { x }
|
||||
|
||||
|
@ -15,8 +15,8 @@
|
||||
|
||||
#![feature(hash, core)]
|
||||
|
||||
extern crate "typeid-intrinsic" as other1;
|
||||
extern crate "typeid-intrinsic2" as other2;
|
||||
extern crate typeid_intrinsic as other1;
|
||||
extern crate typeid_intrinsic2 as other2;
|
||||
|
||||
use std::hash::{self, SipHasher};
|
||||
use std::any::TypeId;
|
||||
|
@ -14,7 +14,7 @@
|
||||
// aux-build:unboxed-closures-cross-crate.rs
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "unboxed-closures-cross-crate" as ubcc;
|
||||
extern crate unboxed_closures_cross_crate as ubcc;
|
||||
|
||||
fn main() {
|
||||
assert_eq!(ubcc::has_closures(), 2_usize);
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "weak-lang-items" as other;
|
||||
extern crate weak_lang_items as other;
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern crate "xcrate-trait-lifetime-param" as other;
|
||||
extern crate xcrate_trait_lifetime_param as other;
|
||||
|
||||
struct Reader<'a> {
|
||||
b : &'a [u8]
|
||||
|
Loading…
Reference in New Issue
Block a user