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