]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #30036 - mitaa:doc_id, r=alexcrichton
bors [Tue, 8 Dec 2015 20:15:53 +0000 (20:15 +0000)]
Auto merge of #30036 - mitaa:doc_id, r=alexcrichton

This expands the code which generates unique IDs for Markdown headers within a single block to each rendered page.

fixes #25001
fixes #29449

8 years agoAuto merge of #29995 - DanielJCampbell:Expanded-Span-Printing, r=nrc
bors [Tue, 8 Dec 2015 18:23:57 +0000 (18:23 +0000)]
Auto merge of #29995 - DanielJCampbell:Expanded-Span-Printing, r=nrc

r? @nrc

8 years agoAdded pretty-printing for span expansion chains through span_to_expanded_string.
Daniel Campbell [Tue, 24 Nov 2015 22:05:27 +0000 (11:05 +1300)]
Added pretty-printing for span expansion chains through span_to_expanded_string.

8 years agoAuto merge of #30087 - petrochenkov:indi, r=nrc
bors [Mon, 7 Dec 2015 22:28:45 +0000 (22:28 +0000)]
Auto merge of #30087 - petrochenkov:indi, r=nrc

I've measured the time/memory consumption before and after - the difference is lost in statistical noise, so it's mostly a code simplification.
Sizes of `enum`s are not affected.

r? @nrc

I wonder if AST/HIR visitors could run faster if `P`s are systematically removed (except for cases where they control `enum` sizes). Theoretically they should.
Remaining unnecessary `P`s can't be easily removed because many folders accept `P<X>`s as arguments, but these folders can be converted to accept `X`s instead without loss of efficiency.
When I have a mood for some mindless refactoring again, I'll probably try to convert the folders, remove remaining `P`s and measure again.

8 years agoAuto merge of #30256 - GuillaumeGomez:patch-5, r=Manishearth
bors [Mon, 7 Dec 2015 19:31:33 +0000 (19:31 +0000)]
Auto merge of #30256 - GuillaumeGomez:patch-5, r=Manishearth

r? @Manishearth

8 years agoAdd E0264 error explanation
Guillaume Gomez [Mon, 7 Dec 2015 14:55:51 +0000 (15:55 +0100)]
Add E0264 error explanation

8 years agoRemove some unnecessary indirection from HIR structures
Vadim Petrochenkov [Mon, 7 Dec 2015 14:17:41 +0000 (17:17 +0300)]
Remove some unnecessary indirection from HIR structures

8 years agoAuto merge of #30202 - oli-obk:fix/const_index_feature_gate, r=Aatch
bors [Mon, 7 Dec 2015 11:36:57 +0000 (11:36 +0000)]
Auto merge of #30202 - oli-obk:fix/const_index_feature_gate, r=Aatch

see https://github.com/rust-lang/rust/issues/29947#issuecomment-161781257

I also added some missing tests

8 years agoAuto merge of #30188 - tshepang:lookup_addr-example, r=alexcrichton
bors [Mon, 7 Dec 2015 07:11:19 +0000 (07:11 +0000)]
Auto merge of #30188 - tshepang:lookup_addr-example, r=alexcrichton

8 years agoAuto merge of #30247 - bluss:revert-array-clone, r=alexcrichton
bors [Mon, 7 Dec 2015 02:16:13 +0000 (02:16 +0000)]
Auto merge of #30247 - bluss:revert-array-clone, r=alexcrichton

Revert "PR #30130 Implement `Clone` for more arrays"

This reverts commit e22a64e8d8d4da46c74f878ce1c23ad1c88982e8.

This caused a regression such that types like `[[u8; 256]; 4]`
no longer implemented Clone. This previously worked due to Clone
for `[T; N]` (N in 0 to 32) being implemented for T: Copy.

Due to fixed size arrays not implementing Clone for sizes above 32,
the new implementation requiring T: Clone would not allow
`[[u8; 256]; 4]` to be Clone.

Fixes #30244

Due to changing back, this is technically a [breaking-change],
albeit for a behavior that existed for a very short time.

8 years agoAdd regression test for Clone for [[T; 256]; 4] where T: Copy and not Clone
Ulrik Sverdrup [Mon, 7 Dec 2015 00:50:35 +0000 (01:50 +0100)]
Add regression test for Clone for [[T; 256]; 4] where T: Copy and not Clone

8 years agoRevert "PR #30130 Implement `Clone` for more arrays"
Ulrik Sverdrup [Sun, 6 Dec 2015 23:29:21 +0000 (00:29 +0100)]
Revert "PR #30130 Implement `Clone` for more arrays"

This reverts commit e22a64e8d8d4da46c74f878ce1c23ad1c88982e8.

This caused a regression such that types like `[[u8; 256]; 4]`
no longer implemented Clone. This previously worked due to Clone
for `[T; N]` (N in 0 to 32) being implemented for T: Copy.

