Skip to content

Commit 7eccea0

Browse files
committed
---
yaml --- r: 109846 b: refs/heads/master c: 77d1978 h: refs/heads/master v: v3
1 parent 954e236 commit 7eccea0

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
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: 0ce17d941dbeab048de21dd72f893d3dab982988
2+
refs/heads/master: 77d1978f8e6535fdde242058f626b916a36b74c3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d

trunk/src/librustc/middle/borrowck/mod.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ pub struct RestrictionSet {
326326
bits: u32
327327
}
328328

329+
#[allow(dead_code)] // potentially useful
329330
pub static RESTR_EMPTY: RestrictionSet = RestrictionSet {bits: 0b0000};
330331
pub static RESTR_MUTATE: RestrictionSet = RestrictionSet {bits: 0b0001};
331332
pub static RESTR_FREEZE: RestrictionSet = RestrictionSet {bits: 0b0010};
@@ -334,10 +335,6 @@ impl RestrictionSet {
334335
pub fn intersects(&self, restr: RestrictionSet) -> bool {
335336
(self.bits & restr.bits) != 0
336337
}
337-
338-
pub fn contains_all(&self, restr: RestrictionSet) -> bool {
339-
(self.bits & restr.bits) == restr.bits
340-
}
341338
}
342339

343340
impl BitOr<RestrictionSet,RestrictionSet> for RestrictionSet {
@@ -862,17 +859,6 @@ impl<'a> BorrowckCtxt<'a> {
862859
pub fn cmt_to_str(&self, cmt: mc::cmt) -> ~str {
863860
self.mc().cmt_to_str(cmt)
864861
}
865-
866-
pub fn mut_to_str(&self, mutbl: ast::Mutability) -> ~str {
867-
self.mc().mut_to_str(mutbl)
868-
}
869-
870-
pub fn mut_to_keyword(&self, mutbl: ast::Mutability) -> &'static str {
871-
match mutbl {
872-
ast::MutImmutable => "",
873-
ast::MutMutable => "mut",
874-
}
875-
}
876862
}
877863

878864
impl DataFlowOperator for LoanDataFlowOperator {

0 commit comments

Comments
 (0)