]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoRollup merge of #22744 - alexcrichton:issue-22738, r=aturon
Manish Goregaokar [Wed, 25 Feb 2015 05:00:01 +0000 (10:30 +0530)]
Rollup merge of #22744 - alexcrichton:issue-22738, r=aturon

 Currently we have a `set_mode` mutator, so this just adds the pairing of a
`mode` accessor to read the value.

Closes #22738

9 years agoRollup merge of #22742 - alexcrichton:issue-22737, r=aturon
Manish Goregaokar [Wed, 25 Feb 2015 04:59:53 +0000 (10:29 +0530)]
Rollup merge of #22742 - alexcrichton:issue-22737, r=aturon

 If the filename for a path is `None` then we know that the creation of the
parent directory created the whole path so there's no need to retry the call to
`create_dir`.

Closes #22737

9 years agoRollup merge of #22729 - alexcrichton:ptr-stabilization, r=aturon
Manish Goregaokar [Wed, 25 Feb 2015 04:59:46 +0000 (10:29 +0530)]
Rollup merge of #22729 - alexcrichton:ptr-stabilization, r=aturon

 Specifically, the following actions were takend:

* The `copy_memory` and `copy_nonoverlapping_memory` functions
  to drop the `_memory` suffix (as it's implied by the functionality). Both
  functions are now marked as `#[stable]`.
* The `set_memory` function was renamed to `write_bytes` and is now stable.
* The `zero_memory` function is now deprecated in favor of `write_bytes`
  directly.
* The `Unique` pointer type is now behind its own feature gate called `unique`
  to facilitate future stabilization.

[breaking-change]

9 years agoRollup merge of #22727 - alexcrichton:prep-env, r=aturon
Manish Goregaokar [Wed, 25 Feb 2015 04:59:39 +0000 (10:29 +0530)]
Rollup merge of #22727 - alexcrichton:prep-env, r=aturon

 This commit moves `std::env` away from the `std::old_io` error type as well as
the `std::old_path` module. Methods returning an error now return `io::Error`
and methods consuming or returning paths use `std::path` instead of
`std::old_path`. This commit does not yet mark these APIs as `#[stable]`.

This commit also migrates `std::old_io::TempDir` to `std::fs::TempDir` with
essentially the exact same API. This type was added to interoperate with the new
path API and has its own `tempdir` feature.

Finally, this commit reverts the deprecation of `std::os` APIs returning the old
path API types. This deprecation can come back once the entire `std::old_path`
module is deprecated.

[breaking-change]

9 years agoRollup merge of #22596 - alexcrichton:fix-some-impls, r=huonw
Manish Goregaokar [Wed, 25 Feb 2015 04:59:32 +0000 (10:29 +0530)]
Rollup merge of #22596 - alexcrichton:fix-some-impls, r=huonw

 This commit removes many unnecessary `unsafe impl` blocks as well as pushing the
needed implementations to the lowest level possible. I noticed that the bounds
for `RwLock` are a little off when reviewing #22574 and wanted to ensure that we
had our story straight on these implementations.

9 years agoRollup merge of #22157 - tbu-:pr_debug_collections, r=alexcrichton
Manish Goregaokar [Wed, 25 Feb 2015 04:59:23 +0000 (10:29 +0530)]
Rollup merge of #22157 - tbu-:pr_debug_collections, r=alexcrichton

 r? @Gankro

9 years agoRollup merge of #22792 - semarie:openbsd-unbreak-nacl, r=alexcrichton
Manish Goregaokar [Wed, 25 Feb 2015 04:57:30 +0000 (10:27 +0530)]
Rollup merge of #22792 - semarie:openbsd-unbreak-nacl, r=alexcrichton

 The recent commit on liblibc for nacl break the compilation for OpenBSD (and Bitrig too, I think).

The problem is `ino_t` come from another block too now. This patch remove the extra declaration.

```
.../src/liblibc/lib.rs:98:9: 98:37 error: a type named `ino_t` has already been imported in this module [E0251]
.../src/liblibc/lib.rs:98 pub use types::os::arch::posix01::*;
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
```

@dhuseby do you have this problem too ? and if yes, does this patch correct it ?

9 years agoRollup merge of #22785 - nikomatsakis:issue-21750-normalization-with-regions, r=pnkfelix
Manish Goregaokar [Wed, 25 Feb 2015 04:57:24 +0000 (10:27 +0530)]
Rollup merge of #22785 - nikomatsakis:issue-21750-normalization-with-regions, r=pnkfelix

 Two changes:

1. Make traits with assoc types invariant w/r/t their inputs.
2. Fully normalize parameter environments, including any region variables (which were being overlooked).

The former supports the latter, but also just seems like a reasonably good idea.

Fixes #21750

cc @edwardw
r? @pnkfelix

9 years agoRollup merge of #22784 - rnestler:fix_doc_faq, r=dotdash
Manish Goregaokar [Wed, 25 Feb 2015 04:57:17 +0000 (10:27 +0530)]
Rollup merge of #22784 - rnestler:fix_doc_faq, r=dotdash

 According to #22650 and bb0bbf639eafdd79380a3b1e2e92263a2aa914f9 the
link changed.
I think this should fix the link on http://doc.rust-lang.org/#faqs

9 years agoRollup merge of #22783 - alexcrichton:deprecate-taskpool, r=alexcrichton
Manish Goregaokar [Wed, 25 Feb 2015 04:57:11 +0000 (10:27 +0530)]
Rollup merge of #22783 - alexcrichton:deprecate-taskpool, r=alexcrichton

 Rather than stabilize on the current API, we're going to punt this
concern to crates.io, to allow for faster iteration.

[breaking-change]

9 years agoRollup merge of #22635 - kmcallister:macros-chapter, r=steveklabnik
Manish Goregaokar [Wed, 25 Feb 2015 04:57:03 +0000 (10:27 +0530)]
Rollup merge of #22635 - kmcallister:macros-chapter, r=steveklabnik

 r? @steveklabnik

9 years agounbreak openbsd after nacl intergration
Sébastien Marie [Wed, 25 Feb 2015 04:07:40 +0000 (05:07 +0100)]
unbreak openbsd after nacl intergration

9 years agoEnhance and move information about macro debugging
Keegan McAllister [Sat, 21 Feb 2015 06:08:06 +0000 (22:08 -0800)]
Enhance and move information about macro debugging

Fixes #22424.

9 years agoTweak wording in the macros guide
Keegan McAllister [Sat, 21 Feb 2015 05:33:17 +0000 (21:33 -0800)]
Tweak wording in the macros guide

9 years agoAdd a second, more vexing section on recursive macros
Keegan McAllister [Sat, 21 Feb 2015 05:39:03 +0000 (21:39 -0800)]
Add a second, more vexing section on recursive macros

Fixes #22423.

9 years agoAdd a section on recursive macros
Keegan McAllister [Fri, 20 Feb 2015 20:12:25 +0000 (12:12 -0800)]
Add a section on recursive macros

9 years agostd: Move std::env to the new I/O APIs
Alex Crichton [Mon, 23 Feb 2015 18:59:17 +0000 (10:59 -0800)]
std: Move std::env to the new I/O APIs

This commit moves `std::env` away from the `std::old_io` error type as well as
the `std::old_path` module. Methods returning an error now return `io::Error`
and methods consuming or returning paths use `std::path` instead of
`std::old_path`. This commit does not yet mark these APIs as `#[stable]`.

This commit also migrates `std::old_io::TempDir` to `std::fs::TempDir` with
essentially the exact same API. This type was added to interoperate with the new
path API and has its own `tempdir` feature.

Finally, this commit reverts the deprecation of `std::os` APIs returning the old
path API types. This deprecation can come back once the entire `std::old_path`
module is deprecated.

[breaking-change]

9 years agoImprove debug output from coherence.
Niko Matsakis [Mon, 23 Feb 2015 18:02:31 +0000 (13:02 -0500)]
Improve debug output from coherence.

9 years agoResolve regions too when normalizing param env.
Niko Matsakis [Fri, 20 Feb 2015 11:21:46 +0000 (06:21 -0500)]
Resolve regions too when normalizing param env.

9 years agoMake traits with assoc types invariant in their inputs.
Niko Matsakis [Fri, 20 Feb 2015 15:18:38 +0000 (10:18 -0500)]
Make traits with assoc types invariant in their inputs.

9 years agoChange `Debug` implementation of `BTree*` as well
Tobias Bucher [Tue, 10 Feb 2015 23:14:48 +0000 (00:14 +0100)]
Change `Debug` implementation of `BTree*` as well

9 years agoModify collection's `Debug` output to resemble in their content only
Tobias Bucher [Tue, 10 Feb 2015 21:12:13 +0000 (22:12 +0100)]
Modify collection's `Debug` output to resemble in their content only

9 years agoFix "How to submit a bug report" link
Raphael Nestler [Tue, 24 Feb 2015 22:26:25 +0000 (23:26 +0100)]
Fix "How to submit a bug report" link

According to #22650 and bb0bbf639eafdd79380a3b1e2e92263a2aa914f9 the
link changed

9 years agostd: Recomend threadpool on crates.io for TaskPool
Alex Crichton [Tue, 24 Feb 2015 22:24:15 +0000 (14:24 -0800)]
std: Recomend threadpool on crates.io for TaskPool

9 years agostd: Stabilize some `ptr` functions
Alex Crichton [Mon, 23 Feb 2015 19:39:16 +0000 (11:39 -0800)]
std: Stabilize some `ptr` functions

Specifically, the following actions were taken:

* The `copy_memory` and `copy_nonoverlapping_memory` functions
  to drop the `_memory` suffix (as it's implied by the functionality). Both
  functions are now marked as `#[stable]`.
* The `set_memory` function was renamed to `write_bytes` and is now stable.
* The `zero_memory` function is now deprecated in favor of `write_bytes`
  directly.
* The `Unique` pointer type is now behind its own feature gate called `unique`
  to facilitate future stabilization.
* All type parameters now are `T: ?Sized` wherever possible and new clauses were
  added to the `offset` functions to require that the type is sized.

[breaking-change]

9 years agoRollup merge of #22778 - mzabaluev:leftover-lifetime, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:51:50 +0000 (03:21 +0530)]
Rollup merge of #22778 - mzabaluev:leftover-lifetime, r=alexcrichton

9 years agoRollup merge of #22736 - nikomatsakis:issue-22382, r=eddyb
Manish Goregaokar [Tue, 24 Feb 2015 21:51:43 +0000 (03:21 +0530)]
Rollup merge of #22736 - nikomatsakis:issue-22382, r=eddyb

 Apply borrowck to fns that appear in const declarations.
Fixes #22382.

r? @eddyb

9 years agoRollup merge of #22539 - oli-obk:style_nitpicks, r=Manishearth
Manish Goregaokar [Tue, 24 Feb 2015 21:51:37 +0000 (03:21 +0530)]
Rollup merge of #22539 - oli-obk:style_nitpicks, r=Manishearth

 I tried to follow [the style guide][1] as much as possible. This is just from some random readings of the code, so no guarantees on completeness, even in the edited files.

[1]: http://aturon.github.io/style/README.html

9 years agoRollup merge of #22458 - steveklabnik:try_in_error_chapter, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:51:30 +0000 (03:21 +0530)]
Rollup merge of #22458 - steveklabnik:try_in_error_chapter, r=alexcrichton

 Fixes #22342

9 years agoRollup merge of #22772 - tbu-:pr_panic_fail, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:51:24 +0000 (03:21 +0530)]
Rollup merge of #22772 - tbu-:pr_panic_fail, r=alexcrichton

9 years agoRollup merge of #22770 - vhbit:ios-rand-send, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:51:17 +0000 (03:21 +0530)]
Rollup merge of #22770 - vhbit:ios-rand-send, r=alexcrichton

   "body": null,

9 years agoRollup merge of #22758 - ejjeong:aarch64-linux-android, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:51:11 +0000 (03:21 +0530)]
Rollup merge of #22758 - ejjeong:aarch64-linux-android, r=alexcrichton

 This commit has already been merged in #21774,
but i think it has been accidently overriden by #22584 and #22480.
r? @alexcrichton

9 years agoRollup merge of #22752 - ipetkov:unsafe-lint-fix, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:51:05 +0000 (03:21 +0530)]
Rollup merge of #22752 - ipetkov:unsafe-lint-fix, r=alexcrichton

 This allows selectively disabling the lint for individual methods or traits.

9 years agoRollup merge of #22747 - krdln:fix-parsing-minus, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:50:58 +0000 (03:20 +0530)]
Rollup merge of #22747 - krdln:fix-parsing-minus, r=alexcrichton

 Makes Rust less amusing by fixing [#22745](https://github.com/rust-lang/rust/issues/22745)

9 years agoRollup merge of #22739 - tbu-:pr_error_net, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:50:51 +0000 (03:20 +0530)]
Rollup merge of #22739 - tbu-:pr_error_net, r=alexcrichton

 This affects the `set_non_blocking` function which cannot fail for Unix or
Windows, given correct parameters. Additionally, the short UDP write error case
has been removed as there is no such thing as \"short UDP writes\", instead, the
operating system will error out if the application tries to send a packet
larger than the MTU of the network path.

9 years agoRollup merge of #22623 - petrochenkov:optest, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 21:50:42 +0000 (03:20 +0530)]
Rollup merge of #22623 - petrochenkov:optest, r=alexcrichton

 Tests often use `vec![1, 2, 3]` instead of shorter and faster `[1, 2, 3]`.
This patch removes a lot of unnecessary `vec!`s. Hopefully, the tests will compile and run a bit faster.

9 years agoFix broken tests
Vadim Petrochenkov [Tue, 24 Feb 2015 20:42:09 +0000 (23:42 +0300)]
Fix broken tests

9 years agoUse arrays instead of vectors in tests
Vadim Petrochenkov [Tue, 24 Feb 2015 18:15:45 +0000 (21:15 +0300)]
Use arrays instead of vectors in tests

9 years agoAuto merge of #22172 - eddyb:almost-there, r=nikomatsakis
bors [Tue, 24 Feb 2015 17:56:09 +0000 (17:56 +0000)]
Auto merge of #22172 - eddyb:almost-there, r=nikomatsakis

Adds `<module::Type>::method` support and makes `module::Type::method` a shorthand for it.
This is most of #16293, except that chaining multiple associated types is not yet supported.
It also fixes #22563 as `impl`s are no longer treated as modules in resolve.

Unfortunately, this is still a *[breaking-change]*:
* If you used a global path to a primitive type, i.e. `::bool`, `::i32` etc. - that was a bug I had to fix.
Solution: remove the leading `::`.
* If you passed explicit `impl`-side type parameters to an inherent method, e.g.:
```rust
struct Foo<T>(T);
impl<A, B> Foo<(A, B)> {
    fn pair(a: A, b: B) -> Foo<(A, B)> { Foo((a, b)) }
}
Foo::<A, B>::pair(a, b)
// Now that is sugar for:
<Foo<A, B>>::pair(a, b)
// Which isn't valid because `Foo` has only one type parameter.
// Solution: replace with:
Foo::<(A, B)>::pair(a, b)
// And, if possible, remove the explicit type param entirely:
Foo::pair(a, b)
```
* If you used the `QPath`-related `AstBuilder` methods @hugwijst added in #21943.
The methods still exist, but `QPath` was replaced by `QSelf`, with the actual path stored separately.
Solution: unpack the pair returned by `cx.qpath` to get the two arguments for `cx.expr_qpath`.

9 years agoMention try macro in error chapter
Steve Klabnik [Tue, 17 Feb 2015 19:05:12 +0000 (14:05 -0500)]
Mention try macro in error chapter

Fixes #22342

9 years agoImprove readability of an error check in `set_non_blocking`
Tobias Bucher [Tue, 24 Feb 2015 16:07:13 +0000 (17:07 +0100)]
Improve readability of an error check in `set_non_blocking`

9 years agoRevert a wrong replace of "fail" to "panic"
Tobias Bucher [Tue, 24 Feb 2015 16:01:50 +0000 (17:01 +0100)]
Revert a wrong replace of "fail" to "panic"

9 years agoAuto merge of #22749 - kballard:process-stdio-constructors, r=alexcrichton
bors [Tue, 24 Feb 2015 15:01:28 +0000 (15:01 +0000)]
Auto merge of #22749 - kballard:process-stdio-constructors, r=alexcrichton

There are no tests for this because testing inherit/null is tricky.
Probably why there weren't tests for it to begin with.

9 years agoiOS: Sync/Send fallout
Valerii Hiora [Tue, 24 Feb 2015 14:44:30 +0000 (16:44 +0200)]
iOS: Sync/Send fallout

9 years agostyle nitpicks
Oliver Schneider [Tue, 24 Feb 2015 08:50:36 +0000 (09:50 +0100)]
style nitpicks

9 years agosyntax: update pretty-printer for the `<T>::method` shorthand.
Eduard Burtescu [Tue, 24 Feb 2015 10:12:14 +0000 (12:12 +0200)]
syntax: update pretty-printer for the `<T>::method` shorthand.

9 years agoFix fallout from rebasing.
Eduard Burtescu [Tue, 24 Feb 2015 06:28:11 +0000 (08:28 +0200)]
Fix fallout from rebasing.

9 years agorustc_typeck: unify the impl type with the UFCS path prefix type.
Eduard Burtescu [Mon, 23 Feb 2015 21:24:41 +0000 (23:24 +0200)]
rustc_typeck: unify the impl type with the UFCS path prefix type.

9 years agoUpdate trans/save's span hacks for fully qualified UFCS paths.
Eduard Burtescu [Fri, 20 Feb 2015 16:33:29 +0000 (18:33 +0200)]
Update trans/save's span hacks for fully qualified UFCS paths.

9 years agoFix fallout from allowing impls outside of the type's definition module.
Eduard Burtescu [Fri, 20 Feb 2015 09:36:31 +0000 (11:36 +0200)]
Fix fallout from allowing impls outside of the type's definition module.

9 years agoFix fallout from correct stability handling in UFCS.
Eduard Burtescu [Thu, 19 Feb 2015 20:28:20 +0000 (22:28 +0200)]
Fix fallout from correct stability handling in UFCS.

9 years agoFix @nikomatsakis' nits in typeck.
Eduard Burtescu [Fri, 20 Feb 2015 06:06:10 +0000 (08:06 +0200)]
Fix @nikomatsakis' nits in typeck.

9 years agotests: add two new run-pass tests for method behavior after UFCS.
Eduard Burtescu [Thu, 19 Feb 2015 01:37:25 +0000 (03:37 +0200)]
tests: add two new run-pass tests for method behavior after UFCS.

9 years agoImplement `<T>::method` UFCS expression syntax.
Eduard Burtescu [Tue, 17 Feb 2015 17:29:13 +0000 (19:29 +0200)]
Implement `<T>::method` UFCS expression syntax.

9 years agotests: remove warnings from and rename const-polymorphic-paths to ufcs-polymorphic...
Eduard Burtescu [Tue, 17 Feb 2015 15:41:40 +0000 (17:41 +0200)]
tests: remove warnings from and rename const-polymorphic-paths to ufcs-polymorphic-paths.

9 years agorustc: combine partial_def_map and last_private_map into def_map.
Eduard Burtescu [Tue, 17 Feb 2015 04:44:23 +0000 (06:44 +0200)]
rustc: combine partial_def_map and last_private_map into def_map.

9 years agorustc_resolve: don't handle impl items as if they were modules.
Eduard Burtescu [Fri, 20 Feb 2015 06:17:05 +0000 (08:17 +0200)]
rustc_resolve: don't handle impl items as if they were modules.

9 years agocore: fix typo that wasn't caught by the hacky previous implementation.
Eduard Burtescu [Wed, 11 Feb 2015 19:01:03 +0000 (21:01 +0200)]
core: fix typo that wasn't caught by the hacky previous implementation.

9 years agoUse partial path resolutions in expressions for UFCS desugaring.
Eduard Burtescu [Wed, 11 Feb 2015 07:33:49 +0000 (09:33 +0200)]
Use partial path resolutions in expressions for UFCS desugaring.

9 years agorustc_resolve: remove the distinction between DefStaticMethod and DefMethod.
Eduard Burtescu [Wed, 11 Feb 2015 07:32:25 +0000 (09:32 +0200)]
rustc_resolve: remove the distinction between DefStaticMethod and DefMethod.

9 years agorustc: use partially resolved definitions to replace the `T::A` hack.
Eduard Burtescu [Thu, 5 Feb 2015 11:20:48 +0000 (13:20 +0200)]
rustc: use partially resolved definitions to replace the `T::A` hack.

9 years agorustc_resolve: use the visitor model more, remove redundant repeated lookups.
Eduard Burtescu [Thu, 5 Feb 2015 07:19:07 +0000 (09:19 +0200)]
rustc_resolve: use the visitor model more, remove redundant repeated lookups.

9 years agosyntax: use a single Path for Trait::Item in QPath.
Eduard Burtescu [Sat, 31 Jan 2015 19:20:24 +0000 (21:20 +0200)]
syntax: use a single Path for Trait::Item in QPath.

9 years agorustc_resolve: use DefAssociatedTy for TyQPath.
Eduard Burtescu [Sat, 31 Jan 2015 03:51:21 +0000 (05:51 +0200)]
rustc_resolve: use DefAssociatedTy for TyQPath.

9 years agorustc: load DefAssociatedTy from cross-crate metadata. Fixes #20542.
Eduard Burtescu [Fri, 30 Jan 2015 10:16:59 +0000 (12:16 +0200)]
rustc: load DefAssociatedTy from cross-crate metadata. Fixes #20542.

9 years agorustc: remove unused ForeignType item family.
Eduard Burtescu [Fri, 30 Jan 2015 09:26:49 +0000 (11:26 +0200)]
rustc: remove unused ForeignType item family.

9 years agosyntax: don't use TraitRef in QPath.
Eduard Burtescu [Fri, 30 Jan 2015 08:09:44 +0000 (10:09 +0200)]
syntax: don't use TraitRef in QPath.

9 years agosyntax: don't store a secondary NodeId for TyPath.
Eduard Burtescu [Thu, 29 Jan 2015 19:18:17 +0000 (21:18 +0200)]
syntax: don't store a secondary NodeId for TyPath.

9 years agoRevert bogus rename from DefTrait to DefaultImpl.
Eduard Burtescu [Tue, 24 Feb 2015 05:45:34 +0000 (07:45 +0200)]
Revert bogus rename from DefTrait to DefaultImpl.

9 years agoAuto merge of #22755 - Manishearth:rollup, r=Manishearth
bors [Tue, 24 Feb 2015 09:33:17 +0000 (09:33 +0000)]
Auto merge of #22755 - Manishearth:rollup, r=Manishearth

9 years agoReplace deprecated getdtablesize() with sysconf(_SC_OPEN_MAX) for android aarch64
Eunji Jeong [Tue, 24 Feb 2015 09:15:03 +0000 (18:15 +0900)]
Replace deprecated getdtablesize() with sysconf(_SC_OPEN_MAX) for android aarch64

9 years agoFix integers in tests (fixup #22700)
Manish Goregaokar [Tue, 24 Feb 2015 08:19:01 +0000 (13:49 +0530)]
Fix integers in tests (fixup #22700)

9 years agoAdd missing `fn`
Michał Krasnoborski [Tue, 24 Feb 2015 07:24:42 +0000 (08:24 +0100)]
Add missing `fn`

9 years agostd::io::BufReader: remove leftover lifetime parameter on get_ref()
Mikhail Zabaluev [Tue, 24 Feb 2015 07:13:08 +0000 (09:13 +0200)]
std::io::BufReader: remove leftover lifetime parameter on get_ref()

9 years agoRollup merge of #22720 - edwardw:enum-struct-ident-walk-into-a-bar, r=nick29581
Manish Goregaokar [Tue, 24 Feb 2015 07:03:40 +0000 (12:33 +0530)]
Rollup merge of #22720 - edwardw:enum-struct-ident-walk-into-a-bar, r=nick29581

 Closes #22589
Closes #22647
Closes #22665
Closes #22712

9 years agoAdd tests for expect ident but find enum or struct panic
Edward Wang [Tue, 24 Feb 2015 06:59:24 +0000 (14:59 +0800)]
Add tests for expect ident but find enum or struct panic

Closes #22589
Closes #22647
Closes #22665
Closes #22712

9 years agoRemove another instance of ty_open (fixup #22213)
Manish Goregaokar [Tue, 24 Feb 2015 06:55:56 +0000 (12:25 +0530)]
Remove another instance of ty_open (fixup #22213)

9 years agoRollup merge of #22213 - eddyb:ty_open-case-closed, r=nikomatsakis
Manish Goregaokar [Tue, 24 Feb 2015 06:56:01 +0000 (12:26 +0530)]
Rollup merge of #22213 - eddyb:ty_open-case-closed, r=nikomatsakis

 This type wasn't necessary, as there was no place using it and unsized types not wrapped in it, at the same time.
r? @nikomatsakis

9 years agorustc_trans: use an Lvalue Datum for an unsized lvalue to avoid bogus drops.
Eduard Burtescu [Tue, 24 Feb 2015 06:22:43 +0000 (08:22 +0200)]
rustc_trans: use an Lvalue Datum for an unsized lvalue to avoid bogus drops.

9 years agotests: update expected recursion limit errors for the temporary lack of spans.
Eduard Burtescu [Fri, 20 Feb 2015 17:25:30 +0000 (19:25 +0200)]
tests: update expected recursion limit errors for the temporary lack of spans.

9 years agoRemove ty_open and treat Unsized lvalues as *Unsized.
Eduard Burtescu [Tue, 17 Feb 2015 18:27:01 +0000 (20:27 +0200)]
Remove ty_open and treat Unsized lvalues as *Unsized.

9 years agoRemove double expr_u32 (fixup #22700)
Manish Goregaokar [Tue, 24 Feb 2015 02:09:55 +0000 (07:39 +0530)]
Remove double expr_u32 (fixup #22700)

9 years agoRollup merge of #22594 - alexcrichton:issue-22577, r=aturon
Manish Goregaokar [Tue, 24 Feb 2015 01:47:28 +0000 (07:17 +0530)]
Rollup merge of #22594 - alexcrichton:issue-22577, r=aturon

 The windows/unix modules were currently inconsistent about the traits being
implemented for `DirEntry` and there isn't much particular reason why the traits
*couldn't* be implemented for `ReadDir` and `DirEntry`, so this commit ensures
that they are implemented.

Closes #22577

9 years agoRollup merge of #22580 - pnkfelix:guard-pat-cfg2, r=pnkfelix
Manish Goregaokar [Tue, 24 Feb 2015 01:47:20 +0000 (07:17 +0530)]
Rollup merge of #22580 - pnkfelix:guard-pat-cfg2, r=pnkfelix

 aatch's cfg revisions, namely to match expressions

Revise handling of match expressions so that arms branch to next arm.

Update the graphviz tests accordingly.

Fixes #22073. (Includes regression test for the issue.)

9 years agoRollup merge of #22428 - erickt:io-wrappers, r=aturon
Manish Goregaokar [Tue, 24 Feb 2015 01:47:04 +0000 (07:17 +0530)]
Rollup merge of #22428 - erickt:io-wrappers, r=aturon

 Also includes some minor optimizations to the Vec and slice writers to remove the unnecessary loop.

9 years agoRollup merge of #22301 - nikomatsakis:object-safe-sized-methods, r=huonw
Manish Goregaokar [Tue, 24 Feb 2015 01:46:55 +0000 (07:16 +0530)]
Rollup merge of #22301 - nikomatsakis:object-safe-sized-methods, r=huonw

 RFC 817 is not yet accepted, but I wanted to put this code up so people can see how it works. And to be ready lest it should be accepted.

cc rust-lang/rfcs#817

9 years agoRollup merge of #22473 - leejunseok:fix_pointer_example, r=steveklabnik
Manish Goregaokar [Tue, 24 Feb 2015 01:45:10 +0000 (07:15 +0530)]
Rollup merge of #22473 - leejunseok:fix_pointer_example, r=steveklabnik

 Revised an example in the Pointers chapter of TRPL (the guide) as per #21575.

9 years agoRollup merge of #22730 - ipetkov:lint-docs, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:45:03 +0000 (07:15 +0530)]
Rollup merge of #22730 - ipetkov:lint-docs, r=alexcrichton

 This is a breaking change if missing docs are forbidden in any module or crate.

I had to add documentation to undocumented associated types in libstd and libcore, please let me know if the documentation is inadequate anywhere!

Fixes #20648

9 years agoRollup merge of #22728 - vojtechkral:int-audit-thread-local, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:44:56 +0000 (07:14 +0530)]
Rollup merge of #22728 - vojtechkral:int-audit-thread-local, r=alexcrichton

 Integer audit in `libstd/thread_local/*`, part of #22240

9 years agoRollup merge of #22700 - nick29581:ints_hash, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:44:41 +0000 (07:14 +0530)]
Rollup merge of #22700 - nick29581:ints_hash, r=alexcrichton

 fmt and hash are pretty straightforward I think. sync is a bit more complex. I thought one or two of the `isize`s ought to be `i32`s, but that would require a bunch of casting (the root cause being the lack of atomics other than isize/usize).

r? @alexcrichton

9 years agoRollup merge of #22632 - nagisa:kill-show-string-with-fire!, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:44:34 +0000 (07:14 +0530)]
Rollup merge of #22632 - nagisa:kill-show-string-with-fire!, r=alexcrichton

 Toss the tomatoes!

r? @aturon

Fixes #22478. The underlying bug(?) behind that issue still exists though and there’s another issue that reports it.

9 years agoRollup merge of #22740 - frewsxcv:patch-4, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:43:54 +0000 (07:13 +0530)]
Rollup merge of #22740 - frewsxcv:patch-4, r=alexcrichton

 Fixes #17929

9 years agoRollup merge of #22726 - semarie:openbsd-Wl-as-needed, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:43:48 +0000 (07:13 +0530)]
Rollup merge of #22726 - semarie:openbsd-Wl-as-needed, r=alexcrichton

 The `-Wl,--as-needed` option was removed during first stages of
bootstrapping between Linux and OpenBSD.

Restore it, as it seems to be ok now.

9 years agoRollup merge of #22719 - steveklabnik:typo_fix, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:43:41 +0000 (07:13 +0530)]
Rollup merge of #22719 - steveklabnik:typo_fix, r=alexcrichton

9 years agoRollup merge of #22711 - lummax:patch-1, r=dotdash
Manish Goregaokar [Tue, 24 Feb 2015 01:43:35 +0000 (07:13 +0530)]
Rollup merge of #22711 - lummax:patch-1, r=dotdash

 Update the reference page to the change in #20680.

9 years agoRollup merge of #22687 - tshepang:prelude-nits, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:43:28 +0000 (07:13 +0530)]
Rollup merge of #22687 - tshepang:prelude-nits, r=alexcrichton

9 years agoRollup merge of #22680 - FlaPer87:type_builtin, r=nikomatsakis
Manish Goregaokar [Tue, 24 Feb 2015 01:43:21 +0000 (07:13 +0530)]
Rollup merge of #22680 - FlaPer87:type_builtin, r=nikomatsakis

 Fixes #20302

9 years agoRollup merge of #22653 - tsion:master, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:43:14 +0000 (07:13 +0530)]
Rollup merge of #22653 - tsion:master, r=alexcrichton

 r? @steveklabnik

9 years agoRollup merge of #22604 - aochagavia:docs, r=alexcrichton
Manish Goregaokar [Tue, 24 Feb 2015 01:43:07 +0000 (07:13 +0530)]
Rollup merge of #22604 - aochagavia:docs, r=alexcrichton

9 years agoProperly reimplement `unsafe-code` lint to honor changing lint attributes
Ivan Petkov [Tue, 24 Feb 2015 06:27:27 +0000 (22:27 -0800)]
Properly reimplement `unsafe-code` lint to honor changing lint attributes