use rustc_data_structures::fx::FxHashMap; use rustc_hir::def::DefKind; use rustc_hir::def_id::{DefId, LocalDefId}; Expand Down Expand Up @@ -63,7 +65,7 @@ enum FnKind { } fn fn_kind<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> FnKind { debug_assert!(matches!(tc...
/// use std::collections::HashMap; /// /// use std::sync::LazyLock; @@ -61,8 +59,6 @@ union Data<T, F> { /// ``` /// Initialize fields with `LazyLock`. /// ``` /// #![feature(lazy_cell)] /// /// use std::sync::LazyLock; /// /// #[derive(Debug)] @...
We cross- reference and store this data in HashMaps and use it to look up data for the IDE. Reading, processing, and storing the analysis data is handled by the rls-analysis crate Communicating with IDEs The RLS communicates with IDEs via the Language Server protocol. The LS protocol uses...
unwrap().as_hashmap().unwrap_or_default(); let title = data.get("title").unwrap_or(&Pod::String("".to_string())).as_string().unwrap_or_default(); let slug = data.get("slug").unwrap_or(&Pod::String("".to_string())).as_string().unwrap_or_default(); let content = ...
visited: FxHashMap<BasicBlock, Rc<RefCell<MixedBitSet<MovePathIndex>>>, } impl<'a, 'mir, 'tcx> DropsReachable<'a, 'mir, 'tcx> { fn visit(&mut self, block: BasicBlock) { let move_set_size = self.move_data.move_paths.len(); let make_new_path_set = || Rc::new(RefCell::new...
(); let mut hasher = hash_map::DefaultHasher::new(); hasher.write(dirname.to_string().as_bytes()); dst.join(format!("{:016x}-{}", hasher.finish(), basename)) .with_extension("o") } else { dst.join(file).with_extension("o") }; let obj = if !obj.starts_with(&dst) {...
// (i.e. in `HashMap` in the `std::collections::HashMap` path). // For the same reasons, avoids searching for any path imports for inputs with their length less than 2 symbols // (but shows all associated items for any input length). // // .Import configuration // ### Import...
Available add-ons Advanced Security Enterprise-grade security features GitHub Copilot Enterprise-grade AI features Premium Support Enterprise-grade 24/7 support Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read ...
Premium Support Enterprise-grade 24/7 support Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feed...
use rustc_hash::FxHashMap; use std::error::Error; Expand Down Expand Up @@ -42,18 +45,50 @@ fn test_facts(all_facts: &AllFacts, algorithms: &[Algorithm]) { } } // Check that the "naive subset errors" are a subset of the "insensitive ones". for (naive_point, naive_origins...