about summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2017-06-15remove trailing whitespaceNiko Matsakis-1/+1
2017-06-15explain purpose of testNiko Matsakis-0/+6
2017-06-15Clearer Error Message for Duplicate DefinitionAlex Ozdemir-109/+136
Clearer use of the error message and span labels to communicate duplicaiton defitions/imports. New error format: ``` error[E0428]: the name `Foo` is defined twice --> example.rs:2:1 | 1 | trait Foo { } | ------------- previous definition of the trait `Foo` here 2 | struct Foo { } | ^^^^^^^^^^^^^^ `Foo` redefined here = note: `Foo` must be defined only once in the type namespace of this module error: aborting due to previous error ```
2017-06-15Auto merge of #42648 - murarth:merge-alloc-collections, r=alexcrichtonbors-32/+32
Merge crate `collections` into `alloc` This is a necessary step in order to merge #42565
2017-06-15Add E0618Guillaume Gomez-2/+22
2017-06-15Add E0616Guillaume Gomez-0/+24
2017-06-15Add E0615Guillaume Gomez-0/+22
2017-06-15Add E0614Guillaume Gomez-0/+14
2017-06-15Add E0613Guillaume Gomez-2/+18
2017-06-15Add E0612Guillaume Gomez-1/+17
2017-06-15Add E0611Guillaume Gomez-0/+22
2017-06-14Report error for assignment in `if` conditionEsteban Küber-48/+0
For code like `if x = 3 {}`, output: ``` error[E0308]: mismatched types --> $DIR/issue-17283.rs:25:8 | 25 | if x = x { | ^^^^^ | | | help: did you mean to compare equality? `x == x` | expected bool, found () | = note: expected type `bool` found type `()` ```
2017-06-15Added more testsJohn Kåre Alsaker-0/+13
2017-06-14suppress trait errors that are implied by other errorsAriel Ben-Yehuda-37/+19
Instead of suppressing only trait errors that are "exact duplicates", display only the "most high-level" error when there are multiple trait errors with the same span that imply each-other. e.g. when there are both `[closure]: Fn` and `[closure]: FnOnce`, omit displaying the `[closure]: FnOnce` bound.
2017-06-15Remove struct_field_attributes feature gateWonwoo Choi-24/+0
2017-06-14Auto merge of #42433 - marco-c:profiling, r=alexcrichtonbors-0/+13
Build instruction profiler runtime as part of compiler-rt r? @alexcrichton This is #38608 with some fixes. Still missing: - [x] testing with profiler enabled on some builders (on which ones? Should I add the option to some of the already existing configurations, or create a new configuration?); - [x] enabling distribution (on which builders?); - [x] documentation.
2017-06-13Merge crate `collections` into `alloc`Murarth-32/+32
2017-06-13Add E0617Guillaume Gomez-6/+38
2017-06-12kill dep-graph-unrelated testNiko Matsakis-22/+0
Doesnt' seem to add much value, and since we don't track `TransCrateItem` anymore, it's not clear what to translate it to.
2017-06-12kill various tasks we no longer need and remove outdated README textNiko Matsakis-8/+0
In the case of `TransCrateItem`, I had to tweak the tests a bit, but it's a concept that doesn't work well under new system.
2017-06-12Add E0608Guillaume Gomez-9/+22
2017-06-11Auto merge of #42585 - GuillaumeGomez:E0609, r=Susurrusbors-4/+36
Add E0609 Part of #42229. cc @Susurrus
2017-06-12Add E0610Guillaume Gomez-4/+18
2017-06-11Add E0609Guillaume Gomez-0/+18
2017-06-10Only emit one error for `use foo::self;`Tommy Ip-4/+5
Currently `use foo::self;` would emit both E0429 and E0432. This commit silence the latter one (assuming `foo` is a valid module). Fixes #42559
2017-06-09Rollup merge of #42531 - mmatyas:aarch64_compile-test_fix, r=nagisaCorey Farwell-0/+1
Ignore variadic FFI test on AArch64 I've cross compiled Rust to `aarch64-linux-gnu`, and tried to run the compile-fail tests, but `variadic-ffi.rs` fails with the following error: ``` The ABI `"stdcall"` is not supported for the current target [E0570] ``` The test seems to be ignored on (32-bit) ARM, so I turned it off for AArch64 too.
2017-06-08Ignore variadic FFI test on AArch64Mátyás Mustoha-0/+1
2017-06-07Rollup merge of #42490 - gaurikholkar:master, r=eddybCorey Farwell-3/+3
Changing error message from `contains interior mutability` to `may contain interior mutability` Fixes #40313 . I have changed the message from `contains interior mutability` to `may contain interior mutability` for the following example ``` use std::cell::Cell; use std::panic::catch_unwind; fn main() { let mut x = Cell::new(22); catch_unwind(|| { x.set(23); }); } ``` which has been added as a ui test. Also, the message [here](https://github.com/gaurikholkar/rust/blob/master/src/librustc_mir/transform/qualify_consts.rs#L666) and it's respective `compile-fail` test have been modified. cc @nikomatsakis @Mark-Simulacrum @eddyb
2017-06-06Rollup merge of #42415 - stephen-lazaro:Issue29094, r=arielb1Corey Farwell-5/+5
Remove 'elided' from lifetime resolution error Removes 'elided' from lifetime resolution errors Removes 'elided' from relevant error messaging tests This PR resolves https://github.com/rust-lang/rust/issues/29094 r? @Mark-Simulacrum
2017-06-06Auto merge of #42361 - GuillaumeGomez:error-codes, r=arielb1bors-0/+16
Add E0602 Part of #42229. cc @Susurrus
2017-06-07Changing error message for interior mutability, adding ui testgaurikholkar-3/+3
2017-06-05Auto merge of #42383 - estebank:candidate-newline, r=arielb1bors-239/+1
Use multiline note for trait suggestion
2017-06-04Separate suggestion in a `help` and a `note`Esteban Küber-0/+1
2017-06-04Merge branch 'profiling' of github.com:whitequark/rust into profilingMarco Castelluccio-0/+13
2017-06-04Auto merge of #42265 - Zoxc:for-sugar, r=eddybbors-1/+18
Change for-loop desugar to not borrow the iterator during the loop This is enables the use of suspend points inside for-loops in movable generators. This is illegal in the current desugaring as `iter` is borrowed across the body.
2017-06-03Auto merge of #42391 - photoszzt:master, r=Manishearthbors-15/+18
Better suggestion for unknown method r? @Manishearth fixes #42386
2017-06-03Auto merge of #42387 - GuillaumeGomez:error-codes-next, r=Susurrusbors-0/+17
Add E0603 error code Part of #42229. cc @Susurrus
2017-06-03Remove 'elided' from lifetime resolution errorStephen Lazaro-5/+5
Removes 'elided' from lifetime resolution errors Removes 'elided' from relevant error messaging tests
2017-06-03Auto merge of #42334 - est31:master, r=jseyfriedbors-14/+52
Extend the unused macro lint to macros 2.0 Extends the unused macro lint (added in PR #41907) to macros 2.0 (added in PR #40847). r? @jseyfried
2017-06-03Auto merge of #42396 - venkatagiri:remove_lifetime_extn, r=arielb1bors-3/+1
rustc: remove temporary lifetime extension by borrow hint closes #39283. Thanks to @nikomatsakis for mentoring on this one. r? @arielb1
2017-06-02Implement Sync for SyncSenderSteven Fackler-3/+1
2017-06-02Better suggestion for unknown methodzzhu-15/+18
Fixes #42386
2017-06-02rustc: remove temporary lifetime extension by borrow hintVenkata Giri Reddy-3/+1
2017-06-02Add E0603 error codeGuillaume Gomez-0/+17
2017-06-02Add E0602Guillaume Gomez-0/+16
2017-06-02Use multiline note for trait suggestionEsteban Küber-239/+0
2017-06-01remove `layout_cache` and fix `-Z print-type-sizes`Niko Matsakis-20/+0
now we grow the type-sizes info during execution, rather than walking the cache after the fact
2017-06-01Change for-loop desugar to not borrow the iterator during the loopJohn Kåre Alsaker-1/+18
2017-06-01Rollup merge of #42324 - seanmonstar:41323-compare_const_impl, r=nikomatsakisCorey Farwell-0/+57
associated_consts: check trait obligations and regionck for associated consts Closes #41323 r? @nikomatsakis
2017-05-31Fix a test and address review commentest31-0/+2