Due to fixed size arrays not implementing Clone for sizes above 32,
the new implementation requiring T: Clone would not allow
`[[u8; 256]; 4]` to be Clone.

8 years agodoc: add example for std::net::lookup_addr
Tshepang Lekhonkhobe [Thu, 3 Dec 2015 19:09:21 +0000 (21:09 +0200)]
doc: add example for std::net::lookup_addr

8 years agoAuto merge of #30241 - Manishearth:diag-30236, r=eddyb
bors [Sun, 6 Dec 2015 17:50:44 +0000 (17:50 +0000)]
Auto merge of #30241 - Manishearth:diag-30236, r=eddyb

r? @eddyb

8 years agoCorrect span for unused type parameter error in type alias (fixes #30236)
Manish Goregaokar [Sun, 6 Dec 2015 16:55:53 +0000 (22:25 +0530)]
Correct span for unused type parameter error in type alias (fixes #30236)

8 years agoAuto merge of #30234 - vyp:doc-typo, r=apasel422
bors [Sun, 6 Dec 2015 13:23:43 +0000 (13:23 +0000)]
Auto merge of #30234 - vyp:doc-typo, r=apasel422

8 years agodoc(book/error-handling): fix typo
xd1le [Sun, 6 Dec 2015 09:32:49 +0000 (20:32 +1100)]
doc(book/error-handling): fix typo

8 years agoAuto merge of #30221 - thyrgle:concurrency_doc, r=alexcrichton
bors [Sun, 6 Dec 2015 08:50:49 +0000 (08:50 +0000)]
Auto merge of #30221 - thyrgle:concurrency_doc, r=alexcrichton

The example code in the Channels subsection of the rust book give warnings about

    unused result which must be used, #[warn(unused_must_use)] on by default

Added a small pattern match to resolve those warnings.

8 years agoAuto merge of #30222 - mitaa:fqn#2, r=alexcrichton
bors [Sun, 6 Dec 2015 06:49:03 +0000 (06:49 +0000)]
Auto merge of #30222 - mitaa:fqn#2, r=alexcrichton

I missed this in #30149

fixes #30198

r? @alexcrichton

8 years agoAuto merge of #30187 - alexcrichton:stabilize-1.6, r=aturon
bors [Sun, 6 Dec 2015 04:12:54 +0000 (04:12 +0000)]
Auto merge of #30187 - alexcrichton:stabilize-1.6, r=aturon

This commit is the standard API stabilization commit for the 1.6 release cycle.
The list of issues and APIs below have all been through their cycle-long FCP and
the libs team decisions are listed below

Stabilized APIs

* `Read::read_exact`
* `ErrorKind::UnexpectedEof` (renamed from `UnexpectedEOF`)
* libcore -- this was a bit of a nuanced stabilization, the crate itself is now
  marked as `#[stable]` and the methods appearing via traits for primitives like
  `char` and `str` are now also marked as stable. Note that the extension traits
  themeselves are marked as unstable as they're imported via the prelude. The
  `try!` macro was also moved from the standard library into libcore to have the
  same interface. Otherwise the functions all have copied stability from the
  standard library now.
* `fs::DirBuilder`
* `fs::DirBuilder::new`
* `fs::DirBuilder::recursive`
* `fs::DirBuilder::create`
* `os::unix::fs::DirBuilderExt`
* `os::unix::fs::DirBuilderExt::mode`
* `vec::Drain`
* `vec::Vec::drain`
* `string::Drain`
* `string::String::drain`
* `vec_deque::Drain`
* `vec_deque::VecDeque::drain`
* `collections::hash_map::Drain`
* `collections::hash_map::HashMap::drain`
* `collections::hash_set::Drain`
* `collections::hash_set::HashSet::drain`
* `collections::binary_heap::Drain`
* `collections::binary_heap::BinaryHeap::drain`
* `Vec::extend_from_slice` (renamed from `push_all`)
* `Mutex::get_mut`
* `Mutex::into_inner`
* `RwLock::get_mut`
* `RwLock::into_inner`
* `Iterator::min_by_key` (renamed from `min_by`)
* `Iterator::max_by_key` (renamed from `max_by`)

Deprecated APIs

* `ErrorKind::UnexpectedEOF` (renamed to `UnexpectedEof`)
* `OsString::from_bytes`
* `OsStr::to_cstring`
* `OsStr::to_bytes`
* `fs::walk_dir` and `fs::WalkDir`
* `path::Components::peek`
* `slice::bytes::MutableByteVector`
* `slice::bytes::copy_memory`
* `Vec::push_all` (renamed to `extend_from_slice`)
* `Duration::span`
* `IpAddr`
* `SocketAddr::ip`
* `Read::tee`
* `io::Tee`
* `Write::broadcast`
* `io::Broadcast`
* `Iterator::min_by` (renamed to `min_by_key`)
* `Iterator::max_by` (renamed to `max_by_key`)
* `net::lookup_addr`

New APIs (still unstable)

* `<[T]>::sort_by_key` (added to mirror `min_by_key`)

Closes #27585
Closes #27704
Closes #27707
Closes #27710
Closes #27711
Closes #27727
Closes #27740
Closes #27744
Closes #27799
Closes #27801
cc #27801 (doesn't close as `Chars` is still unstable)
Closes #28968

8 years agoAuto merge of #30212 - GuillaumeGomez:css_split, r=brson
bors [Sun, 6 Dec 2015 01:40:20 +0000 (01:40 +0000)]
Auto merge of #30212 - GuillaumeGomez:css_split, r=brson

r? @brson

8 years agostd: Stabilize APIs for the 1.6 release
Alex Crichton [Thu, 3 Dec 2015 01:31:49 +0000 (17:31 -0800)]
std: Stabilize APIs for the 1.6 release

This commit is the standard API stabilization commit for the 1.6 release cycle.
The list of issues and APIs below have all been through their cycle-long FCP and
the libs team decisions are listed below

Stabilized APIs

* `Read::read_exact`
* `ErrorKind::UnexpectedEof` (renamed from `UnexpectedEOF`)
* libcore -- this was a bit of a nuanced stabilization, the crate itself is now
  marked as `#[stable]` and the methods appearing via traits for primitives like
  `char` and `str` are now also marked as stable. Note that the extension traits
  themeselves are marked as unstable as they're imported via the prelude. The
  `try!` macro was also moved from the standard library into libcore to have the
  same interface. Otherwise the functions all have copied stability from the
  standard library now.
* The `#![no_std]` attribute
* `fs::DirBuilder`
* `fs::DirBuilder::new`
* `fs::DirBuilder::recursive`
* `fs::DirBuilder::create`
* `os::unix::fs::DirBuilderExt`
* `os::unix::fs::DirBuilderExt::mode`
* `vec::Drain`
* `vec::Vec::drain`
* `string::Drain`
* `string::String::drain`
* `vec_deque::Drain`
* `vec_deque::VecDeque::drain`
* `collections::hash_map::Drain`
* `collections::hash_map::HashMap::drain`
* `collections::hash_set::Drain`
* `collections::hash_set::HashSet::drain`
* `collections::binary_heap::Drain`
* `collections::binary_heap::BinaryHeap::drain`
* `Vec::extend_from_slice` (renamed from `push_all`)
* `Mutex::get_mut`
* `Mutex::into_inner`
* `RwLock::get_mut`
* `RwLock::into_inner`
* `Iterator::min_by_key` (renamed from `min_by`)
* `Iterator::max_by_key` (renamed from `max_by`)

Deprecated APIs

* `ErrorKind::UnexpectedEOF` (renamed to `UnexpectedEof`)
* `OsString::from_bytes`
* `OsStr::to_cstring`
* `OsStr::to_bytes`
* `fs::walk_dir` and `fs::WalkDir`
* `path::Components::peek`
* `slice::bytes::MutableByteVector`
* `slice::bytes::copy_memory`
* `Vec::push_all` (renamed to `extend_from_slice`)
* `Duration::span`
* `IpAddr`
* `SocketAddr::ip`
* `Read::tee`
* `io::Tee`
* `Write::broadcast`
* `io::Broadcast`
* `Iterator::min_by` (renamed to `min_by_key`)
* `Iterator::max_by` (renamed to `max_by_key`)
* `net::lookup_addr`

New APIs (still unstable)

* `<[T]>::sort_by_key` (added to mirror `min_by_key`)

Closes #27585
Closes #27704
Closes #27707
Closes #27710
Closes #27711
Closes #27727
Closes #27740
Closes #27744
Closes #27799
Closes #27801
cc #27801 (doesn't close as `Chars` is still unstable)
Closes #28968

8 years agoUses unwrap instead of pattern matching
Christopher Sumnicht [Sat, 5 Dec 2015 23:01:05 +0000 (15:01 -0800)]
Uses unwrap instead of pattern matching

8 years agoAdd tests
mitaa [Sat, 5 Dec 2015 22:09:20 +0000 (23:09 +0100)]
Add tests

8 years agoAuto merge of #30177 - retep998:handling-threads, r=alexcrichton
bors [Sat, 5 Dec 2015 20:49:16 +0000 (20:49 +0000)]
Auto merge of #30177 - retep998:handling-threads, r=alexcrichton

Allows a `HANDLE` to be extracted from a `JoinHandle` on Windows.
Allows a `pthread_t` to be extracted from a `JoinHandle` everywhere else.

Because https://github.com/rust-lang/rust/pull/29461 was closed.

r? @alexcrichton

8 years agoAuto merge of #30215 - SimonSapin:ipv6-display-alloc, r=brson
bors [Sat, 5 Dec 2015 17:58:46 +0000 (17:58 +0000)]
Auto merge of #30215 - SimonSapin:ipv6-display-alloc, r=brson

8 years agofix const index feature-gate regression
Oliver Schneider [Fri, 4 Dec 2015 14:35:07 +0000 (15:35 +0100)]
fix const index feature-gate regression

8 years agoAuto merge of #30102 - jFransham:feature/better-lifetime-errors, r=Manishearth
bors [Sat, 5 Dec 2015 12:52:30 +0000 (12:52 +0000)]
Auto merge of #30102 - jFransham:feature/better-lifetime-errors, r=Manishearth

Fixes #30086

8 years agoReuse `record_extern_fqn`
mitaa [Sat, 5 Dec 2015 10:58:04 +0000 (11:58 +0100)]
Reuse `record_extern_fqn`

These locations erroneously used the local item-path instead of the
extern item-path.

8 years agoResolved warnings about unused result
Christopher Sumnicht [Sat, 5 Dec 2015 11:17:18 +0000 (03:17 -0800)]
Resolved warnings about unused result

8 years agoAuto merge of #30207 - jwworth:pull-request-1449250353, r=apasel422
bors [Sat, 5 Dec 2015 10:58:37 +0000 (10:58 +0000)]
Auto merge of #30207 - jwworth:pull-request-1449250353, r=apasel422

This fixes a double word typo, 'can'.

8 years agoRemove allocations in `impl Display for Ipv6Addr`
Simon Sapin [Fri, 4 Dec 2015 23:44:16 +0000 (00:44 +0100)]
Remove allocations in `impl Display for Ipv6Addr`

8 years agoAuto merge of #30185 - fhahn:improve-borrowck-public-accessibility, r=pnkfelix
bors [Sat, 5 Dec 2015 09:08:14 +0000 (09:08 +0000)]
Auto merge of #30185 - fhahn:improve-borrowck-public-accessibility, r=pnkfelix

This PR makes `AnalysisData` and`BorrowckCtxt` public. Those types are returned by the public function `build_borrowck_dataflow_data_for_fn` and are needed if a caller wants to pass on the return values.

It also removes `FnPartsWithCFG`, which required callers of  `build_borrowck_dataflow_data_for_fn` to have a reference to a `CFG` with the same lifetime as `FnParts`, which is more limiting than required.

8 years agoAuto merge of #30211 - pnkfelix:fix-getopts-for-issue-30204, r=alexcrichton
bors [Sat, 5 Dec 2015 05:30:47 +0000 (05:30 +0000)]
Auto merge of #30211 - pnkfelix:fix-getopts-for-issue-30204, r=alexcrichton

Fix internal `getopts` so `--a=b=c` acts like `--a b=c` rather than `--a b`.

Fix #30204

8 years agoAuto merge of #30210 - nagisa:tweak-man, r=alexcrichton
bors [Sat, 5 Dec 2015 03:39:45 +0000 (03:39 +0000)]
Auto merge of #30210 - nagisa:tweak-man, r=alexcrichton

r? @alexcrichton

8 years agoAdd JoinHandleExt to get the pthread_t on unix platforms
Peter Atashian [Fri, 4 Dec 2015 02:58:00 +0000 (21:58 -0500)]
Add JoinHandleExt to get the pthread_t on unix platforms

Signed-off-by: Peter Atashian <retep998@gmail.com>
8 years agoAsRawHandle and IntoRawHandle for JoinHandle
Peter Atashian [Thu, 29 Oct 2015 20:54:09 +0000 (16:54 -0400)]
AsRawHandle and IntoRawHandle for JoinHandle
This allows users to get the HANDLE of a spawned thread on Windows

Signed-off-by: Peter Atashian <retep998@gmail.com>
8 years agoAuto merge of #30205 - alexcrichton:fix-dist, r=brson
bors [Sat, 5 Dec 2015 00:42:37 +0000 (00:42 +0000)]
Auto merge of #30205 - alexcrichton:fix-dist, r=brson

Now that AUTHORS.txt no longer exists we shouldn't try to package it.

8 years agoAuto merge of #30130 - tbu-:pr_array_clone, r=alexcrichton
bors [Fri, 4 Dec 2015 22:52:02 +0000 (22:52 +0000)]
Auto merge of #30130 - tbu-:pr_array_clone, r=alexcrichton

[breaking-change]

8 years agoExpand run-make test with regression tests for #30204
Felix S. Klock II [Fri, 4 Dec 2015 21:02:48 +0000 (22:02 +0100)]
Expand run-make test with regression tests for #30204

Fix #30204.

8 years agoChange internal `getopts` so `--a=b=c` acts like `--a b=c` rather than `--a b`.
Felix S. Klock II [Fri, 4 Dec 2015 21:02:09 +0000 (22:02 +0100)]
Change internal `getopts` so `--a=b=c` acts like `--a b=c` rather than `--a b`.

This is an adaption of

 https://github.com/rust-lang-nursery/getopts/commit/8ec916b86afce0a2a9100b7327b12b5ffcb2cabb

including its unit test.

8 years agoAuto merge of #30173 - sgrif:sg-fix-time-bug, r=alexcrichton
bors [Fri, 4 Dec 2015 21:01:03 +0000 (21:01 +0000)]
Auto merge of #30173 - sgrif:sg-fix-time-bug, r=alexcrichton

Currently if you add a duration which should lead to 0 nanos and 1
additional second, we end up with no additional seconds, and 1000000000
nanos.

8 years agoTweak manpage’s emit section
Simonas Kazlauskas [Fri, 4 Dec 2015 19:11:04 +0000 (21:11 +0200)]
Tweak manpage’s emit section

8 years agoAuto merge of #30084 - oli-obk:const_fn, r=pnkfelix
bors [Fri, 4 Dec 2015 17:47:18 +0000 (17:47 +0000)]
Auto merge of #30084 - oli-obk:const_fn, r=pnkfelix

8 years agoFix typo
Jake Worth [Fri, 4 Dec 2015 17:32:36 +0000 (12:32 -0500)]
Fix typo

8 years agomk: Fix `make dist`
Alex Crichton [Fri, 4 Dec 2015 16:55:02 +0000 (08:55 -0800)]
mk: Fix `make dist`

Now that AUTHORS.txt no longer exists we shouldn't try to package it.

8 years agoFix the time overflow on mac as well
Sean Griffin [Fri, 4 Dec 2015 16:49:35 +0000 (09:49 -0700)]
Fix the time overflow on mac as well

8 years agoAuto merge of #30192 - jwworth:pull-request-1449185301, r=alexcrichton
bors [Fri, 4 Dec 2015 11:46:44 +0000 (11:46 +0000)]
Auto merge of #30192 - jwworth:pull-request-1449185301, r=alexcrichton

This fixes a double word typo, 'of'.

8 years agoDon't use an explicit temporary for cloning an array
Tobias Bucher [Tue, 1 Dec 2015 23:33:50 +0000 (23:33 +0000)]
Don't use an explicit temporary for cloning an array

8 years agoImplement `Clone` for arrays without using slice patterns
Tobias Bucher [Tue, 1 Dec 2015 19:53:08 +0000 (19:53 +0000)]
Implement `Clone` for arrays without using slice patterns

8 years agoImplement `Clone` for `[T; 0]` to `[T; 32]` if `T: Clone`
Tobias Bucher [Tue, 1 Dec 2015 03:05:32 +0000 (03:05 +0000)]
Implement `Clone` for `[T; 0]` to `[T; 32]` if `T: Clone`

8 years agoAuto merge of #29850 - Kimundi:attributes_that_make_a_statement, r=pnkfelix
bors [Fri, 4 Dec 2015 08:46:29 +0000 (08:46 +0000)]
Auto merge of #29850 - Kimundi:attributes_that_make_a_statement, r=pnkfelix

See https://github.com/rust-lang/rfcs/pull/16 and https://github.com/rust-lang/rust/issues/15701

- Added syntax support for attributes on expressions and all syntax nodes in statement position.
- Extended `#[cfg]` folder to allow removal of statements, and
of expressions in optional positions like expression lists and trailing
block expressions.
- Extended lint checker to recognize lint levels on expressions and
locals.
- As per RFC, attributes are not yet accepted on `if` expressions.

Examples:
  ```rust
let x = y;
{
        ...
}
assert_eq!((1, #[cfg(unset)] 2, 3), (1, 3));

let FOO = 0;
```

Implementation wise, there are a few rough corners and open questions:
- The parser work ended up a bit ugly.
- The pretty printer change was based mostly on guessing.
- Similar to the `if` case, there are some places in the grammar where a new `Expr` node starts,
  but where it seemed weird to accept attributes and hence the parser doesn't. This includes:
  - const expressions in patterns
  - in the middle of an postfix operator chain (that is, after `.`, before indexing, before calls)
  - on range expressions, since `#[attr] x .. y` parses as  `(#[attr] x) .. y`, which is inconsistent with
    `#[attr] .. y` which would parse as `#[attr] (.. y)`
- Attributes are added as additional `Option<Box<Vec<Attribute>>>` fields in expressions and locals.
- Memory impact has not been measured yet.
- A cfg-away trailing expression in a block does not currently promote the previous `StmtExpr` in a block to a new trailing expr. That is to say, this won't work:
```rust
let x = {
    #[cfg(foo)]
    Foo { data: x }
    #[cfg(not(foo))]
    Foo { data: y }
};
```
- One-element tuples can have their inner expression removed to become Unit, but just Parenthesis can't. Eg, `(#[cfg(unset)] x,) == ()` but `(#[cfg(unset)] x) == error`. This seemed reasonable to me since tuples and unit are type constructors, but could probably be argued either way.
- Attributes on macro nodes are currently unconditionally dropped during macro expansion, which seemed fine since macro disappear at that point?
- Attributes on `ast::ExprParens` will be prepend-ed to the inner expression in the hir folder.
- The work on pretty printer tests for this did trigger, but not fix errors regarding macros:
  - expression `foo![]` prints as `foo!()`
  - expression `foo!{}` prints as `foo!()`
  - statement `foo![];` prints as `foo!();`
  - statement `foo!{};` prints as `foo!();`
  - statement `foo!{}` triggers a `None` unwrap ICE.

8 years agoAuto merge of #30189 - crumblingstatue:patch-1, r=alexcrichton
bors [Fri, 4 Dec 2015 06:05:08 +0000 (06:05 +0000)]
Auto merge of #30189 - crumblingstatue:patch-1, r=alexcrichton

Replace the old link pointing to an out-of-date gist with a
link to the lazy_static crate on crates.io.

We also don't need to state the author, as the crates.io page
shows the authors and owners.

8 years agoAuto merge of #30190 - tshepang:dir_builder-example, r=alexcrichton
bors [Fri, 4 Dec 2015 03:26:46 +0000 (03:26 +0000)]
Auto merge of #30190 - tshepang:dir_builder-example, r=alexcrichton

8 years agoIgnore rpass-fulldeps test in cross compile tests
Marvin Löbel [Fri, 4 Dec 2015 02:47:53 +0000 (03:47 +0100)]
Ignore rpass-fulldeps test in cross compile tests

8 years agoAuto merge of #30183 - retep998:min-align, r=alexcrichton
bors [Fri, 4 Dec 2015 01:42:10 +0000 (01:42 +0000)]
Auto merge of #30183 - retep998:min-align, r=alexcrichton

This fixes it so the Rust allocator on Windows 32-bit doesn't think the system allocator is aligned to 16 when it is really only aligned to 8.

8 years agoSplit rustdoc css to modify it more easily
Guillaume Gomez [Fri, 4 Dec 2015 00:54:59 +0000 (01:54 +0100)]
Split rustdoc css to modify it more easily

8 years agoAddress review comments
mitaa [Thu, 3 Dec 2015 23:48:59 +0000 (00:48 +0100)]
Address review comments

8 years agoFix typo
Jake Worth [Thu, 3 Dec 2015 23:29:00 +0000 (18:29 -0500)]
Fix typo

8 years agoAuto merge of #30149 - mitaa:fqn, r=alexcrichton
bors [Thu, 3 Dec 2015 23:09:30 +0000 (23:09 +0000)]
Auto merge of #30149 - mitaa:fqn, r=alexcrichton

Fixes #30109

8 years agoUse the extern item-path for documentation links
mitaa [Thu, 3 Dec 2015 22:11:19 +0000 (23:11 +0100)]
Use the extern item-path for documentation links

The local item-path includes the local crates path to the extern crate
declaration which breaks cross-crate rustdoc links if the extern crate
is not linked into the crate root or renamed via `extern foo as bar`.

8 years agodoc: add example for std::fs::DirBuilder
Tshepang Lekhonkhobe [Thu, 3 Dec 2015 19:50:09 +0000 (21:50 +0200)]
doc: add example for std::fs::DirBuilder

8 years agoAdd a `build-aux-docs` directive to compiletest
mitaa [Thu, 3 Dec 2015 21:19:58 +0000 (22:19 +0100)]
Add a `build-aux-docs` directive to compiletest

This flag causes the documentation for all `aux-build` files to
be built, which happens prior to running/building the parent test.

8 years agoAuto merge of #29999 - SingingTree:libterm_unwrapping, r=alexcrichton
bors [Thu, 3 Dec 2015 19:32:57 +0000 (19:32 +0000)]
Auto merge of #29999 - SingingTree:libterm_unwrapping, r=alexcrichton

This removes a number of instances of unwrap and replaces them with
pattern matching.

This is in response to rust issue #29992.

8 years agoLink to lazy_static crate in Design FAQ
Mika Attila [Thu, 3 Dec 2015 19:11:29 +0000 (20:11 +0100)]
Link to lazy_static crate in Design FAQ

Replace the old link pointing to an out-of-date gist with a
link to the lazy_static crate on crates.io.

We also don't need to state the author, as the crates.io page
shows the authors and owners.

8 years agoMake public borrowck api more accessible
Florian Hahn [Thu, 3 Dec 2015 10:07:08 +0000 (11:07 +0100)]
Make public borrowck api more accessible

8 years agoAuto merge of #30167 - GuillaumeGomez:patch-3, r=Manishearth
bors [Thu, 3 Dec 2015 16:40:14 +0000 (16:40 +0000)]
Auto merge of #30167 - GuillaumeGomez:patch-3, r=Manishearth

r? @Manishearth

8 years agoAdd E0400 error explanation
Guillaume Gomez [Thu, 3 Dec 2015 09:50:57 +0000 (10:50 +0100)]
Add E0400 error explanation

8 years agoFix tests for SystemTime addition on mac and ios
Sean Griffin [Thu, 3 Dec 2015 15:27:32 +0000 (08:27 -0700)]
Fix tests for SystemTime addition on mac and ios

Those platforms don't support nanosecond precision, so adding 1
nanosecond does nothing.

8 years agoAuto merge of #30180 - tbu-:pr_isize_to_i32, r=arielb1
bors [Thu, 3 Dec 2015 12:48:14 +0000 (12:48 +0000)]
Auto merge of #30180 - tbu-:pr_isize_to_i32, r=arielb1

s/isize/i32

8 years agoAuto merge of #30171 - nikomatsakis:re-enable-mir, r=arielb1
bors [Thu, 3 Dec 2015 06:44:14 +0000 (06:44 +0000)]
Auto merge of #30171 - nikomatsakis:re-enable-mir, r=arielb1

Don't think there are any known regressions, but then I am still way behind on my GH notifications. cc @rust-lang/compiler thoughts?

8 years agolibterm: bring across changes from term
Bryce Van Dyk [Mon, 23 Nov 2015 09:03:52 +0000 (22:03 +1300)]
libterm: bring across changes from term

This brings across changes made to the term library to libterm. This
includes removing instances or unwrap, fixing format string handling, and
removing a TODO.

This fix does not bring all changes across, as term now relies on cargo
deps that cannot be brought into the rust build at this stage, but has
attempted as best to cross port changes not relying on this. This notably
limits extra functionality since implemented int he Terminal trait in
Term.

This is in partly in response to rust issue #29992.

8 years agoAuto merge of #30169 - shepmaster:for-loop-into-iterator, r=steveklabnik
bors [Thu, 3 Dec 2015 04:34:43 +0000 (04:34 +0000)]
Auto merge of #30169 - shepmaster:for-loop-into-iterator, r=steveklabnik

8 years agoAuto merge of #30176 - brson:no-more-authors, r=steveklabnik
bors [Thu, 3 Dec 2015 02:40:29 +0000 (02:40 +0000)]
Auto merge of #30176 - brson:no-more-authors, r=steveklabnik

Keeping this file up to date requires hours of work every release,
even with the script. It is a fool's errand and we shall not do it
any longer.

8 years agoMIN_ALIGN is definitely 8 on 32-bit x86, at least on Windows.
Peter Atashian [Thu, 3 Dec 2015 02:03:21 +0000 (21:03 -0500)]
MIN_ALIGN is definitely 8 on 32-bit x86, at least on Windows.

Signed-off-by: Peter Atashian <retep998@gmail.com>
8 years agoInitialize the ID map with known values
mitaa [Thu, 3 Dec 2015 01:19:23 +0000 (02:19 +0100)]
Initialize the ID map with known values

8 years agoAuto merge of #30165 - dotdash:no_null_elim, r=alexcrichton
bors [Wed, 2 Dec 2015 23:18:11 +0000 (23:18 +0000)]
Auto merge of #30165 - dotdash:no_null_elim, r=alexcrichton

This pass causes mis-optimizations in some cases and is probably no
longer really important for us, so let's disable it for now.

Fixes #30081

8 years agoGenerate unique IDs for each rustdoc HTML page
mitaa [Wed, 2 Dec 2015 22:49:18 +0000 (23:49 +0100)]
Generate unique IDs for each rustdoc HTML page

8 years agoMove ID generator to a more suited location
mitaa [Wed, 2 Dec 2015 23:06:26 +0000 (00:06 +0100)]
Move ID generator to a more suited location

8 years agoRemove AUTHORS.txt and add-authors.sh
Brian Anderson [Wed, 2 Dec 2015 22:16:08 +0000 (22:16 +0000)]
Remove AUTHORS.txt and add-authors.sh

Keeping this file up to date requires hours of work every release,
even with the script. It is a fool's errand and we shall not do it
any longer.

8 years agoFixed make tidy error
Sean Griffin [Wed, 2 Dec 2015 22:01:58 +0000 (15:01 -0700)]
Fixed make tidy error

8 years agoEnsure two `SystemTime`s are equal when nanos add to exactly 1B
Sean Griffin [Wed, 2 Dec 2015 20:55:35 +0000 (13:55 -0700)]
Ensure two `SystemTime`s are equal when nanos add to exactly 1B

Currently if you add a duration which should lead to 0 nanos and 1
additional second, we end up with no additional seconds, and 1000000000
nanos.

8 years agoAuto merge of #30146 - steveklabnik:doc_string_intro, r=brson
bors [Wed, 2 Dec 2015 20:40:58 +0000 (20:40 +0000)]
Auto merge of #30146 - steveklabnik:doc_string_intro, r=brson

Part of #29376

8 years agoNow that MIR regressions are fixed, re-enable MIR for all users.
Niko Matsakis [Wed, 2 Dec 2015 18:35:27 +0000 (13:35 -0500)]
Now that MIR regressions are fixed, re-enable MIR for all users.

8 years agoClarify that a for loop uses `IntoIterator`
Jake Goulding [Wed, 2 Dec 2015 19:15:46 +0000 (14:15 -0500)]
Clarify that a for loop uses `IntoIterator`

8 years agoAuto merge of #30133 - jseyfried:fix_regression, r=alexcrichton
bors [Wed, 2 Dec 2015 17:54:30 +0000 (17:54 +0000)]
Auto merge of #30133 - jseyfried:fix_regression, r=alexcrichton

r? @nikomatsakis

8 years agoDisable the null check elimination pass
Björn Steinbrink [Wed, 2 Dec 2015 17:09:33 +0000 (18:09 +0100)]
Disable the null check elimination pass

This pass causes mis-optimizations in some cases and is probably no
longer really important for us, so let's disable it for now.

Fixes #30081

8 years agoWrite better module-level and type-level docs for String
Steve Klabnik [Tue, 1 Dec 2015 18:39:48 +0000 (13:39 -0500)]
Write better module-level and type-level docs for String

Part of #29376

8 years agoAuto merge of #30161 - JIghtuse:master, r=steveklabnik
bors [Wed, 2 Dec 2015 15:06:37 +0000 (15:06 +0000)]
Auto merge of #30161 - JIghtuse:master, r=steveklabnik

8 years agos/isize/i32
Tobias Bucher [Wed, 2 Dec 2015 09:06:28 +0000 (09:06 +0000)]
s/isize/i32

8 years agoAuto merge of #30160 - adambadawy:fix_wait_with_output_typo, r=bluss
bors [Wed, 2 Dec 2015 07:36:40 +0000 (07:36 +0000)]
Auto merge of #30160 - adambadawy:fix_wait_with_output_typo, r=bluss

r? @steveklabnik

8 years agoAuto merge of #30157 - brson:mk, r=sfackler
bors [Wed, 2 Dec 2015 05:31:44 +0000 (05:31 +0000)]
Auto merge of #30157 - brson:mk, r=sfackler

This dates from the stone-ages. We always configure LLVM with all
supported targets.

8 years agobook: Provide link to tuple structs in type aliases chapter
Boris Egorov [Wed, 2 Dec 2015 04:47:53 +0000 (10:47 +0600)]
book: Provide link to tuple structs in type aliases chapter

8 years agoFix typo in src/libstd/process.rs
Adam Badawy [Wed, 2 Dec 2015 04:12:01 +0000 (23:12 -0500)]
Fix typo in src/libstd/process.rs

8 years agoAuto merge of #30155 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 2 Dec 2015 02:43:04 +0000 (02:43 +0000)]
Auto merge of #30155 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #30129, #30134, #30136, #30144, #30150, #30153, #30154
- Failed merges:

8 years agomk: Remove obsolete comment
Brian Anderson [Wed, 2 Dec 2015 02:13:32 +0000 (02:13 +0000)]
mk: Remove obsolete comment

This dates from the stone-ages. We always configure LLVM with all
supported targets.

8 years agoRollup merge of #30154 - salty-horse:guessing_panic, r=steveklabnik
Steve Klabnik [Wed, 2 Dec 2015 00:01:42 +0000 (19:01 -0500)]
Rollup merge of #30154 - salty-horse:guessing_panic, r=steveklabnik

The text mentions ```return```, but what's actually happening is a ```panic!```.

8 years agoRollup merge of #30153 - durka:patch-11, r=steveklabnik
Steve Klabnik [Wed, 2 Dec 2015 00:01:42 +0000 (19:01 -0500)]
Rollup merge of #30153 - durka:patch-11, r=steveklabnik

I think this fixes #30137. I basically just repeated some details that were scattered around other places in this document, and emphasized that you probably don't want an `extern crate` or `mod` statement to end up inside a function.

8 years agoRollup merge of #30150 - steveklabnik:fix_exe_suffix, r=alexcrichton
Steve Klabnik [Wed, 2 Dec 2015 00:01:42 +0000 (19:01 -0500)]
Rollup merge of #30150 - steveklabnik:fix_exe_suffix, r=alexcrichton

8 years agoRollup merge of #30144 - pjungwir:clarify-semver-rules, r=steveklabnik
Steve Klabnik [Wed, 2 Dec 2015 00:01:41 +0000 (19:01 -0500)]
Rollup merge of #30144 - pjungwir:clarify-semver-rules, r=steveklabnik

The documentation shows this:

    [dependencies]

    rand="0.3.0"

and says it allows any version compatible with 0.3.0, but then it says, "If we wanted to use only 0.3.0 exactly, we could use `=0.3.0`." That is very easy to misunderstand, so hopefully this PR will help others not to be as confused as me. :-)