This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +0
-82
lines changed Expand file tree Collapse file tree 10 files changed +0
-82
lines changed Original file line number Diff line number Diff line change 1
- // Copyright 2016-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
1
use std:: env;
12
2
use std:: path:: Path ;
13
3
Original file line number Diff line number Diff line change 1
- // Copyright 2017 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
#![ feature( test) ]
10
2
11
3
extern crate rls_analysis;
Original file line number Diff line number Diff line change 1
- // Copyright 2017 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
use fst;
10
2
use std:: collections:: { HashMap , HashSet } ;
11
3
use std:: iter;
Original file line number Diff line number Diff line change 1
- // Copyright 2016 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
#![ warn( rust_2018_idioms) ]
10
2
11
3
#[ macro_use]
Original file line number Diff line number Diff line change 1
- // Copyright 2016 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
use std:: io;
10
2
use std:: path:: Path ;
11
3
use std:: time:: SystemTime ;
Original file line number Diff line number Diff line change 1
- // Copyright 2017 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
//! Defines an `AnalysisLoader` trait, which allows to specify directories
10
2
//! from which save-analysis JSON files can be read. Also supplies a
11
3
//! default implementation `CargoAnalysisLoader` for Cargo-emitted save-analysis
Original file line number Diff line number Diff line change 1
- // Copyright 2016 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
//! For processing the raw save-analysis data from rustc into the rls
10
2
//! in-memory representation.
11
3
Original file line number Diff line number Diff line change 1
- // Copyright 2016 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
use data:: config:: Config ;
10
2
use data:: Analysis ;
11
3
pub use data:: {
Original file line number Diff line number Diff line change 1
- // Copyright 2016 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
use crate :: loader:: SearchDirectory ;
10
2
use crate :: raw:: DefKind ;
11
3
use crate :: { AnalysisHost , AnalysisLoader } ;
Original file line number Diff line number Diff line change 1
- // Copyright 2016 The RLS Project Developers.
2
- //
3
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6
- // option. This file may not be copied, modified, or distributed
7
- // except according to those terms.
8
-
9
1
#[ cfg( unix) ]
10
2
pub fn get_resident ( ) -> Option < usize > {
11
3
use std:: fs:: File ;
You can’t perform that action at this time.
0 commit comments