Skip to content

Commit 7cd63c3

Browse files
committed
---
yaml --- r: 223197 b: refs/heads/auto c: 38d627f h: refs/heads/master i: 223195: fe2be6c v: v3
1 parent e13ecd2 commit 7cd63c3

File tree

6 files changed

+10
-33
lines changed

6 files changed

+10
-33
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 859d2954ed974e4d81ea4c20140f6f15f4c6077e
11+
refs/heads/auto: 38d627fe480c92e6123cff7c2f050b1943c89d64
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/doc/reference.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,29 +1501,7 @@ have an implementation for `Shape`. Multiple supertraits are separated by `+`,
15011501
`trait Circle : Shape + PartialEq { }`. In an implementation of `Circle` for a
15021502
given type `T`, methods can refer to `Shape` methods, since the typechecker
15031503
checks that any type with an implementation of `Circle` also has an
1504-
implementation of `Shape`:
1505-
1506-
```rust
1507-
struct Foo;
1508-
1509-
trait Shape { fn area(&self) -> f64; }
1510-
trait Circle : Shape { fn radius(&self) -> f64; }
1511-
# impl Shape for Foo {
1512-
# fn area(&self) -> f64 {
1513-
# 0.0
1514-
# }
1515-
# }
1516-
impl Circle for Foo {
1517-
fn radius(&self) -> f64 {
1518-
println!("calling area: {}", self.area());
1519-
1520-
0.0
1521-
}
1522-
}
1523-
1524-
let c = Foo;
1525-
c.radius();
1526-
```
1504+
implementation of `Shape`.
15271505

15281506
In type-parameterized functions, methods of the supertrait may be called on
15291507
values of subtrait-bound type parameters. Referring to the previous example of

branches/auto/src/librustc_trans/trans/base.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,12 +1299,11 @@ pub fn init_function<'a, 'tcx>(fcx: &'a FunctionContext<'a, 'tcx>,
12991299
let init_val = C_u8(fcx.ccx, adt::DTOR_NEEDED_HINT);
13001300
let llname = &format!("dropflag_hint_{}", id);
13011301
debug!("adding hint {}", llname);
1302-
let ptr = alloc_ty(entry_bcx, tcx.types.u8, llname);
1302+
let ty = tcx.types.u8;
1303+
let ptr = alloc_ty(entry_bcx, ty, llname);
13031304
Store(entry_bcx, init_val, ptr);
1304-
let ty = tcx.mk_ptr(ty::TypeAndMut { ty: tcx.types.u8, mutbl: ast::MutMutable });
13051305
let flag = datum::Lvalue::new_dropflag_hint("base::init_function");
1306-
let datum = datum::Datum::new(ptr, ty, flag);
1307-
datum
1306+
datum::Datum::new(ptr, ty, flag)
13081307
};
13091308

13101309
let (var, datum) = match info {

branches/auto/src/libstd/fs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,8 +855,6 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
855855
/// Note that if `from` and `to` both point to the same file, then the file
856856
/// will likely get truncated by this operation.
857857
///
858-
/// On success, the total number of bytes copied is returned.
859-
///
860858
/// # Errors
861859
///
862860
/// This function will return an error in the following situations, but is not

branches/auto/src/libstd/rand/os.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ mod imp {
205205
_dummy: (),
206206
}
207207

208-
enum SecRandom {}
208+
// Fake definition; this is actually a struct, but we don't use the
209+
// contents here.
210+
type SecRandom = c_void;
209211

210212
#[allow(non_upper_case_globals)]
211213
const kSecRandomDefault: *const SecRandom = 0 as *const SecRandom;

branches/auto/src/libstd/rt/unwind/seh64_gnu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ pub struct EXCEPTION_RECORD {
6060
ExceptionInformation: [ULONG_PTR; 15],
6161
}
6262

63-
pub enum CONTEXT {}
64-
pub enum UNWIND_HISTORY_TABLE {}
63+
pub type CONTEXT = c_void;
64+
pub type UNWIND_HISTORY_TABLE = c_void;
6565

6666
#[repr(C)]
6767
pub struct RUNTIME_FUNCTION {

0 commit comments

Comments
 (0)