Skip to content

Commit e781a4f

Browse files
committed
---
yaml --- r: 130204 b: refs/heads/master c: 0ad4644 h: refs/heads/master v: v3
1 parent 664153e commit e781a4f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 27f87c611fa57b0320f72f483c60e7b4d70ddc2a
2+
refs/heads/master: 0ad4644ae1474b5443e34d273e5553612c6d9364
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 67b97ab6d2b7de9b69fd97dc171fcf8feec932ff
55
refs/heads/try: 28d5878c1f0465c11c8e7a3085008b0c592d48d0

trunk/src/librustc/lint/context.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ impl LintStore {
103103
}
104104

105105
pub fn get_lint_groups<'t>(&'t self) -> Vec<(&'static str, Vec<LintId>, bool)> {
106-
self.lint_groups.iter().map(|(k, &(ref v, b))| (*k, v.clone(), b)).collect()
106+
self.lint_groups.iter().map(|(k, v)| (*k,
107+
v.ref0().clone(),
108+
*v.ref1())).collect()
107109
}
108110

109111
pub fn register_pass(&mut self, sess: Option<&Session>,
@@ -210,7 +212,7 @@ impl LintStore {
210212
match self.by_name.find_equiv(&lint_name.as_slice()) {
211213
Some(&lint_id) => self.set_level(lint_id, (level, CommandLine)),
212214
None => {
213-
match self.lint_groups.iter().map(|(&x, &(ref y, _))| (x, y.clone()))
215+
match self.lint_groups.iter().map(|(&x, pair)| (x, pair.ref0().clone()))
214216
.collect::<HashMap<&'static str, Vec<LintId>>>()
215217
.find_equiv(&lint_name.as_slice()) {
216218
Some(v) => {

trunk/src/librustdoc/html/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub fn run(mut krate: clean::Crate, external_html: &ExternalHtml, dst: Path) ->
312312
}).unwrap_or(HashMap::new());
313313
let mut cache = Cache {
314314
impls: HashMap::new(),
315-
external_paths: paths.iter().map(|(&k, &(ref v, _))| (k, v.clone()))
315+
external_paths: paths.iter().map(|(&k, v)| (k, v.ref0().clone()))
316316
.collect(),
317317
paths: paths,
318318
implementors: HashMap::new(),

0 commit comments

Comments
 (0)