Skip to content

Instantly share code, notes, and snippets.

;;; ripgrep.el --- from end for ripgrep
;;
;; Copyright (C) 2016 Nicholas Matsakis
;;
;; Adapted from ack-and-a-half.el, which is licensed as follows:
;;
;; Copyright (C) 2011 Jacob Helwig
;;
;; Author: Jacob Helwig <jacob+ack * technosorcery.net>
;; Version: 0.0.1
#!/bin/bash
if [[ "$1" == "" ]]; then
echo Usage: rust-ctags dirs...
exit 1
fi
if [ ! -f "$DOTFILES/etc/ctags.rust" ]; then
echo ctags.rust definition not found, is '$DOTFILES' set?
echo Searched at: '$DOTFILES/etc/ctags.rust' == "'"$DOTFILES/etc/ctags.rust"'"
/home/nmatsakis/versioned/cloc-rust
files blank comment code unsafe %unsafe fns unsafe fns %unsafe fns
---------------------------- ------- ------- --------- ------ -------- --------- ----- ------------ -------------
libstd 248 7838 11856 81977 27653 0 5669 346 0
librustc_back 93 468 959 4761 143 0 149 8 0
libfmt_macros 1 39 30 708 0 0 31 0 0
libflate 2 21 27 186 24 0 11 0 0
librustc_borrowck 20 1164 506 9522 1126 0 456 0 0
liballoc_system 1 33 12 274 169 0 28 15 0
libr
diff --git a/src/librustc/middle/region.rs b/src/librustc/middle/region.rs
index d1d5e9d..34fc383 100644
--- a/src/librustc/middle/region.rs
+++ b/src/librustc/middle/region.rs
@@ -1041,10 +1041,11 @@ fn resolve_local<'a, 'tcx>(visitor: &mut RegionResolutionVisitor<'a, 'tcx>,
}
}
-fn resolve_item_like<'a, 'tcx, F>(visitor: &mut RegionResolutionVisitor<'a, 'tcx>, walk: F)
+/// Executes `walk` in a "cleared" context with no parents or
make[1]: Entering directory '/home/nmatsakis/versioned/rustc-benchmarks/servo-script-20170228'
./mach cargo -- rustc -p script -- -Ztime-passes
Compiling lzw v0.10.0
Compiling pkg-config v0.3.9
Compiling siphasher v0.2.1
Compiling glob v0.2.11
Compiling regex-syntax v0.4.0
Compiling slab v0.3.0
Compiling toml v0.2.1
Compiling mac v0.1.1
make[1]: Entering directory '/home/nmatsakis/versioned/rustc-benchmarks/servo-script-20170228'
./mach cargo -- rustc -p script -- -Ztime-passes
Compiling heapsize v0.3.8
Compiling adler32 v0.3.0
Compiling signpost v0.1.0 (https://github.com/pcwalton/signpost.git#7ed71250)
Compiling procedural-masquerade v0.1.1
Compiling atomic_refcell v0.1.0
Compiling inflate v0.1.1
Compiling mozjs_sys v0.0.0 (https://github.com/servo/mozjs#7cd72d8c)
Compiling bitflags v0.7.0
make[1]: Entering directory '/home/nmatsakis/versioned/rustc-benchmarks/servo-script-20170228'
./mach cargo -- rustc -p script -- -Ztime-passes
Compiling pkg-config v0.3.9
Compiling adler32 v0.3.0
Compiling mac v0.1.1
Compiling traitobject v0.0.1
Compiling inflate v0.1.1
Compiling num-traits v0.1.36
Compiling ref_slice v1.1.1
Compiling matches v0.1.4
  • fn describe_def(&self, def: DefId) -> Option<Def>;
  • fn def_span(&self, sess: &Session, def: DefId) -> Span;
  • fn stability(&self, def: DefId) -> Option<attr::Stability>;
  • fn deprecation(&self, def: DefId) -> Option<attr::Deprecation>;
  • fn visibility(&self, def: DefId) -> ty::Visibility;
  • fn visible_parent_map<'a>(&'a self) -> ::std::cell::Ref<'a, DefIdMap<DefId>>;
  • fn item_generics_cloned(&self, def: DefId) -> ty::Generics;
  • fn item_attrs(&self, def_id: DefId) -> Vec<ast::Attribute>;
  • fn fn_arg_names(&self, did: DefId) -> Vec<ast::Name>;
  • fn implementations_of_trait(&self, filter: Option<DefId>) -> Vec<DefId>;

Regression report 4f32e0dfb287c2b3d0c48cb3b8090b3902960084 vs. 8a1353316eed07ac74452fd2908023d431f4a5f6

  • From: 4f32e0dfb287c2b3d0c48cb3b8090b3902960084
  • To: 8a1353316eed07ac74452fd2908023d431f4a5f6

Coverage

  • 8600 crates tested: 6541 working / 1929 broken / 35 regressed / 11 fixed / 84 unknown.

Regressions

extern crate rayon;
extern crate futures;
use futures::lazy;
use rayon::prelude::*;
use rayon::iter::internal::*;
// use rayon::Scope;
pub trait PipelineMethods
where Self: Sized + IntoIterator, Self::Item: Send,