File tree Expand file tree Collapse file tree 4 files changed +58
-0
lines changed
src/test/run-make-fulldeps/save-analysis-rfc2126 Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ -include ../tools.mk
2+
3+ all : extern_absolute_paths.rs extern_in_paths.rs krate2
4+ $(RUSTC ) extern_absolute_paths.rs -Zsave-analysis
5+ $(RUSTC ) extern_in_paths.rs -Zsave-analysis
6+
7+ krate2 : krate2.rs
8+ $(RUSTC ) $<
Original file line number Diff line number Diff line change 1+ // Copyright 2018 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.
4+ //
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.
10+
11+ #![ feature( extern_absolute_paths) ]
12+
13+ use krate2:: hello;
14+
15+ fn main ( ) {
16+ hello ( ) ;
17+ :: krate2:: hello ( ) ;
18+ }
Original file line number Diff line number Diff line change 1+ // Copyright 2018 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.
4+ //
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.
10+
11+ #![ feature( extern_in_paths) ]
12+
13+ use extern:: krate2;
14+
15+ fn main ( ) {
16+ extern :: krate2:: hello ( ) ;
17+ }
Original file line number Diff line number Diff line change 1+ // Copyright 2018 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.
4+ //
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.
10+
11+ #![ crate_name = "krate2" ]
12+ #![ crate_type = "lib" ]
13+
14+ pub fn hello ( ) {
15+ }
You can’t perform that action at this time.
0 commit comments