Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Artisan-Lab/RULF
/ functions
Functions
93,053 in github.com/Artisan-Lab/RULF
⨍
Functions
93,053
◇
Types & classes
29,618
↓ 150 callers
Method
self_ty
(self)
compiler/rustc_middle/src/ty/mod.rs:858
↓ 150 callers
Method
span_to_snippet
Returns the source snippet as `String` corresponding to the given `Span`.
compiler/rustc_span/src/source_map.rs:622
↓ 149 callers
Function
check
(ra_fixture: &str, expect: Expect)
src/tools/rust-analyzer/crates/ide/src/hover/tests.rs:23
↓ 149 callers
Method
clone
(&self)
compiler/rustc_index/src/bit_set.rs:733
↓ 149 callers
Function
zeroed
()
library/core/src/mem/mod.rs:648
↓ 148 callers
Method
join
(&self, other: impl AsRef<str>)
src/tools/clippy/tests/ui/unnecessary_to_owned.rs:34
↓ 148 callers
Method
to_string
(&self)
src/tools/clippy/tests/ui/format_args.rs:19
↓ 148 callers
Method
write_str
(&mut self, s: &str)
src/librustdoc/html/format.rs:74
↓ 147 callers
Function
args
Returns args for the subcommand itself (not for cargo)
src/bootstrap/check.rs:18
↓ 147 callers
Method
collect
(self)
src/test/ui/generic-associated-types/extended/lending_iterator.rs:29
↓ 147 callers
Method
expr
(&self)
src/tools/rust-analyzer/crates/syntax/src/ast/node_ext.rs:177
↓ 147 callers
Method
strip_prefix
Equivalent of [`Path::strip_prefix`] for `AbsPath`. Returns a relative path.
src/tools/rust-analyzer/crates/paths/src/lib.rs:172
↓ 145 callers
Method
iter
(&self)
compiler/rustc_index/src/vec.rs:163
↓ 144 callers
Method
delay_span_bug
( &self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>, )
compiler/rustc_errors/src/lib.rs:943
↓ 144 callers
Function
mk_sp
(lo: BytePos, hi: BytePos)
src/tools/rustfmt/src/utils.rs:348
↓ 144 callers
Method
skip
(&self, len: usize)
src/tools/rust-analyzer/crates/hir-def/src/path.rs:174
↓ 143 callers
Method
bits
(self)
compiler/rustc_target/src/abi/mod.rs:332
↓ 143 callers
Method
clone
(&self)
src/tools/rust-analyzer/crates/rust-analyzer/src/cli/lsif.rs:30
↓ 142 callers
Method
to_string
(&self)
src/tools/clippy/clippy_lints/src/returns.rs:88
↓ 142 callers
Method
with_hi
(&self, hi: BytePos)
compiler/rustc_span/src/lib.rs:480
↓ 141 callers
Method
fn_sig
(self)
compiler/rustc_hir/src/hir.rs:3460
↓ 141 callers
Method
output
Gets the result type, if one could be found. Note that the result type of a trait may not be specified.
src/tools/clippy/clippy_utils/src/ty.rs:547
↓ 139 callers
Method
all
Creates a `FileLines` that contains all lines in all files.
src/tools/rustfmt/src/config/file_lines.rs:199
↓ 139 callers
Method
load
even without panics, this helps for Miri backtraces
library/core/src/sync/atomic.rs:453
↓ 138 callers
Method
expect_local
(self)
compiler/rustc_span/src/def_id.rs:301
↓ 138 callers
Method
inputs
(&self)
compiler/rustc_hir/src/hir.rs:341
↓ 138 callers
Method
insert
(&mut self, param: Param, id: HirId)
src/tools/clippy/clippy_lints/src/only_used_in_recursion.rs:144
↓ 138 callers
Method
rebind
Wraps a `value` in a binder, using the same bound variables as the current `Binder`. This should not be used if the new value *changes the bound varia
compiler/rustc_middle/src/ty/sty.rs:1079
↓ 137 callers
Method
add
even without panics, this helps for Miri backtraces
library/core/src/ptr/mut_ptr.rs:998
↓ 137 callers
Method
contains
(self, other: Range)
src/tools/rustfmt/src/config/file_lines.rs:112
↓ 137 callers
Method
field
(&self, name: &Name)
src/tools/rust-analyzer/crates/hir-def/src/adt.rs:348
↓ 137 callers
Method
insert
Append specified `text` at the given `offset`
src/tools/rust-analyzer/crates/ide-db/src/source_change.rs:167
↓ 137 callers
Method
struct_span_err
( &self, sp: S, m: impl Into<DiagnosticMessage>, )
compiler/rustc_parse/src/parser/diagnostics.rs:251
↓ 137 callers
Method
try_into
(self)
library/core/src/convert/mod.rs:766
↓ 136 callers
Method
clone
(&self)
compiler/rustc_const_eval/src/transform/check_consts/resolver.rs:275
↓ 136 callers
Function
new
(f: u32)
src/test/run-make-fulldeps/save-analysis-fail/foo.rs:454
↓ 135 callers
Method
db
(&self)
src/tools/rust-analyzer/crates/ide-assists/src/assist_context.rs:84
↓ 135 callers
Method
map_err
(self, f: impl FnOnce(E) -> E2)
src/tools/rust-analyzer/crates/mbe/src/lib.rs:339
↓ 134 callers
Method
len
(&self)
library/std/src/io/readbuf.rs:85
↓ 134 callers
Method
space
(&mut self)
compiler/rustc_ast_pretty/src/pp/convenience.rs:54
↓ 133 callers
Method
def_kind
(self, def_id: impl IntoQueryParam<DefId>)
compiler/rustc_middle/src/ty/query.rs:383
↓ 132 callers
Method
define
Defines `name` in namespace `ns` of module `parent` to be `def` if it is not yet defined; otherwise, reports an error.
compiler/rustc_resolve/src/build_reduced_graph.rs:85
↓ 132 callers
Function
now
()
src/test/ui/associated-types/associated-types-normalize-unifield-struct.rs:17
↓ 131 callers
Function
c
()
src/test/ui/closure-expected-type/expect-infer-var-appearing-twice.rs:19
↓ 131 callers
Method
ends_with
(&self, suffix: &RelPath)
src/tools/rust-analyzer/crates/paths/src/lib.rs:178
↓ 131 callers
Function
into_raw
()
src/tools/miri/tests/pass/box.rs:9
↓ 130 callers
Method
lower_span
Intercept all spans entering HIR. Mark a span as relative to the current owning item.
compiler/rustc_ast_lowering/src/lib.rs:790
↓ 129 callers
Function
check_edit
(what: &str, ra_fixture_before: &str, ra_fixture_after: &str)
src/tools/rust-analyzer/crates/ide-completion/src/tests.rs:172
↓ 128 callers
Method
as_local
(self)
compiler/rustc_span/src/def_id.rs:295
↓ 127 callers
Method
as_mut
(self: Pin<&mut Self>)
src/tools/clippy/tests/ui/wrong_self_convention2.rs:96
↓ 127 callers
Method
into_iter
(self)
compiler/rustc_middle/src/ty/list.rs:194
↓ 127 callers
Method
kind
(&self)
src/tools/rust-analyzer/crates/hir-def/src/adt.rs:352
↓ 127 callers
Method
size
(self)
compiler/rustc_target/src/asm/mod.rs:652
↓ 127 callers
Method
zip
(self, other: Option<U>)
library/core/src/option.rs:1652
↓ 126 callers
Method
clone
(&self)
compiler/rustc_type_ir/src/sty.rs:267
↓ 126 callers
Method
insert
(self, value: V)
library/alloc/src/collections/btree/map/entry.rs:350
↓ 126 callers
Method
is_ok
(&self)
src/tools/clippy/tests/ui/nonminimal_bool_methods.rs:45
↓ 126 callers
Method
start
Starts a new node in the syntax tree. All nodes and tokens consumed between the `start` and the corresponding `Marker::complete` belong to the same no
src/tools/rust-analyzer/crates/parser/src/parser.rs:159
↓ 126 callers
Function
var
Retrieve an environment variable and add it to build dependency info. Build system executing the compiler will know that the variable was accessed dur
src/tools/rust-analyzer/crates/proc-macro-srv/src/abis/abi_1_63/proc_macro/mod.rs:1088
↓ 125 callers
Method
get
(&self, id: AttrId)
src/tools/rust-analyzer/crates/hir-def/src/attr.rs:76
↓ 125 callers
Method
success
(&self)
library/std/src/process.rs:1505
↓ 125 callers
Method
tcx
(&self)
compiler/rustc_codegen_gcc/src/context.rs:441
↓ 125 callers
Method
write_str
(&mut self, s: &str)
src/tools/rust-analyzer/crates/hir-ty/src/display.rs:176
↓ 124 callers
Method
ok_or_else
(self, err: F)
library/core/src/option.rs:1076
↓ 123 callers
Method
bump
Consume the next token if `kind` matches.
src/tools/rust-analyzer/crates/parser/src/parser.rs:166
↓ 123 callers
Method
exists
Returns `true` if the change is not [`Delete`](ChangeKind::Delete).
src/tools/rust-analyzer/crates/vfs/src/lib.rs:92
↓ 123 callers
Method
features
(self)
compiler/rustc_middle/src/ty/context.rs:1364
↓ 123 callers
Function
is_type_diagnostic_item
Checks if the type is equal to a diagnostic item. To check if a type implements a trait marked with a diagnostic item use [`implements_trait`]. For a
src/tools/clippy/clippy_utils/src/ty.rs:309
↓ 123 callers
Method
map_bound
(self, f: F)
compiler/rustc_middle/src/ty/sty.rs:1046
↓ 123 callers
Method
type_at
(&self, i: usize)
compiler/rustc_middle/src/ty/subst.rs:378
↓ 123 callers
Function
zip
(a: A, b: B)
library/core/src/iter/adapters/zip.rs:66
↓ 122 callers
Method
get
Get the current span, skipping non-local frames. This function is backed by a cache, and can be assumed to be very fast.
src/tools/miri/src/helpers.rs:969
↓ 122 callers
Function
span_lint_and_then
Like `span_lint` but allows to add notes, help and suggestions using a closure. If you need to customize your lint output a lot, use this function. I
src/tools/clippy/clippy_utils/src/diagnostics.rs:140
↓ 122 callers
Function
spawn
(_: F)
src/test/ui/traits/negative-impls/negated-auto-traits-rpass.rs:13
↓ 122 callers
Function
take
(dest: &mut T)
library/core/src/mem/mod.rs:845
↓ 121 callers
Method
len
(&self)
src/tools/rust-analyzer/crates/ide-db/src/search.rs:33
↓ 121 callers
Method
push
(&mut self, candidate: CandidateAssignment<'tcx>)
compiler/rustc_mir_transform/src/dest_prop.rs:244
↓ 121 callers
Method
text_range
(&self)
src/tools/rust-analyzer/crates/syntax/src/ptr.rs:65
↓ 120 callers
Method
as_deref
(&self)
library/core/src/option.rs:1103
↓ 120 callers
Method
borrow
(&self)
compiler/rustc_data_structures/src/sync.rs:433
↓ 120 callers
Method
clone
(&self)
compiler/rustc_middle/src/ty/context.rs:2125
↓ 120 callers
Function
once
(f: F)
src/tools/miri/tests/pass/closures.rs:25
↓ 120 callers
Method
set
Sets the `index`th bit.
compiler/rustc_index/src/bit_set.rs:2057
↓ 120 callers
Method
span_err
( &self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>, )
compiler/rustc_errors/src/lib.rs:902
↓ 119 callers
Method
ancestors
(&self)
library/std/src/path.rs:2204
↓ 119 callers
Function
f
(_x: ())
src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0035_weird_exprs.rs:21
↓ 119 callers
Method
hir_id
(&self)
compiler/rustc_hir/src/hir.rs:277
↓ 118 callers
Method
as_ptr
Obtain a raw pointer to the first element of this user slice.
library/std/src/sys/sgx/abi/usercalls/alloc.rs:666
↓ 118 callers
Method
clone
(&self)
compiler/rustc_builtin_macros/src/format_foreign.rs:815
↓ 118 callers
Method
look_ahead
Look-ahead `dist` tokens of `self.token` and get access to that token there. When `dist == 0` then the current token is looked at.
compiler/rustc_parse/src/parser/mod.rs:1083
↓ 118 callers
Method
to_owned
(&self)
src/test/ui/traits/auxiliary/issue_89119_intercrate_caching.rs:9
↓ 118 callers
Method
word_space
(&mut self, w: W)
compiler/rustc_ast_pretty/src/helpers.rs:5
↓ 117 callers
Function
copy_nonoverlapping
even without panics, this helps for Miri backtraces
library/core/src/intrinsics.rs:2346
↓ 117 callers
Method
count
Count the number of tokens recursively
src/tools/rust-analyzer/crates/tt/src/lib.rs:225
↓ 117 callers
Method
offset
(&self, line_col: LineCol)
src/tools/rust-analyzer/crates/ide-db/src/line_index.rs:103
↓ 117 callers
Method
take_while
(self, predicate: P)
library/core/src/iter/traits/iterator.rs:1204
↓ 116 callers
Method
expect
(&mut self, cond: Self::Value, expected: bool)
compiler/rustc_codegen_llvm/src/intrinsic.rs:399
↓ 116 callers
Method
len
Stacks are never empty
src/tools/miri/src/stacked_borrows/stack.rs:348
↓ 116 callers
Function
once
(value: T)
library/core/src/iter/sources/once.rs:55
↓ 116 callers
Method
push
(&mut self, name: &str)
src/tools/rust-analyzer/crates/hir-def/src/nameres/mod_resolution.rs:120
← previous
next →
301–400 of 93,053, ranked by callers