Skip to content

Commit d3719ee

Browse files
committed
---
yaml --- r: 183934 b: refs/heads/master c: 60f507b h: refs/heads/master v: v3
1 parent 67dea36 commit d3719ee

File tree

6 files changed

+18
-20
lines changed

6 files changed

+18
-20
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: 872ce479550a3d805babb0ca409dfc3cf6f52309
2+
refs/heads/master: 60f507be45f7ae8f5ff119316def0ccb3735a479
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77

trunk/src/librustc/middle/expr_use_visitor.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ use middle::ty::{MethodOrigin, MethodParam, MethodTypeParam};
2929
use middle::ty::{MethodStatic, MethodStaticClosure};
3030
use util::ppaux::Repr;
3131

32-
use std::marker;
3332
use syntax::{ast, ast_util};
3433
use syntax::ptr::P;
3534
use syntax::codemap::Span;
@@ -128,16 +127,14 @@ pub enum MatchMode {
128127
MovingMatch,
129128
}
130129

131-
#[derive(PartialEq,Debug)]
132-
enum TrackMatchMode<T> {
130+
#[derive(Copy, PartialEq, Debug)]
131+
enum TrackMatchMode {
133132
Unknown,
134133
Definite(MatchMode),
135134
Conflicting,
136135
}
137136

138-
impl<T> marker::Copy for TrackMatchMode<T> {}
139-
140-
impl<T> TrackMatchMode<T> {
137+
impl TrackMatchMode {
141138
// Builds up the whole match mode for a pattern from its constituent
142139
// parts. The lattice looks like this:
143140
//
@@ -931,7 +928,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
931928
return true;
932929
}
933930

934-
fn arm_move_mode(&mut self, discr_cmt: mc::cmt<'tcx>, arm: &ast::Arm) -> TrackMatchMode<Span> {
931+
fn arm_move_mode(&mut self, discr_cmt: mc::cmt<'tcx>, arm: &ast::Arm) -> TrackMatchMode {
935932
let mut mode = Unknown;
936933
for pat in &arm.pats {
937934
self.determine_pat_move_mode(discr_cmt.clone(), &**pat, &mut mode);
@@ -966,7 +963,7 @@ impl<'d,'t,'tcx,TYPER:mc::Typer<'tcx>> ExprUseVisitor<'d,'t,'tcx,TYPER> {
966963
fn determine_pat_move_mode(&mut self,
967964
cmt_discr: mc::cmt<'tcx>,
968965
pat: &ast::Pat,
969-
mode: &mut TrackMatchMode<Span>) {
966+
mode: &mut TrackMatchMode) {
970967
debug!("determine_pat_move_mode cmt_discr={} pat={}", cmt_discr.repr(self.tcx()),
971968
pat.repr(self.tcx()));
972969
return_if_err!(self.mc.cat_pattern(cmt_discr, pat, |_mc, cmt_pat, pat| {

trunk/src/librustc/middle/infer/higher_ranked/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub trait HigherRankedRelations<'tcx> {
3131
where T : Combineable<'tcx>;
3232
}
3333

34-
trait InferCtxtExt<'tcx> {
34+
trait InferCtxtExt {
3535
fn tainted_regions(&self, snapshot: &CombinedSnapshot, r: ty::Region) -> Vec<ty::Region>;
3636

3737
fn region_vars_confined_to_snapshot(&self,
@@ -371,7 +371,7 @@ fn fold_regions_in<'tcx, T, F>(tcx: &ty::ctxt<'tcx>,
371371
}))
372372
}
373373

374-
impl<'a,'tcx> InferCtxtExt<'tcx> for InferCtxt<'a,'tcx> {
374+
impl<'a,'tcx> InferCtxtExt for InferCtxt<'a,'tcx> {
375375
fn tainted_regions(&self, snapshot: &CombinedSnapshot, r: ty::Region) -> Vec<ty::Region> {
376376
self.region_vars.tainted(&snapshot.region_vars_snapshot, r)
377377
}

trunk/src/librustc_typeck/check/method/suggest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,10 @@ pub fn all_traits<'a>(ccx: &'a CrateCtxt) -> AllTraits<'a> {
306306
// Crate-local:
307307
//
308308
// meh.
309-
struct Visitor<'a, 'b: 'a, 'tcx: 'a + 'b> {
309+
struct Visitor<'a> {
310310
traits: &'a mut AllTraitsVec,
311311
}
312-
impl<'v,'a, 'b, 'tcx> visit::Visitor<'v> for Visitor<'a, 'b, 'tcx> {
312+
impl<'v, 'a> visit::Visitor<'v> for Visitor<'a> {
313313
fn visit_item(&mut self, i: &'v ast::Item) {
314314
match i.node {
315315
ast::ItemTrait(..) => {

trunk/src/libstd/old_io/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ pub enum IoErrorKind {
433433
}
434434

435435
/// A trait that lets you add a `detail` to an IoError easily
436-
trait UpdateIoError<T> {
436+
trait UpdateIoError {
437437
/// Returns an IoError with updated description and detail
438438
fn update_err<D>(self, desc: &'static str, detail: D) -> Self where
439439
D: FnOnce(&IoError) -> String;
@@ -446,7 +446,7 @@ trait UpdateIoError<T> {
446446
fn update_desc(self, desc: &'static str) -> Self;
447447
}
448448

449-
impl<T> UpdateIoError<T> for IoResult<T> {
449+
impl<T> UpdateIoError for IoResult<T> {
450450
fn update_err<D>(self, desc: &'static str, detail: D) -> IoResult<T> where
451451
D: FnOnce(&IoError) -> String,
452452
{

trunk/src/libsyntax/std_inject.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ fn no_prelude(attrs: &[ast::Attribute]) -> bool {
4545
attr::contains_name(attrs, "no_implicit_prelude")
4646
}
4747

48-
struct StandardLibraryInjector<'a> {
49-
alt_std_name: Option<String>
48+
struct StandardLibraryInjector {
49+
alt_std_name: Option<String>,
5050
}
5151

52-
impl<'a> fold::Folder for StandardLibraryInjector<'a> {
52+
impl fold::Folder for StandardLibraryInjector {
5353
fn fold_crate(&mut self, mut krate: ast::Crate) -> ast::Crate {
5454

5555
// The name to use in `extern crate "name" as std;`
@@ -80,9 +80,10 @@ fn inject_crates_ref(krate: ast::Crate, alt_std_name: Option<String>) -> ast::Cr
8080
fold.fold_crate(krate)
8181
}
8282

83-
struct PreludeInjector<'a>;
83+
struct PreludeInjector;
8484

85-
impl<'a> fold::Folder for PreludeInjector<'a> {
85+
86+
impl fold::Folder for PreludeInjector {
8687
fn fold_crate(&mut self, mut krate: ast::Crate) -> ast::Crate {
8788
// only add `use std::prelude::*;` if there wasn't a
8889
// `#![no_implicit_prelude]` at the crate level.

0 commit comments

Comments
 (0)