12 matches across 1 files for TODO lang:Rust path:compiler/rustc_codegen_cranelift/src/constant.rs
snippet_mode: auto · sorted by relevance
compiler/rustc_codegen_cranelift/src/constant.rs RUST 12 matches · showing 5 view file →
15
16pub(crate) struct ConstantCx {
17 todo: Vec<TodoItem>,
18 anon_allocs: FxHashMap<AllocId, DataId>,
19}
· · ·
20
21#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
22enum TodoItem {
23 Alloc(AllocId),
24 Static(DefId),
· · ·
27impl ConstantCx {
28 pub(crate) fn new() -> Self {
29 ConstantCx { todo: vec![], anon_allocs: FxHashMap::default() }
30 }
31
· · ·
37pub(crate) fn codegen_static(tcx: TyCtxt<'_>, module: &mut dyn Module, def_id: DefId) -> DataId {
38 let mut constants_cx = ConstantCx::new();
39 constants_cx.todo.push(TodoItem::Static(def_id));
40 constants_cx.finalize(tcx, module);
41
· · ·
247 mutability: rustc_hir::Mutability,
248) -> DataId {
249 cx.todo.push(TodoItem::Alloc(alloc_id));
250 *cx.anon_allocs
251 .entry(alloc_id)
+ 7 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.