Skip to content

Commit 72cfd5d

Browse files
committed
---
yaml --- r: 194484 b: refs/heads/try c: 1501f33 h: refs/heads/master v: v3
1 parent 15f2bb9 commit 72cfd5d

File tree

10 files changed

+59
-38
lines changed

10 files changed

+59
-38
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 242ed0b7c0f6a21096f2cc3e1ad1bdb176d02545
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a923278c6278c63468d74772c58dbf788e88f58c
5-
refs/heads/try: 8165bc14fbc8456c35dc54fb6255456bea30db59
5+
refs/heads/try: 1501f33e76f6f9621aa08fb0cbbc5f85a5ac7f0f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/mk/tests.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,11 @@ ifeq ($(CFG_OSTYPE),apple-darwin)
569569
CTEST_DISABLE_debuginfo-gdb = "gdb on darwin needs root"
570570
endif
571571

572+
ifeq ($(findstring android, $(CFG_TARGET)), android)
573+
CTEST_DISABLE_debuginfo-gdb =
574+
CTEST_DISABLE_debuginfo-lldb = "lldb tests are disabled on android"
575+
endif
576+
572577
# CTEST_DISABLE_NONSELFHOST_$(TEST_GROUP), if set, will cause that
573578
# test group to be disabled *unless* the target is able to build a
574579
# compiler (i.e. when the target triple is in the set of of host

