MCPcopy Create free account

hub / github.com/Noratrieb/cargo-minimize / functions

Functions151 in github.com/Noratrieb/cargo-minimize

↓ 25 callersMethodpush
(&mut self, next: Vec<AstPath>)
src/processor/checker.rs:77
↓ 17 callersMethodpop
(&mut self)
src/processor/checker.rs:83
↓ 8 callersMethodcan_process
Checks whether a pass may apply the changes for a minimization site.
src/processor/checker.rs:216
↓ 6 callersMethodcmd
(&self, name: impl AsRef<OsStr>)
src/build.rs:130
↓ 5 callersMethodboxed
(self)
src/processor/mod.rs:32
↓ 5 callersFunctionread_script_output
(stdout: &'a str, stderr: &'a str)
src/build.rs:421
↓ 5 callersFunctionrustup_which
(tool: &str)
src/build.rs:346
↓ 5 callersMethodvisit_file_mut
(&mut self, file: &mut syn::File)
src/passes/split_use.rs:150
↓ 4 callersMethodbuild
(&self)
src/build.rs:138
↓ 3 callersMethodbefore_content
(&self)
src/processor/files.rs:105
↓ 3 callersMethodpath_no_fs_interact
(&self)
src/processor/files.rs:47
↓ 3 callersMethodreproduces_issue
(&self)
src/build.rs:381
↓ 3 callersMethodrun_passes
( &self, passes: impl IntoIterator<Item = Box<dyn Pass + 'a>>, )
src/processor/mod.rs:151
↓ 3 callersMethodshould_retain_item
(&mut self)
src/passes/item_deleter.rs:24
↓ 3 callersMethodshould_retain_item
(&mut self, span: Span)
src/processor/reaper.rs:216
↓ 3 callersMethodwrite
(&self, new: syn::File)
src/processor/files.rs:38
↓ 2 callersMethodborrow
(&self)
src/processor/checker.rs:19
↓ 2 callersFunctionbuild
(cargo: &Path, path: &Path, regression_checker_path: &Path)
testsuite/src/lib.rs:152
↓ 2 callersFunctionclean_items_general
(items: &mut Vec<Item>)
src/expand.rs:231
↓ 2 callersMethodcommit
(mut self)
src/processor/files.rs:122
↓ 2 callersMethodconsider_deleting_field
(&mut self, name: String)
src/passes/field_deleter.rs:21
↓ 2 callersMethodconsider_deleting_item
(&mut self, item: &Item)
src/passes/item_deleter.rs:32
↓ 2 callersMethodcrates
Adds all dependencies to `set` and returns itself
src/expand.rs:116
↓ 2 callersFunctionensure_roots_kept
This is called by the regression_checked binary during minimization and by the test runner at the end.
testsuite/src/lib.rs:18
↓ 2 callersFunctionextra_cargoflags
(cargo: &mut Command)
src/build.rs:342
↓ 2 callersFunctionformat
(file: syn::File)
src/formatting.rs:5
↓ 2 callersMethodget_diags
(&self)
src/build.rs:241
↓ 2 callersFunctionget_roots
(path: &Path)
testsuite/src/lib.rs:201
↓ 2 callersFunctiongrep
(path: &Path, regex: &Regex)
testsuite/src/lib.rs:213
↓ 2 callersMethodhas_prefix
(&self, other: &AstPath)
src/processor/checker.rs:10
↓ 2 callersMethodname
(&self)
src/processor/reaper.rs:137
↓ 2 callersMethodnext_in_worklist
(&mut self)
src/processor/checker.rs:230
↓ 2 callersMethodpass_enabled
(&self, name: &str)
src/processor/mod.rs:89
↓ 2 callersMethodrequire_reproduction
(&self, build: &str)
src/build.rs:371
↓ 2 callersMethodrollback
(mut self)
src/processor/files.rs:115
↓ 2 callersFunctionsplit_args
(s: &str)
src/build.rs:411
↓ 2 callersMethodtry_change
( &'file self, changes: &'change mut Changes, )
src/processor/files.rs:73
↓ 2 callersMethodvisit_item_list
(&mut self, items: &mut Vec<syn::Item>)
src/passes/split_use.rs:73
↓ 1 callersMethodapply_unused_imports
( &mut self, suggestions: &HashMap<&Path, Vec<&Suggestion>>, )
src/processor/reaper.rs:56
↓ 1 callersMethodcall
(&self, output: &str, code: Option<i32>)
src/dylib_flag.rs:127
↓ 1 callersFunctioncargo_expand
(cargo_dir: &TargetSourcePath)
src/expand.rs:17
↓ 1 callersFunctionclean_dep_mod
(module: &mut ItemMod)
src/expand.rs:199
↓ 1 callersFunctionclean_final_code
(file: &mut File)
src/expand.rs:213
↓ 1 callersMethoddelete_dead_code
(&mut self)
src/processor/reaper.rs:20
↓ 1 callersMethoddep_crates
(&self, unit: &Unit, set: &mut BTreeSet<Crate>)
src/expand.rs:108
↓ 1 callersFunctiondiv_ceil
copied from `core` because who needs stable features anyways update: still not stabilized because of bikeshedding for div_floor.
src/processor/checker.rs:251
↓ 1 callersMethoddoes_not_reproduce
The changes did not reproduce the regression. Bisect further.
src/processor/checker.rs:134
↓ 1 callersMethodexpand
(&self)
src/expand.rs:146
↓ 1 callersMethodexpand_crate
(&self, krate: Crate, root: &mut syn::File)
src/expand.rs:159
↓ 1 callersMethodexpand_use_groups
given a "some::group::{a, b::{c,d}, e}" tree, and assuming checker allows processing of (only) "some::group", returns a ["some::group::a", "some::grou
src/passes/split_use.rs:25
↓ 1 callersFunctionfile_for_suggestion
(suggestion: &Suggestion)
src/processor/reaper.rs:13
↓ 1 callersFunctionfull_tests
()
testsuite/src/lib.rs:48
↓ 1 callersFunctionget_required_deleted
(path: &Path)
testsuite/src/lib.rs:207
↓ 1 callersMethodhad_changes
(&self)
src/processor/files.rs:141
↓ 1 callersFunctioninit_recommended_tracing_subscriber
(default_level: Level)
src/lib.rs:163
↓ 1 callersMethodis_finished
(&mut self)
src/processor/checker.rs:207
↓ 1 callersFunctionlayer_candidates
Split up a list of AstPath's into several sets such that none of those sets have any of the AstPath's overlap. I.e. so that we avoid having both ["foo
src/processor/checker.rs:277
↓ 1 callersFunctionminimize
(options: Options, stop: Arc<AtomicBool>)
src/lib.rs:138
↓ 1 callersMethodno_change
The pass did not apply any changes. We're either done or just starting
src/processor/checker.rs:173
↓ 1 callersMethodprocess_file
( &self, pass: &mut dyn Pass, file: &'file SourceFile, invalidated_files: &mut
src/processor/mod.rs:203
↓ 1 callersMethodprune
remove all the worklist items that would have been covered by the given ones. I.e. if we have already deleted the entire module, there's no need tryin
src/processor/checker.rs:91
↓ 1 callersMethodrefresh_state
(&mut self)
src/processor/mod.rs:16
↓ 1 callersMethodreproduces
(&mut self)
src/processor/checker.rs:113
↓ 1 callersFunctionrun_build
(cargo: &Path, command: &mut Command)
testsuite/src/lib.rs:36
↓ 1 callersMethodrun_pass
(&self, pass: &mut dyn Pass)
src/processor/mod.rs:169
↓ 1 callersFunctionsetup_dir
(cargo: &Path, path: &Path)
testsuite/src/lib.rs:119
↓ 1 callersMethodspan_matches
(&self, ident_span: Span)
src/processor/reaper.rs:149
↓ 1 callersFunctionsplit_owned
Splits an owned container in half.
src/processor/checker.rs:258
↓ 1 callersFunctionthingy
()
full-tests/reexports.rs:4
↓ 1 callersFunctiontrim_trailing_self
It is legal to write "use module::{self};", but not "use module::self;". If we do end up with the latter on our hands, convert it to "use module;" ins
src/passes/split_use.rs:105
↓ 1 callersFunctionuser
~REQUIRE-DELETED user-fn
full-tests/to-empty-main.rs:4
↓ 1 callersMethodvisit_file_mut
(&mut self, file: &mut syn::File)
src/passes/item_deleter.rs:93
↓ 1 callersMethodvisit_file_mut
(&mut self, krate: &mut syn::File)
src/processor/reaper.rs:265
↓ 1 callersFunctionwrap_func_body
(func: &str)
src/dylib_flag.rs:33
Functionbad
~REQUIRE-DELETED bad
full-tests/nested-items.rs:5
Functionbar
()
full-tests/nested-items2.rs:9
Functionbasic_contains_work
()
src/dylib_flag.rs:157
Methodcmp
(&self, other: &Self)
src/expand.rs:91
Methodcompile
(body: &str)
src/dylib_flag.rs:88
Methoddefault
()
src/lib.rs:179
Methoddrop
(&mut self)
src/processor/files.rs:130
Methodeq
(&self, other: &Self)
src/expand.rs:77
Methodeq
(&self, other: &Self)
src/processor/files.rs:53
Functionexpand
Expands the crate in `cargo_dir` into a single file without dependencies
src/expand.rs:180
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/build.rs:27
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/expand.rs:68
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/dylib_flag.rs:147
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/processor/checker.rs:25
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/processor/files.rs:67
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/processor/mod.rs:41
Functionfoo
()
full-tests/nested-items2.rs:8
Methodfrom_str
(s: &str)
src/lib.rs:124
Methodfrom_str
(s: &str)
src/dylib_flag.rs:27
Methodfrom_str
(s: &str)
src/processor/mod.rs:60
Functionfull_tests
()
tests/full_tests.rs:5
Functiongood
~MINIMIZE-ROOT good
full-tests/nested-items.rs:3
Methodgrab_cargo_diags
(output: &str)
src/build.rs:251
Methodgrab_rustc_diags
(output: &str)
src/build.rs:242
Methodhash
(&self, state: &mut H)
src/processor/files.rs:59
Functionmain
()
full-tests/reexports2.rs:12
next →1–100 of 151, ranked by callers