File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
src/test/run-make/save-analysis Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 22all : code
33krate2 : krate2.rs
44 $(RUSTC ) $<
5- code : foo.rs krate2
5+ code : foo.rs krate2 sugar.rs
66 $(RUSTC ) foo.rs -Zsave-analysis-csv
77 $(RUSTC ) foo.rs -Zsave-analysis
88 $(RUSTC ) foo.rs -Zsave-analysis-api
9+ $(RUSTC ) sugar.rs -Zsave-analysis-csv
Original file line number Diff line number Diff line change 1+ // Copyright 2017 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+ fn main ( ) {
12+ let _ = foo ( ) ;
13+
14+ for x in vec ! [ 1 , 2 , 3 , 4 ] {
15+ println ! ( "{}" , x) ;
16+ }
17+
18+ while let Some ( x) = Some ( 1 ) {
19+ println ! ( "{}" , x) ;
20+ }
21+ }
22+
23+ fn foo ( ) -> Result < ( ) , ( ) > {
24+ bar ( ) ?;
25+ Ok ( ( ) )
26+ }
27+
28+ fn bar ( ) -> Result < ( ) , ( ) > {
29+ Ok ( ( ) )
30+ }
You can’t perform that action at this time.
0 commit comments