branches/try/src/libcore/ops.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,10 @@ impl fmt::Debug for RangeFull {
995995
#[stable(feature = "rust1", since = "1.0.0")]
996996
pub struct Range<Idx> {
997997
/// The lower bound of the range (inclusive).
998+
#[stable(feature = "rust1", since = "1.0.0")]
998999
pub start: Idx,
9991000
/// The upper bound of the range (exclusive).
1001+
#[stable(feature = "rust1", since = "1.0.0")]
10001002
pub end: Idx,
10011003
}
10021004

@@ -1013,11 +1015,10 @@ impl<Idx: fmt::Debug> fmt::Debug for Range<Idx> {
10131015
#[stable(feature = "rust1", since = "1.0.0")]
10141016
pub struct RangeFrom<Idx> {
10151017
/// The lower bound of the range (inclusive).
1018+
#[stable(feature = "rust1", since = "1.0.0")]
10161019
pub start: Idx,
10171020
}
10181021

1019-
1020-
10211022
#[stable(feature = "rust1", since = "1.0.0")]
10221023
impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> {
10231024
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
@@ -1031,6 +1032,7 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> {
10311032
#[stable(feature = "rust1", since = "1.0.0")]
10321033
pub struct RangeTo<Idx> {
10331034
/// The upper bound of the range (exclusive).
1035+
#[stable(feature = "rust1", since = "1.0.0")]
10341036
pub end: Idx,
10351037
}
10361038

@@ -1041,7 +1043,6 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> {
10411043
}
10421044
}
10431045

1044-
10451046
/// The `Deref` trait is used to specify the functionality of dereferencing
10461047
/// operations like `*v`.
10471048
///

branches/try/src/librustc/middle/infer/error_reporting.rs

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -357,23 +357,9 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
357357
}
358358
};
359359

360-
let message_root_str = match trace.origin {
361-
infer::Misc(_) => "mismatched types",
362-
infer::MethodCompatCheck(_) => "method not compatible with trait",
363-
infer::ExprAssignable(_) => "mismatched types",
364-
infer::RelateTraitRefs(_) => "mismatched traits",
365-
infer::RelateSelfType(_) => "mismatched types",
366-
infer::RelateOutputImplTypes(_) => "mismatched types",
367-
infer::MatchExpressionArm(_, _) => "match arms have incompatible types",
368-
infer::IfExpression(_) => "if and else have incompatible types",
369-
infer::IfExpressionWithNoElse(_) => "if may be missing an else clause",
370-
infer::RangeExpression(_) => "start and end of range have incompatible types",
371-
infer::EquatePredicate(_) => "equality predicate not satisfied",
372-
};
373-
374360
span_err!(self.tcx.sess, trace.origin.span(), E0308,
375361
"{}: {} ({})",
376-
message_root_str,
362+
trace.origin,
377363
expected_found_str,
378364
ty::type_err_to_str(self.tcx, terr));
379365

@@ -1495,38 +1481,38 @@ impl<'a, 'tcx> ErrorReportingHelpers<'tcx> for InferCtxt<'a, 'tcx> {
14951481
infer::Subtype(ref trace) => {
14961482
let desc = match trace.origin {
14971483
infer::Misc(_) => {
1498-
format!("types are compatible")
1484+
"types are compatible"
14991485
}
15001486
infer::MethodCompatCheck(_) => {
1501-
format!("method type is compatible with trait")
1487+
"method type is compatible with trait"
15021488
}
15031489
infer::ExprAssignable(_) => {
1504-
format!("expression is assignable")
1490+
"expression is assignable"
15051491
}
15061492
infer::RelateTraitRefs(_) => {
1507-
format!("traits are compatible")
1493+
"traits are compatible"
15081494
}
15091495
infer::RelateSelfType(_) => {
1510-
format!("self type matches impl self type")
1496+
"self type matches impl self type"
15111497
}
15121498
infer::RelateOutputImplTypes(_) => {
1513-
format!("trait type parameters matches those \
1514-
specified on the impl")
1499+
"trait type parameters matches those \
1500+
specified on the impl"
15151501
}
15161502
infer::MatchExpressionArm(_, _) => {
1517-
format!("match arms have compatible types")
1503+
"match arms have compatible types"
15181504
}
15191505
infer::IfExpression(_) => {
1520-
format!("if and else have compatible types")
1506+
"if and else have compatible types"
15211507
}
15221508
infer::IfExpressionWithNoElse(_) => {
1523-
format!("if may be missing an else clause")
1509+
"if may be missing an else clause"
15241510
}
15251511
infer::RangeExpression(_) => {
1526-
format!("start and end of range have compatible types")
1512+
"start and end of range have compatible types"
15271513
}
15281514
infer::EquatePredicate(_) => {
1529-
format!("equality where clause is satisfied")
1515+
"equality where clause is satisfied"
15301516
}
15311517
};
15321518

@@ -1666,8 +1652,8 @@ impl<'a, 'tcx> ErrorReportingHelpers<'tcx> for InferCtxt<'a, 'tcx> {
16661652
infer::RelateRegionParamBound(span) => {
16671653
self.tcx.sess.span_note(
16681654
span,
1669-
&format!("...so that the declared lifetime parameter bounds \
1670-
are satisfied"));
1655+
"...so that the declared lifetime parameter bounds \
1656+
are satisfied");
16711657
}
16721658
infer::SafeDestructor(span) => {
16731659
self.tcx.sess.span_note(

branches/try/src/librustc/middle/infer/mod.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use middle::ty::replace_late_bound_regions;
2929
use middle::ty::{self, Ty};
3030
use middle::ty_fold::{TypeFolder, TypeFoldable};
3131
use std::cell::{RefCell};
32+
use std::fmt;
3233
use std::rc::Rc;
3334
use syntax::ast;
3435
use syntax::codemap;
@@ -128,6 +129,30 @@ pub enum TypeOrigin {
128129
EquatePredicate(Span),
129130
}
130131

132+
impl TypeOrigin {
133+
fn as_str(&self) -> &'static str {
134+
match self {
135+
&TypeOrigin::Misc(_) |
136+
&TypeOrigin::RelateSelfType(_) |
137+
&TypeOrigin::RelateOutputImplTypes(_) |
138+
&TypeOrigin::ExprAssignable(_) => "mismatched types",
139+
&TypeOrigin::RelateTraitRefs(_) => "mismatched traits",
140+
&TypeOrigin::MethodCompatCheck(_) => "method not compatible with trait",
141+
&TypeOrigin::MatchExpressionArm(_, _) => "match arms have incompatible types",
142+
&TypeOrigin::IfExpression(_) => "if and else have incompatible types",
143+
&TypeOrigin::IfExpressionWithNoElse(_) => "if may be missing an else clause",
144+
&TypeOrigin::RangeExpression(_) => "start and end of range have incompatible types",
145+
&TypeOrigin::EquatePredicate(_) => "equality predicate not satisfied",
146+
}
147+
}
148+
}
149+
150+
impl fmt::Display for TypeOrigin {
151+
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(),fmt::Error> {
152+
fmt::Display::fmt(self.as_str(), f)
153+
}
154+
}
155+
131156
/// See `error_reporting.rs` for more details
132157
#[derive(Clone, Debug)]
133158
pub enum ValuePairs<'tcx> {

branches/try/src/libstd/process.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ mod tests {
748748
cmd
749749
}
750750

751+
#[cfg(not(target_arch = "aarch64"))]
751752
#[test]
752753
fn test_keep_current_working_dir() {
753754
use os;

branches/try/src/test/debuginfo/c-style-enum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-aarch64
1112
// min-lldb-version: 310
1213

1314
// compile-flags:-g

branches/try/src/test/debuginfo/issue12886.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010

1111
// ignore-windows failing on 64-bit bots FIXME #17638
1212
// ignore-lldb
13+
// ignore-aarch64
1314

1415
// compile-flags:-g
1516

1617
// gdb-command:run
1718
// gdb-command:next
18-
// gdb-check:[...]33[...]s
19+
// gdb-check:[...]34[...]s
1920
// gdb-command:continue
2021

2122
#![omit_gdb_pretty_printer_section]

branches/try/src/test/run-pass/extern-call-deep2.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(std_misc, libc)]
11+
#![feature(libc)]
1212

1313
extern crate libc;
14-
use std::thread::Thread;
14+
use std::thread;
1515

1616
mod rustrt {
1717
extern crate libc;
@@ -42,9 +42,9 @@ fn count(n: libc::uintptr_t) -> libc::uintptr_t {
4242
pub fn main() {
4343
// Make sure we're on a task with small Rust stacks (main currently
4444
// has a large stack)
45-
let _t = Thread::spawn(move|| {
45+
thread::scoped(move|| {
4646
let result = count(1000);
4747
println!("result = {}", result);
4848
assert_eq!(result, 1000);
49-
});
49+
}).join();
5050
}

branches/try/src/test/run-pass/sigpipe-should-be-ignored.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// Be sure that when a SIGPIPE would have been received that the entire process
1212
// doesn't die in a ball of fire, but rather it's gracefully handled.
1313

14+
// ignore-aarch64
1415
// pretty-expanded FIXME #23616
1516

1617
use std::env;

0 commit comments

Comments
 (0)