Skip to content

Commit 8173c5f

Browse files
committed
---
yaml --- r: 192717 b: refs/heads/try c: 7e3ee02 h: refs/heads/master i: 192715: 841317f v: v3
1 parent 74fb64b commit 8173c5f

File tree

5 files changed

+4
-26
lines changed

5 files changed

+4
-26
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: 557d4346a26266d2eb13f6b0adf106b8873b0da1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a923278c6278c63468d74772c58dbf788e88f58c
5-
refs/heads/try: e7122a5a09d06aedd1d27d14c3ac38c40b0a7425
5+
refs/heads/try: 7e3ee02006ec53ff176fc3490ba01eb2a9c823b8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc_typeck/check/coercion.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -381,29 +381,6 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
381381
None
382382
}
383383
}
384-
(&ty::ty_trait(ref data_a), &ty::ty_trait(ref data_b)) => {
385-
// For now, we only support upcasts from
386-
// `Foo+Send` to `Foo` (really, any time there are
387-
// fewer builtin bounds then before). These are
388-
// convenient because they don't require any sort
389-
// of change to the vtable at runtime.
390-
if data_a.bounds.builtin_bounds != data_b.bounds.builtin_bounds &&
391-
data_a.bounds.builtin_bounds.is_superset(&data_b.bounds.builtin_bounds)
392-
{
393-
let bounds_a1 = ty::ExistentialBounds {
394-
region_bound: data_a.bounds.region_bound,
395-
builtin_bounds: data_b.bounds.builtin_bounds,
396-
projection_bounds: data_a.bounds.projection_bounds.clone(),
397-
};
398-
let ty_a1 = ty::mk_trait(tcx, data_a.principal.clone(), bounds_a1);
399-
match self.fcx.infcx().try(|_| self.subtype(ty_a1, ty_b)) {
400-
Ok(_) => Some((ty_b, ty::UnsizeUpcast(ty_b))),
401-
Err(_) => None,
402-
}
403-
} else {
404-
None
405-
}
406-
}
407384
(_, &ty::ty_trait(ref data)) => {
408385
Some((ty_b, ty::UnsizeVtable(ty::TyTrait {
409386
principal: data.principal.clone(),

branches/try/src/libstd/sys/windows/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl Iterator for Env {
109109
if *self.cur == 0 { return None }
110110
let p = &*self.cur;
111111
let mut len = 0;
112-
while *(p as *const _).offset(len) != 0 {
112+
while *(p as *const u16).offset(len) != 0 {
113113
len += 1;
114114
}
115115
let p = p as *const u16;

branches/try/src/libstd/thread/local.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ macro_rules! __thread_local_inner {
176176
}
177177
};
178178

179+
#[allow(trivial_casts)]
179180
#[cfg(any(not(any(target_os = "macos", target_os = "linux")), target_arch = "aarch64"))]
180181
const _INIT: ::std::thread::__local::__impl::KeyInner<$t> = {
181182
::std::thread::__local::__impl::KeyInner {

branches/try/src/libterm/win.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl<T: Write+Send+'static> WinConsole<T> {
126126
}
127127
Some(box WinConsole { buf: out,
128128
def_foreground: fg, def_background: bg,
129-
foreground: fg, background: bg } as Box<Terminal<T>+Send>)
129+
foreground: fg, background: bg })
130130
}
131131
}
132132

0 commit comments

Comments
 (0)