summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2015-05-16Make a test compatible with the beta channelBrian Anderson-2/+0
2015-05-14Rollup merge of #25398 - nham:E0066_E0069, r=huonwManish Goregaokar-2/+2
Adds explanations for E0053, E0066, E0069, E0251, E0252, E0255, E0256, E0368. cc #24407
2015-05-14Auto merge of #25338 - tamird:unignore-stage-tests, r=alexcrichtonbors-8/+0
We don't have any pending snapshot-requiring changes. Closes #20184. Works toward #3965.
2015-05-13Add error explanations for E0066 and E0069.Nick Hamann-2/+2
This also updates the error messages for both. For E0066, it removes mention of "managed heap", which was removed in 8a91d33. For E0069, I just tweaked the wording to make it a bit more explicit.
2015-05-13Fix ICE that occurs when an associated const is ambiguous.Sean Patrick Santos-74/+106
Also change several error messages to refer to "items" rather than "methods", since associated items that require resolution during type checking are not always methods.
2015-05-13Unignore some tests in stage1Tamir Duberstein-8/+0
We don't have any pending snapshot-requiring changes. Tests which continue to be ignored are those that are broken by codegen changes.
2015-05-13Auto merge of #25344 - arielb1:fresh-float, r=nikomatsakisbors-0/+44
There is no subtyping relationship between the types (or their non-freshened variants), so they can not be merged. Fixes #22645 Fixes #24352 Fixes #23825 Should fix #25235 (no test in issue). Should fix #19976 (test is outdated).
2015-05-13Auto merge of #25318 - nrc:for-expn, r=sfacklerbors-0/+37
r? @sfackler
2015-05-13RebasingNick Cameron-2/+2
2015-05-13Fix a bunch of bugsNick Cameron-9/+5
* segfault due to not copying drop flag when coercing * fat pointer casts * segfault due to not checking drop flag properly * debuginfo for DST smart pointers * unreachable code in drop glue
2015-05-13eddyb's changes for DST coercionsNick Cameron-23/+9
+ lots of rebasing
2015-05-12Create a FreshFloatTy separate from FreshIntTyAriel Ben-Yehuda-0/+44
There is no subtyping relationship between the types (or their non-freshened variants), so they can not be merged. Fixes #22645 Fixes #24352 Fixes #23825 Should fix #25235 (no test in issue). Should fix #19976 (test is outdated).
2015-05-12Rollup merge of #25329 - jooert:tests, r=alexcrichtonManish Goregaokar-0/+25
2015-05-12Add regression test for #20413Johannes Oertel-0/+25
Closes #20413.
2015-05-12Auto merge of #24818 - tbelaire:double-import, r=nrcbors-0/+27
This isn't quite right, but it's interesting.
2015-05-12TestsNick Cameron-0/+37
2015-05-11Auto merge of #25085 - carols10cents:remove-old-tilde, r=steveklabnikbors-1/+1
There were still some mentions of `~[T]` and `~T`, mostly in comments and debugging statements. I tried to do my best to preserve meaning, but I might have gotten some wrong-- I'm happy to fix anything :)
2015-05-10Rollup merge of #25252 - inrustwetrust:crate-type-attribute, r=alexcrichtonManish Goregaokar-0/+14
Fixes the problem in #16974 with unhelpful error messages when accidentally using the wrong syntax for the `crate_type="lib"` attribute. The attribute syntax error now shows up instead of "main function not found".
2015-05-10Upgraded warning for invalid crate_type attribute syntax to an errorinrustwetrust-0/+14
If the user intended to set the crate_type to "lib" but accidentally used incorrect syntax such as `#![crate_type(lib)]`, the compilation would fail with "main function not found". This made it hard to locate the source of the problem, since the failure would cause the warning about the incorrect attribute not to be shown.
2015-05-08Fallout to compile-fail tests.Felix S. Klock II-1/+13
This change is worrisome to me, both because: 1. I thought the rules in RFC 599 imply that the `Box<Trait>` without `'static` in the first case would expand to the second case, but their behaviors here differ. And, 2. The explicit handling of `'static` should mean `dropck` has no application here and thus we should have seen no change to the expected error messages. Nonetheless, the error messages changed.
2015-05-08Regression tests for Issue 25199 (dropck and `Box<Trait + 'a>`).Felix S. Klock II-0/+214
2015-05-07Auto merge of #25123 - arielb1:self-inhibiting-error, r=nikomatsakisbors-2/+22
Fix #25076. r? @nikomatsakis
2015-05-07Auto merge of #25161 - jooert:moretests, r=alexcrichtonbors-0/+71
The last one (at least for the moment :smiley:). r? @alexcrichton
2015-05-07fix testAriel Ben-Yehuda-2/+1
2015-05-07Rollup merge of #24966 - ruud-v-a:explain, r=pnkfelixSteve Klabnik-26/+30
The error message was misleading, so I adjusted it, and I also added the long diagnostics for this error (resolves one point in #24407). I was unsure about how to phrase the error message. Is “generic parameter binding” the correct term for this?
2015-05-06Auto merge of #24392 - seanmonstar:lint-transmute-mut, r=alexcrichtonbors-0/+20
The [UnsafeCell documentation says it is undefined behavior](http://doc.rust-lang.org/nightly/std/cell/struct.UnsafeCell.html), so people shouldn't do it. This happened to catch one case in libstd that was doing this, and I switched that to use an UnsafeCell internally. Closes #13146
2015-05-07Add regression test for #22037Johannes Oertel-0/+27
Closes #22037.
2015-05-07Add regression test for #21701Johannes Oertel-0/+25
Closes #21701.
2015-05-06Add regression test for #21177Johannes Oertel-0/+19
Closes #21177.
2015-05-06Fix #25076Ariel Ben-Yehuda-0/+21
2015-05-05lint: deny transmuting from immutable to mutable, since it's undefined behaviorSean McArthur-0/+20
[breaking-change] Technically breaking, since code that had been using these transmutes before will no longer compile. However, it was undefined behavior, so really, it's a good thing. Fixing your code would require some re-working to use an UnsafeCell instead. Closes #13146
2015-05-06test: Update expected compile-fail message for E0282Ruud van Asseldonk-26/+30
2015-05-05Add regression tests for #21174Johannes Oertel-0/+21
Closes #21174.
2015-05-05Add regression test for #20862Johannes Oertel-0/+23
Closes #20862.
2015-05-05Add regression test for #20105Johannes Oertel-0/+17
Closes #20105.
2015-05-05Auto merge of #25113 - pnkfelix:dropck-itemless-traits, r=huonwbors-0/+110
Generalize dropck to ignore item-less traits Fix #24805. (This is the reopened + rebased version of PR #24898)
2015-05-04Auto merge of #25056 - jooert:sometests, r=alexcrichtonbors-0/+121
Add several regression tests and remove some unnecessary FIXMEs.
2015-05-03Update old uses of ~ in comments and debugging statementsCarol Nichols-1/+1
2015-05-03Auto merge of #24737 - P1start:dst-cell, r=alexcrichtonbors-4/+0
This + DST coercions (#24619) would allow code like `Rc<RefCell<Box<Trait>>>` to be simplified to `Rc<RefCell<Trait>>`.
2015-05-02Auto merge of #25038 - bluss:fat-pointer-cast, r=luqmanabors-8/+20
typeck: Make sure casts from other types to fat pointers are illegal Fixes ICEs where non-fat pointers and scalars are cast to fat pointers, Fixes #21397 Fixes #22955 Fixes #23237 Fixes #24100
2015-05-02Add regression test for #19380Johannes Oertel-0/+28
Closes #19380.
2015-05-02Add regression test for #19163Johannes Oertel-0/+21
Closes #19163.
2015-05-02Add regression test for #19109Johannes Oertel-0/+22
Closes #19109.
2015-05-02Add regression test for #17959Johannes Oertel-0/+31
Closes #17959.
2015-05-02Add regression test for #12511Johannes Oertel-0/+19
Closes #12511.
2015-05-02Auto merge of #24980 - jooert:test-22468, r=pnkfelixbors-0/+19
Closes #22468.
2015-05-02typeck: Make sure casts to or from fat pointers are illegalUlrik Sverdrup-8/+20
Fixes ICEs where non-fat pointers and scalars are cast to fat pointers, Fixes #21397 Fixes #22955 Fixes #23237 Fixes #24100
2015-05-02Make `UnsafeCell`, `RefCell`, `Mutex`, and `RwLock` accept DSTsP1start-4/+0
This + DST coercions (#24619) would allow code like `Rc<RefCell<Box<Trait>>>` to be simplified to `Rc<RefCell<Trait>>`.
2015-05-01Fixed some nitsTheo Belaire-1/+3
2015-05-01Remove ManagedSimonas Kazlauskas-2/+5
Leftovers from @-pointer times.