summary refs log tree commit diff
path: root/src/librustc_const_eval
AgeCommit message (Collapse)AuthorLines
2016-10-19Stabilise `?`Nick Cameron-1/+1
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436)
2016-09-23Auto merge of #36335 - mcarton:compiletest, r=GuillaumeGomezbors-8/+8
Fix ICE test in compiletest fail-tests While working on Clippy which uses *compiletest*, I noticed that as long as all expected error are found, *compile-fail* tests will be marked *ok* even if there is an ICE. One function seems to have not been updated with JSON errors because ICEs are now reported like this: ```json {"message":"../src/librustc/ty/context.rs:161: Attempted to intern `_` which contains inference types/regions in the global type context","code":null,"level":"error: internal compiler error","spans":[],"children":[],"rendered":null} ``` I don't think I can add a test for that. I guess: r? @nikomatsakis
2016-09-20rustc_metadata: group information into less tags.Eduard Burtescu-9/+8
2016-09-20rustc: remove ImplOrTraitItemId and TraitDef's associated_type_names.Eduard Burtescu-7/+5
2016-09-20rustc_metadata: move more RBML tags to auto-serialization.Eduard Burtescu-3/+11
2016-09-20rustc_metadata: remove ty{en,de}code and move to auto-derived serialization.Eduard Burtescu-14/+13
2016-09-20rustc: remove hir::fold.Eduard Burtescu-50/+55
2016-09-20rustc: replace uses of NodeId in Def, other than closures and labels.Eduard Burtescu-1/+2
2016-09-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-2/+2
2016-09-20Don't ICE when a float can't be parsedmcarton-8/+8
2016-09-13Auto merge of #36041 - ahmedcharles:try, r=nrcbors-22/+19
Replace try! with ?.
2016-09-11Use question_mark feature in librustc_const_eval.Ahmed Charles-22/+19
2016-09-10Update E0297 to new error formatJohn Firebaugh-2/+5
2016-09-08Refactor `TyStruct`/`TyEnum`/`TyUnion` into `TyAdt`Vadim Petrochenkov-26/+28
2016-09-04Replace `_, _` with `..`Vadim Petrochenkov-9/+9
2016-09-04Replace `_, _, _` with `..`Vadim Petrochenkov-2/+2
2016-09-03Translate union constantsVadim Petrochenkov-2/+5
Fix alignment for packed unions Add some missing privacy test Get rid of `unimplemented_unions` macro
2016-09-03Some better support for unions through the compilerVadim Petrochenkov-4/+6
2016-08-30E0165 Update error format #35270Gavin Baker-1/+4
- Fixes #35270 - Part of #35233 r? @jonathandturner
2016-08-27rustc: pass ty::Region behind an interned 'tcx reference.Eduard Burtescu-1/+1
2016-08-18Rollup merge of #35744 - DevShep:ds/update_E0009, r=jonathandturnerEduard-Mihai Burtescu-4/+5
Update E0009 to new format Part of #35233 Fixes #35193 r? @jonathandturner
2016-08-17Rollup merge of #35731 - pythoneer:fix-35192, r=jonathandturnerJonathan Turner-3/+4
Update E0005 to use a label Fixes #35192 as Part of #35233 r? @jonathandturner
2016-08-16Update E0009 to new formatJacob-4/+5
2016-08-17rustc: reduce Substs and Generics to a simple immutable API.Eduard Burtescu-8/+8
2016-08-16Update E0005 to use a labelDustin Bensing-3/+4
2016-08-16Auto merge of #35162 - canndrew:bang_type_coerced, r=nikomatsakisbors-2/+2
Implement the `!` type This implements the never type (`!`) and hides it behind the feature gate `#[feature(never_type)]`. With the feature gate off, things should build as normal (although some error messages may be different). With the gate on, `!` is usable as a type and diverging type variables (ie. types that are unconstrained by anything in the code) will default to `!` instead of `()`.
2016-08-14Rollup merge of #35644 - garekkream:update-E0302-new-error-format, ↵Eduard-Mihai Burtescu-1/+3
r=jonathandturner Update E0302 to the new format Part of #35233. Fixes #35523. r? @jonathandturner
2016-08-13Minor fixups based on feedbackAndrew Cann-1/+1
2016-08-13Rename empty/bang to neverAndrew Cann-3/+3
Split Ty::is_empty method into is_never and is_uninhabited
2016-08-13Update E0302 to the new formatKrzysztof Garczynski-1/+3
2016-08-13Update E0301 to the new formatKrzysztof Garczynski-1/+3
2016-08-12rustc: rename ProjectionMode and its variant to be more memorable.Eduard Burtescu-7/+7
2016-08-11Rollup merge of #35532 - KiChjang:e0004-follow-up, r=jonathandturnerJonathan Turner-6/+1
Do not span across nodes for E0004 Part of #35233. Fixes #35529. r? @arielb1
2016-08-11Rollup merge of #35530 - srdja:master, r=jonathandturnerJonathan Turner-2/+8
Update E0008 and E0007 to new format Part of #35233 A fix for #35496 r? @jonathandturner
2016-08-10Auto merge of #35525 - jonathandturner:rollup, r=jonathandturnerbors-1/+4
Rollup of 15 pull requests - Successful merges: #35371, #35396, #35446, #35449, #35452, #35458, #35465, #35466, #35470, #35475, #35477, #35484, #35504, #35507, #35524 - Failed merges: #35395, #35415
2016-08-09Auto merge of #35401 - jonathandturner:enable_json_and_new_errors, ↵bors-6/+2
r=jonathandturner Turn on new errors and json mode This PR is a big-switch, but on a well-worn path: * Turns on new errors by default (and removes old skool) * Moves json output from behind a flag The RFC for new errors [landed](https://github.com/rust-lang/rfcs/pull/1644) and as part of that we wanted some bake time. It's now had a few weeks + all the time leading up to the RFC of people banging on it. We've also had [editors updating to the new format](https://github.com/saviorisdead/RustyCode/pull/159) and expect more to follow. We also have an [issue on old skool](https://github.com/rust-lang/rust/issues/35330) that needs to be fixed as more errors are switched to the new style, but it seems silly to fix old skool errors when we fully intend to throw the switch in the near future. This makes it lean towards "why not just throw the switch now, rather than waiting a couple more weeks?" I only know of vim that wanted to try to parse the new format but were not sure how, and I think we can reach out to them and work out something in the 8 weeks before this would appear in a stable release. We've [hashed out](https://github.com/rust-lang/rust/issues/35330) stabilizing JSON output, and it seems like people are relatively happy making what we have v1 and then likely adding to it in the future. The idea is that we'd maintain backward compatibility and just add new fields as needed. We'll also work on a separate output format that'd be better suited for interactive tools like IDES (since JSON message can get a little long depending on the error). This PR stabilizes JSON mode, allowing its use without `-Z unstable-options` Combined, this gives editors two ways to support errors going forward: parsing the new error format or using the JSON mode. By moving JSON to stable, we can also add support to Cargo, which plugin authors tell us does help simplify their support story. r? @nikomatsakis cc @rust-lang/tools Closes https://github.com/rust-lang/rust/issues/34826
2016-08-09Update E0007 to new formatsrdja-1/+4
2016-08-09Auto merge of #35166 - nikomatsakis:incr-comp-ice-34991-2, r=mwbors-2/+2
Address ICEs running w/ incremental compilation and building glium Fixes for various ICEs I encountered trying to build glium with incremental compilation enabled. Building glium now works. Of the 4 ICEs, I have test cases for 3 of them -- I didn't isolate a test for the last commit and kind of want to go do other things -- most notably, figuring out why incremental isn't saving much *effort*. But if it seems worthwhile and I can come back and try to narrow down the problem. r? @michaelwoerister Fixes #34991 Fixes #32015
2016-08-08Do not span across nodes for E0004Keith Yeung-6/+1
2016-08-08Update E0008 to new formatsrdja-1/+4
2016-08-08Update E0162 to the new formatKrzysztof Garczynski-1/+4
2016-08-07Lengthen the span label to include match and expr for E0004Keith Yeung-1/+6
2016-08-07Turn on new errors, json mode. Remove duplicate unicode testJonathan Turner-6/+2
2016-08-06Auto merge of #35393 - GuillaumeGomez:err_codes2, r=jonathandturnerbors-22/+26
Err codes r? @jonathandturner
2016-08-06Rollup merge of #35380 - TheZoq2:master, r=jonathandturnerEduard-Mihai Burtescu-2/+7
Update E0004 to use labels Fixes #35191 and is part of #35233 "r? @jonathandturner
2016-08-06Rollup merge of #35370 - razielgn:updated-e0306-to-new-format, r=jonathandturnerEduard-Mihai Burtescu-4/+7
Updated E0306 to new format. Part of #35233. Fixes #35315. r? @jonathandturner
2016-08-05Add error code check in librustc_const_eval/diagnostics.rsGuillaume Gomez-22/+26
2016-08-05Update E0004 to use labelsTheZoq2-2/+7
2016-08-05Updated E0306 to new format.Federico Ravasio-4/+7
2016-08-04Changing label to "this is an..."saml-1/+1