1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // Test that moving a type definition within a source file does not affect
14 // revisions:rpass1 rpass2
15 // compile-flags: -Z query-dep-graph -g
17 #![rustc_partition_reused(module="spans_in_type_debuginfo-structs", cfg="rpass2")]
18 #![rustc_partition_reused(module="spans_in_type_debuginfo-enums", cfg="rpass2")]
20 #![feature(rustc_attrs)]
33 pub fn foo(x: X) -> u32 {
51 pub fn foo(x: X) -> u32 {
60 let _ = structs::foo(structs::X { x: 1 });
61 let _ = enums::foo(enums::X::A { x: 2 });