Skip to content

Commit a913143

Browse files
committed
---
yaml --- r: 165382 b: refs/heads/master c: e0cac48 h: refs/heads/master v: v3
1 parent eaa703f commit a913143

File tree

42 files changed

+660
-427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+660
-427
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: f8f2c7a9537c7f333b242f616aefb75a83860927
2+
refs/heads/master: e0cac488ac6ca16507da390429565b7879f76bb4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 658529467d9d69ac9e09cacf98a6d61d781c2c76
55
refs/heads/try: aee614fc4973262a5a68efc643026e2b1458d65b

trunk/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ fn compile_test_and_save_bitcode(config: &Config, props: &TestProps,
16661666
// FIXME (#9639): This needs to handle non-utf8 paths
16671667
let mut link_args = vec!("-L".to_string(),
16681668
aux_dir.as_str().unwrap().to_string());
1669-
let llvm_args = vec!("--emit=llvm-bc,obj".to_string(),
1669+
let llvm_args = vec!("--emit=bc,obj".to_string(),
16701670
"--crate-type=lib".to_string());
16711671
link_args.extend(llvm_args.into_iter());
16721672
let args = make_compile_args(config,

trunk/src/etc/rust-lldb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ TMPFILE=`mktemp /tmp/rust-lldb-commands.XXXXXX`
1919
trap "rm -f $TMPFILE; exit" INT TERM EXIT
2020

2121
# Find out where to look for the pretty printer Python module
22-
RUSTC_SYSROOT=`rustc --print sysroot`
22+
RUSTC_SYSROOT=`rustc -Zprint-sysroot`
2323

2424
# Write the LLDB script to the tempfile
2525
echo "command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_rust_formatters.py\"" >> $TMPFILE

trunk/src/librustc/middle/privacy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for VisiblePrivateTypesVisitor<'a, 'tcx> {
15051505
self.check_ty_param_bound(bound_pred.span, bound)
15061506
}
15071507
}
1508+
&ast::WherePredicate::RegionPredicate(_) => {}
15081509
&ast::WherePredicate::EqPredicate(ref eq_pred) => {
15091510
self.visit_ty(&*eq_pred.ty);
15101511
}

trunk/src/librustc/middle/resolve_lifetime.rs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,19 @@ impl<'a, 'v> Visitor<'v> for LifetimeContext<'a> {
206206
}
207207
for predicate in generics.where_clause.predicates.iter() {
208208
match predicate {
209-
&ast::WherePredicate::BoundPredicate(ast::WhereBoundPredicate{ ident,
209+
&ast::WherePredicate::BoundPredicate(ast::WhereBoundPredicate{ ref bounded_ty,
210210
ref bounds,
211-
span,
212211
.. }) => {
213-
self.visit_ident(span, ident);
212+
self.visit_ty(&**bounded_ty);
214213
visit::walk_ty_param_bounds_helper(self, bounds);
215214
}
215+
&ast::WherePredicate::RegionPredicate(ast::WhereRegionPredicate{ref lifetime,
216+
ref bound,
217+
.. }) => {
218+
219+
self.visit_lifetime_ref(lifetime);
220+
self.visit_lifetime_ref(bound);
221+
}
216222
&ast::WherePredicate::EqPredicate(ast::WhereEqPredicate{ id,
217223
ref path,
218224
ref ty,
@@ -545,9 +551,18 @@ fn early_bound_lifetime_names(generics: &ast::Generics) -> Vec<ast::Name> {
545551
}
546552
for predicate in generics.where_clause.predicates.iter() {
547553
match predicate {
548-
&ast::WherePredicate::BoundPredicate(ast::WhereBoundPredicate{ref bounds, ..}) => {
554+
&ast::WherePredicate::BoundPredicate(ast::WhereBoundPredicate{ref bounds,
555+
ref bounded_ty,
556+
..}) => {
557+
collector.visit_ty(&**bounded_ty);
549558
visit::walk_ty_param_bounds_helper(&mut collector, bounds);
550559
}
560+
&ast::WherePredicate::RegionPredicate(ast::WhereRegionPredicate{ref lifetime,
561+
ref bound,
562+
..}) => {
563+
collector.visit_lifetime_ref(lifetime);
564+
collector.visit_lifetime_ref(bound);
565+
}
551566
&ast::WherePredicate::EqPredicate(_) => unimplemented!()
552567
}
553568
}

0 commit comments

Comments
 (0)