Manish Goregaokar
8f921502bd
Rollup merge of #22667 - dotdash:retslot_cast.rs, r=huonw
...
We already do this for the function arguments, but miss it for the
retslot pointer, which can lead to LLVM assertions because the retslot
has the wrong type.
Fixes #22663
2015-02-23 11:43:56 -08:00
Manish Goregaokar
5a41536462
Rollup merge of #22664 - lfairy:just-say-no, r=alexcrichton
...
Leading hyphens already don't work (#22661 ), so no code should break from this change.
Closes #22661 .
2015-02-23 11:43:56 -08:00
Ivan Petkov
2e9521c126
Update missing-doc test to explicitly check errors
...
This way we can be sure the correct error is displayed for the
respective code type.
2015-02-23 11:33:52 -08:00
Ivan Petkov
717a91d665
Update missing-docs lint to check associated type declarations
...
[breaking-change]
Fixes #20648
2015-02-23 11:07:37 -08:00
Manish Goregaokar
af81ec2f43
Rollup merge of #22559 - kmcallister:borrowck-readme, r=nikomatsakis
...
And minor fixes to other docs.
r? @nikomatsakis
2015-02-23 23:28:46 +05:30
Alex Crichton
2408436eb4
test: Make two tests less flaky on windows
...
If these tests exit while a thread is panicking it often leads to situations
like #22628 .
2015-02-23 09:53:03 -08:00
bors
f0f7ca27de
Auto merge of #21769 - brooksbp:column-line-macro, r=nick29581
...
Please see discussion in #19284 .
2015-02-23 01:53:38 +00:00
Flavio Percoco
7ff11d7be8
Unify lifetime/type arguments error messages for (non-)builtin bounds
2015-02-22 16:31:19 +01:00
Flavio Percoco
a1945197c3
continue when builtin bounds are registered
2015-02-22 16:31:19 +01:00
Ahmed Charles
3ebdbac265
Do not permit type parameters on builtin bounds.
2015-02-22 16:31:19 +01:00
Simonas Kazlauskas
9be8ec82ce
Properly translate methods with foreign CC
...
This fixes a general issue of trying to define extern functions inside impl blocks resulting in
ICE.
Fixes #21238
Fixes #20734
Fixes #19047
2015-02-22 16:04:18 +02:00
Niko Matsakis
3dcc631dee
Add additional test case for superregion
2015-02-22 13:17:50 +01:00
Björn Steinbrink
b593c60c33
Add missing cast for retslots in case of "subtyping" due to trait bounds
...
We already do this for the function arguments, but miss it for the
retslot pointer, which can lead to LLVM assertions because the retslot
has the wrong type.
Fixes #22663
2015-02-22 12:47:27 +01:00
Simonas Kazlauskas
c9d0967383
Validate inline attribute arguments
2015-02-22 13:44:28 +02:00
James Miller
4bae133070
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.)
(Factoring of aatch CFG code, Part 4.)
2015-02-22 12:43:08 +01:00
bors
dcc6ce2c77
Auto merge of #22574 - huonw:remove-lame-statics, r=alexcirchton
...
Add a basic test that checks that the types catch the most glaring
errors that could occur.
cc #22444
2015-02-22 10:27:08 +00:00
Chris Wong
a7594f2d5b
Disallow crate names with leading hyphens
...
Leading hyphens already don't work (#22661 ), so no code should break
from this change.
Closes #22661 .
2015-02-22 20:05:05 +13:00
Flavio Percoco
038d7e69e8
Fix test fallouts
2015-02-22 02:14:27 +01:00
Flavio Percoco
753db88914
allow negative impls for traits that have a default impl
2015-02-22 02:14:27 +01:00
Flavio Percoco
d021c55fb9
Restore the coherence visitor and fix fallouts
2015-02-22 02:14:27 +01:00
Niko Matsakis
3343e9c169
Add new test for impl precedence and remove unnecessary coherence rules that prevent the test from compiling.
2015-02-22 02:14:27 +01:00
Flavio Percoco
6d1844c806
Record default implementations in a separate step
2015-02-22 02:14:27 +01:00
Niko Matsakis
640000a7c0
fix treatment of parameters and associated types
2015-02-22 02:14:27 +01:00
Niko Matsakis
24bdce4bbf
some comments and nits
2015-02-22 02:14:26 +01:00
Flavio Percoco
64d33d892a
check supertraits
2015-02-22 02:14:26 +01:00
Niko Matsakis
f7a75e0341
Add new test case showing that supertraits are not enough
2015-02-22 02:14:26 +01:00
Flavio Percoco
7213ef1a8f
Test all the things
2015-02-22 02:14:26 +01:00
Flavio Percoco
0be1e430cf
Fix error codes
2015-02-22 02:14:26 +01:00
Brian Brooks
fc9fa1a563
Resolve barriers to changing column!() / line!() return type to u32 in #19284 . Address review comments in #21769 .
2015-02-21 17:26:29 -05:00
Manish Goregaokar
d316a34ec2
Fix lint-unsafe-code test from #22542
2015-02-22 01:53:18 +05:30
Manish Goregaokar
494dbe9c07
Rollup merge of #22516 - leejunseok:nonpub_field_sugg, r=jakub-
...
closes #22421
2015-02-22 01:52:22 +05:30
Manish Goregaokar
98ec45ee0b
Rollup merge of #22542 - ipetkov:unsafe-lint, r=huonw
...
This allows warning or forbidding all uses of unsafe code, whereas
previously only unsafe blocks were caught by the lint.
The lint has been renamed from `unsafe-blocks` to `unsafe-code` to
reflect its new purpose.
This is a minor [breaking-change]
Closes #22430
2015-02-22 01:50:53 +05:30
Manish Goregaokar
e15d016146
Rollup merge of #22620 - edwardw:issue-22356, r=brson
...
PR #22436 has fixed it.
Closes #22356
2015-02-22 01:49:30 +05:30
Manish Goregaokar
f308550c16
Rollup merge of #22527 - dotdash:if-loop, r=huonw
...
In `if loop {} {}`, the `if` is actually unreachable, but we didn't
handle that correctly and when trying to translate the `if` we tried to
branch on the \"return value\" of the loop expression, which is not an
`i1` and therefore triggered an LLVM assertion.
2015-02-22 01:47:28 +05:30
Simonas Kazlauskas
e3104d8f0c
Kill fmt::Show and fmt::String with fire!
...
Toss the tomatoes!
2015-02-21 16:27:55 +02:00
Brian Brooks
1212fd8abc
Resolve includeme.fragment conflict.
2015-02-21 06:56:46 -05:00
Vadim Chugunov
244c65dca7
Un-ignore lang-item-public test.
2015-02-21 01:35:33 -08:00
bors
2b01a37ec3
Auto merge of #21959 - dhuseby:bitrig-support, r=brson
...
This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org
2015-02-21 09:20:48 +00:00
Edward Wang
0d218fd824
Add test for #22356
...
PR #22436 has fixed it.
Closes #22356
2015-02-21 14:37:30 +08:00
Huon Wilson
380d23b5d4
Remove 'static bound from sync::mpsc, Mutex and RwLock.
...
Adds some basic tests to check that the types still catch the most
glaring errors that could occur.
cc #22444 .
2015-02-21 16:51:49 +11:00
Junseok Lee
9b67d07acc
added license header to test
2015-02-20 16:16:09 -08:00
Junseok Lee
3419d51199
added local crate struct with priv field to test
2015-02-20 16:16:09 -08:00
Junseok Lee
85069e0529
added 'suggest-private-fields' cfail test
2015-02-20 16:16:09 -08:00
Alex Crichton
64fe93e49d
std: Tidy up some unsafe impls for sync
...
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.
2015-02-20 12:01:08 -08:00
Alex Crichton
756210a0b9
std: Ensure fs::{DirEntry, ReadDir} are Send/Sync
...
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
2015-02-20 11:51:22 -08:00
Ivan Petkov
be0dc49675
Unsafe lint will also check for other unsafe code
...
Checks include declaration/implementation of unsafe functions, traits,
and methods.
This allows warning or forbidding all uses of unsafe code, whereas
previously only unsafe blocks were caught by the lint.
The lint has been renamed from `unsafe-blocks` to `unsafe-code` to
reflect its new purpose.
This is a minor [breaking-change]
Closes #22430
2015-02-19 20:43:09 -08:00
bombless
b13e072c9e
Remove questionable pattern
2015-02-20 03:36:40 +08:00
bombless
0643494bc4
Fix tests
2015-02-20 03:10:31 +08:00
Alex Crichton
0cd54b85ef
Round 5 test fixes and rebase conflicts
2015-02-19 07:03:18 -08:00
bombless
61ea8b33d0
Fix issue #22426 #22447
2015-02-19 22:01:57 +08:00