[INFO] updating cached repository https://github.com/onah/ciana_rust [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] f713422d831b27f0f2a4007f53ceee8fdcc8e6ae [INFO] checking onah/ciana_rust against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fonah%2Fciana_rust" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/onah/ciana_rust on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/onah/ciana_rust [INFO] finished tweaking git repo https://github.com/onah/ciana_rust [INFO] tweaked toml for git repo https://github.com/onah/ciana_rust written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/onah/ciana_rust already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2e7cc3a1fb310d7051cb3dfcb3409128087cd5c26b76cea0559e90e85471794c [INFO] running `"docker" "start" "-a" "2e7cc3a1fb310d7051cb3dfcb3409128087cd5c26b76cea0559e90e85471794c"` [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling clang-sys v0.28.1 [INFO] [stderr] Checking clang v0.23.0 [INFO] [stderr] Checking ciana v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0407]: method `is_global_variable` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:82:3 [INFO] [stderr] | [INFO] [stderr] 82 | / fn is_global_variable(target: &SourceLocation) -> Result { [INFO] [stderr] 83 | | let cl = clang::Clang::new()?; [INFO] [stderr] 84 | | let index = clang::Index::new(&cl, false, false); [INFO] [stderr] 85 | | let tu = index.parser(target.filename.clone()).parse()?; [INFO] [stderr] ... | [INFO] [stderr] 88 | | Ok(result) [INFO] [stderr] 89 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `visitor_children_for_global_variable` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:91:3 [INFO] [stderr] | [INFO] [stderr] 91 | / fn visitor_children_for_global_variable( [INFO] [stderr] 92 | | entity: clang::Entity, [INFO] [stderr] 93 | | target: &SourceLocation, [INFO] [stderr] 94 | | mut is_found: bool, [INFO] [stderr] ... | [INFO] [stderr] 110 | | false [INFO] [stderr] 111 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `get_all_complie_source_file` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:113:3 [INFO] [stderr] | [INFO] [stderr] 113 | / fn get_all_complie_source_file() -> Result, CianaError> { [INFO] [stderr] 114 | | let mut results = Vec::new(); [INFO] [stderr] 115 | | [INFO] [stderr] 116 | | let compilation_database_path = get_compilation_database_path()?; [INFO] [stderr] ... | [INFO] [stderr] 132 | | Ok(results) [INFO] [stderr] 133 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `visitor_children_for_variables` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:135:3 [INFO] [stderr] | [INFO] [stderr] 135 | / fn visitor_children_for_variables( [INFO] [stderr] 136 | | entity: clang::Entity, [INFO] [stderr] 137 | | target: &SourceLocation, [INFO] [stderr] 138 | | ) -> Vec { [INFO] [stderr] ... | [INFO] [stderr] 155 | | results [INFO] [stderr] 156 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `is_same_target` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:158:3 [INFO] [stderr] | [INFO] [stderr] 158 | / fn is_same_target(entity: &clang::Entity, target: &SourceLocation) -> bool { [INFO] [stderr] 159 | | //print_entiry_simple(&entity); [INFO] [stderr] 160 | | let comparison = match get_source_location_from_entity(entity) { [INFO] [stderr] 161 | | Some(v) => v, [INFO] [stderr] ... | [INFO] [stderr] 165 | | &comparison == target [INFO] [stderr] 166 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `get_source_location_from_entity` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:168:3 [INFO] [stderr] | [INFO] [stderr] 168 | / fn get_source_location_from_entity(entity: &clang::Entity) -> Option { [INFO] [stderr] 169 | | let location = match entity.get_location() { [INFO] [stderr] 170 | | Some(v) => v, [INFO] [stderr] 171 | | None => return None, [INFO] [stderr] ... | [INFO] [stderr] 184 | | }) [INFO] [stderr] 185 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_source_location_from_entity` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:20:11 [INFO] [stderr] | [INFO] [stderr] 18 | fn get_reference_location_from_entiry(entity: &clang::Entity) -> Option { [INFO] [stderr] | --------------------------------------------------------------------------------------- similarly named function `get_reference_location_from_entiry` defined here [INFO] [stderr] 19 | if let Some(v) = entity.get_reference() { [INFO] [stderr] 20 | get_source_location_from_entity(&v) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_reference_location_from_entiry` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_same_target` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:31:45 [INFO] [stderr] | [INFO] [stderr] 31 | let result: Option = if is_same_target(&entity, target) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_global_variable` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:60:29 [INFO] [stderr] | [INFO] [stderr] 60 | let search_paths = if is_global_variable(target)? { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_all_complie_source_file` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:61:11 [INFO] [stderr] | [INFO] [stderr] 61 | get_all_complie_source_file()? [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `visitor_children_for_variables` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:75:25 [INFO] [stderr] | [INFO] [stderr] 27 | / fn visitor_children_for_reference( [INFO] [stderr] 28 | | entity: clang::Entity, [INFO] [stderr] 29 | | target: &SourceLocation, [INFO] [stderr] 30 | | ) -> Option { [INFO] [stderr] ... | [INFO] [stderr] 43 | | result [INFO] [stderr] 44 | | } [INFO] [stderr] | |_- similarly named function `visitor_children_for_reference` defined here [INFO] [stderr] ... [INFO] [stderr] 75 | let results = visitor_children_for_variables(entity, &target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `visitor_children_for_reference` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `visitor_children_for_global_variable` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:87:20 [INFO] [stderr] | [INFO] [stderr] 87 | let result = visitor_children_for_global_variable(entity, &target, false); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_same_target` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:100:10 [INFO] [stderr] | [INFO] [stderr] 100 | if is_same_target(&entity, target) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `visitor_children_for_global_variable` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:106:14 [INFO] [stderr] | [INFO] [stderr] 106 | if visitor_children_for_global_variable(*child, target, is_found) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_compilation_database_path` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:116:39 [INFO] [stderr] | [INFO] [stderr] 116 | let compilation_database_path = get_compilation_database_path()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 11 | use crate::get_compilation_database_path; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `absolute_to_relative` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:128:22 [INFO] [stderr] | [INFO] [stderr] 128 | let path = absolute_to_relative(&std::path::PathBuf::from(path))?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 11 | use crate::absolute_to_relative; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_same_target` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:143:29 [INFO] [stderr] | [INFO] [stderr] 143 | if r != entity && is_same_target(&r, target) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_source_location_from_entity` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:144:28 [INFO] [stderr] | [INFO] [stderr] 18 | fn get_reference_location_from_entiry(entity: &clang::Entity) -> Option { [INFO] [stderr] | --------------------------------------------------------------------------------------- similarly named function `get_reference_location_from_entiry` defined here [INFO] [stderr] ... [INFO] [stderr] 144 | results.push(get_source_location_from_entity(&entity).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_reference_location_from_entiry` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `visitor_children_for_variables` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:151:21 [INFO] [stderr] | [INFO] [stderr] 27 | / fn visitor_children_for_reference( [INFO] [stderr] 28 | | entity: clang::Entity, [INFO] [stderr] 29 | | target: &SourceLocation, [INFO] [stderr] 30 | | ) -> Option { [INFO] [stderr] ... | [INFO] [stderr] 43 | | result [INFO] [stderr] 44 | | } [INFO] [stderr] | |_- similarly named function `visitor_children_for_reference` defined here [INFO] [stderr] ... [INFO] [stderr] 151 | let res = visitor_children_for_variables(*child, target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `visitor_children_for_reference` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_source_location_from_entity` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:160:30 [INFO] [stderr] | [INFO] [stderr] 18 | fn get_reference_location_from_entiry(entity: &clang::Entity) -> Option { [INFO] [stderr] | --------------------------------------------------------------------------------------- similarly named function `get_reference_location_from_entiry` defined here [INFO] [stderr] ... [INFO] [stderr] 160 | let comparison = match get_source_location_from_entity(entity) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_reference_location_from_entiry` [INFO] [stderr] [INFO] [stderr] error[E0186]: method `get_same_variables_location` has a `&self` declaration in the trait, but not in the impl [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:59:3 [INFO] [stderr] | [INFO] [stderr] 59 | fn get_same_variables_location(target: &SourceLocation) -> Result, CianaError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&self` in impl [INFO] [stderr] | [INFO] [stderr] ::: src/ast_reader/mod.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | fn get_same_variables_location(&self, target: &SourceLocation) -> Result, CianaError>; [INFO] [stderr] | ---------------------------------------------------------------------------------------------------------- `&self` used in trait [INFO] [stderr] [INFO] [stderr] error: aborting due to 21 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0186, E0407, E0425. [INFO] [stderr] For more information about an error, try `rustc --explain E0186`. [INFO] [stderr] error: could not compile `ciana`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0407]: method `is_global_variable` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:82:3 [INFO] [stderr] | [INFO] [stderr] 82 | / fn is_global_variable(target: &SourceLocation) -> Result { [INFO] [stderr] 83 | | let cl = clang::Clang::new()?; [INFO] [stderr] 84 | | let index = clang::Index::new(&cl, false, false); [INFO] [stderr] 85 | | let tu = index.parser(target.filename.clone()).parse()?; [INFO] [stderr] ... | [INFO] [stderr] 88 | | Ok(result) [INFO] [stderr] 89 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `visitor_children_for_global_variable` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:91:3 [INFO] [stderr] | [INFO] [stderr] 91 | / fn visitor_children_for_global_variable( [INFO] [stderr] 92 | | entity: clang::Entity, [INFO] [stderr] 93 | | target: &SourceLocation, [INFO] [stderr] 94 | | mut is_found: bool, [INFO] [stderr] ... | [INFO] [stderr] 110 | | false [INFO] [stderr] 111 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `get_all_complie_source_file` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:113:3 [INFO] [stderr] | [INFO] [stderr] 113 | / fn get_all_complie_source_file() -> Result, CianaError> { [INFO] [stderr] 114 | | let mut results = Vec::new(); [INFO] [stderr] 115 | | [INFO] [stderr] 116 | | let compilation_database_path = get_compilation_database_path()?; [INFO] [stderr] ... | [INFO] [stderr] 132 | | Ok(results) [INFO] [stderr] 133 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `visitor_children_for_variables` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:135:3 [INFO] [stderr] | [INFO] [stderr] 135 | / fn visitor_children_for_variables( [INFO] [stderr] 136 | | entity: clang::Entity, [INFO] [stderr] 137 | | target: &SourceLocation, [INFO] [stderr] 138 | | ) -> Vec { [INFO] [stderr] ... | [INFO] [stderr] 155 | | results [INFO] [stderr] 156 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `is_same_target` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:158:3 [INFO] [stderr] | [INFO] [stderr] 158 | / fn is_same_target(entity: &clang::Entity, target: &SourceLocation) -> bool { [INFO] [stderr] 159 | | //print_entiry_simple(&entity); [INFO] [stderr] 160 | | let comparison = match get_source_location_from_entity(entity) { [INFO] [stderr] 161 | | Some(v) => v, [INFO] [stderr] ... | [INFO] [stderr] 165 | | &comparison == target [INFO] [stderr] 166 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0407]: method `get_source_location_from_entity` is not a member of trait `AstReader` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:168:3 [INFO] [stderr] | [INFO] [stderr] 168 | / fn get_source_location_from_entity(entity: &clang::Entity) -> Option { [INFO] [stderr] 169 | | let location = match entity.get_location() { [INFO] [stderr] 170 | | Some(v) => v, [INFO] [stderr] 171 | | None => return None, [INFO] [stderr] ... | [INFO] [stderr] 184 | | }) [INFO] [stderr] 185 | | } [INFO] [stderr] | |___^ not a member of trait `AstReader` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:226:23 [INFO] [stderr] | [INFO] [stderr] 226 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:232:23 [INFO] [stderr] | [INFO] [stderr] 232 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:244:23 [INFO] [stderr] | [INFO] [stderr] 244 | filename: PathBuf::from("test_project/c_variable/src/main.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:251:23 [INFO] [stderr] | [INFO] [stderr] 251 | filename: PathBuf::from("test_project/c_variable/src/main.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:256:23 [INFO] [stderr] | [INFO] [stderr] 256 | filename: PathBuf::from("test_project/c_variable/src/main.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:268:23 [INFO] [stderr] | [INFO] [stderr] 268 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:275:23 [INFO] [stderr] | [INFO] [stderr] 275 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:280:23 [INFO] [stderr] | [INFO] [stderr] 280 | filename: PathBuf::from("test_project/c_variable/src/subfunc.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:291:23 [INFO] [stderr] | [INFO] [stderr] 291 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:303:23 [INFO] [stderr] | [INFO] [stderr] 303 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:310:23 [INFO] [stderr] | [INFO] [stderr] 310 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:315:23 [INFO] [stderr] | [INFO] [stderr] 315 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:327:23 [INFO] [stderr] | [INFO] [stderr] 327 | filename: PathBuf::from("test_project/c_variable/src/func.c"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PathBuf` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:339:23 [INFO] [stderr] | [INFO] [stderr] 339 | filename: PathBuf::from("test_project/c_variable/src/subfunc.h"), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `env` [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:350:19 [INFO] [stderr] | [INFO] [stderr] 350 | let pwd = env::current_dir().expect("test_absolute_to_relative current_dir error"); [INFO] [stderr] | ^^^ use of undeclared type or module `env` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_source_location_from_entity` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:20:11 [INFO] [stderr] | [INFO] [stderr] 18 | fn get_reference_location_from_entiry(entity: &clang::Entity) -> Option { [INFO] [stderr] | --------------------------------------------------------------------------------------- similarly named function `get_reference_location_from_entiry` defined here [INFO] [stderr] 19 | if let Some(v) = entity.get_reference() { [INFO] [stderr] 20 | get_source_location_from_entity(&v) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_reference_location_from_entiry` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_same_target` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:31:45 [INFO] [stderr] | [INFO] [stderr] 31 | let result: Option = if is_same_target(&entity, target) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_global_variable` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:60:29 [INFO] [stderr] | [INFO] [stderr] 60 | let search_paths = if is_global_variable(target)? { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_all_complie_source_file` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:61:11 [INFO] [stderr] | [INFO] [stderr] 61 | get_all_complie_source_file()? [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `visitor_children_for_variables` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:75:25 [INFO] [stderr] | [INFO] [stderr] 27 | / fn visitor_children_for_reference( [INFO] [stderr] 28 | | entity: clang::Entity, [INFO] [stderr] 29 | | target: &SourceLocation, [INFO] [stderr] 30 | | ) -> Option { [INFO] [stderr] ... | [INFO] [stderr] 43 | | result [INFO] [stderr] 44 | | } [INFO] [stderr] | |_- similarly named function `visitor_children_for_reference` defined here [INFO] [stderr] ... [INFO] [stderr] 75 | let results = visitor_children_for_variables(entity, &target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `visitor_children_for_reference` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `visitor_children_for_global_variable` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:87:20 [INFO] [stderr] | [INFO] [stderr] 87 | let result = visitor_children_for_global_variable(entity, &target, false); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_same_target` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:100:10 [INFO] [stderr] | [INFO] [stderr] 100 | if is_same_target(&entity, target) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `visitor_children_for_global_variable` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:106:14 [INFO] [stderr] | [INFO] [stderr] 106 | if visitor_children_for_global_variable(*child, target, is_found) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_compilation_database_path` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:116:39 [INFO] [stderr] | [INFO] [stderr] 116 | let compilation_database_path = get_compilation_database_path()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 11 | use crate::get_compilation_database_path; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `absolute_to_relative` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:128:22 [INFO] [stderr] | [INFO] [stderr] 128 | let path = absolute_to_relative(&std::path::PathBuf::from(path))?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 11 | use crate::absolute_to_relative; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_same_target` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:143:29 [INFO] [stderr] | [INFO] [stderr] 143 | if r != entity && is_same_target(&r, target) { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_source_location_from_entity` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:144:28 [INFO] [stderr] | [INFO] [stderr] 18 | fn get_reference_location_from_entiry(entity: &clang::Entity) -> Option { [INFO] [stderr] | --------------------------------------------------------------------------------------- similarly named function `get_reference_location_from_entiry` defined here [INFO] [stderr] ... [INFO] [stderr] 144 | results.push(get_source_location_from_entity(&entity).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_reference_location_from_entiry` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `visitor_children_for_variables` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:151:21 [INFO] [stderr] | [INFO] [stderr] 27 | / fn visitor_children_for_reference( [INFO] [stderr] 28 | | entity: clang::Entity, [INFO] [stderr] 29 | | target: &SourceLocation, [INFO] [stderr] 30 | | ) -> Option { [INFO] [stderr] ... | [INFO] [stderr] 43 | | result [INFO] [stderr] 44 | | } [INFO] [stderr] | |_- similarly named function `visitor_children_for_reference` defined here [INFO] [stderr] ... [INFO] [stderr] 151 | let res = visitor_children_for_variables(*child, target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `visitor_children_for_reference` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_source_location_from_entity` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:160:30 [INFO] [stderr] | [INFO] [stderr] 18 | fn get_reference_location_from_entiry(entity: &clang::Entity) -> Option { [INFO] [stderr] | --------------------------------------------------------------------------------------- similarly named function `get_reference_location_from_entiry` defined here [INFO] [stderr] ... [INFO] [stderr] 160 | let comparison = match get_source_location_from_entity(entity) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `get_reference_location_from_entiry` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_reference_location` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:230:22 [INFO] [stderr] | [INFO] [stderr] 230 | let result = get_reference_location(&target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `analyze_variables` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:248:22 [INFO] [stderr] | [INFO] [stderr] 248 | let result = analyze_variables(&target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 220 | use crate::analyze_variables; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `analyze_variables` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:272:22 [INFO] [stderr] | [INFO] [stderr] 272 | let result = analyze_variables(&target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 220 | use crate::analyze_variables; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_reference_location` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:295:22 [INFO] [stderr] | [INFO] [stderr] 295 | let result = get_reference_location(&target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_same_variables_location` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:307:22 [INFO] [stderr] | [INFO] [stderr] 301 | fn test_get_same_variable_location() { [INFO] [stderr] | ------------------------------------ similarly named constant `test_get_same_variable_location` defined here [INFO] [stderr] ... [INFO] [stderr] 307 | let result = get_same_variables_location(&target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `test_get_same_variable_location` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_global_variable` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:331:22 [INFO] [stderr] | [INFO] [stderr] 331 | let result = is_global_variable(&target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `is_global_variable` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:343:22 [INFO] [stderr] | [INFO] [stderr] 343 | let result = is_global_variable(&target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `absolute_to_relative` in this scope [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:352:22 [INFO] [stderr] | [INFO] [stderr] 349 | fn test_absolute_to_relative() { [INFO] [stderr] | ------------------------------ similarly named constant `test_absolute_to_relative` defined here [INFO] [stderr] ... [INFO] [stderr] 352 | let result = absolute_to_relative(&input); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a constant with a similar name exists [INFO] [stderr] | [INFO] [stderr] 352 | let result = test_absolute_to_relative(&input); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 220 | use crate::absolute_to_relative; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0186]: method `get_same_variables_location` has a `&self` declaration in the trait, but not in the impl [INFO] [stderr] --> src/ast_reader/libclang_ast_reader.rs:59:3 [INFO] [stderr] | [INFO] [stderr] 59 | fn get_same_variables_location(target: &SourceLocation) -> Result, CianaError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&self` in impl [INFO] [stderr] | [INFO] [stderr] ::: src/ast_reader/mod.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | fn get_same_variables_location(&self, target: &SourceLocation) -> Result, CianaError>; [INFO] [stderr] | ---------------------------------------------------------------------------------------------------------- `&self` used in trait [INFO] [stderr] [INFO] [stderr] error: aborting due to 44 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0186, E0407, E0425, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0186`. [INFO] [stderr] error: could not compile `ciana`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "2e7cc3a1fb310d7051cb3dfcb3409128087cd5c26b76cea0559e90e85471794c"` [INFO] running `"docker" "rm" "-f" "2e7cc3a1fb310d7051cb3dfcb3409128087cd5c26b76cea0559e90e85471794c"` [INFO] [stdout] 2e7cc3a1fb310d7051cb3dfcb3409128087cd5c26b76cea0559e90e85471794c