about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-12-27allow rustfmt key in [build] sectionSebastien Marie-0/+1
2019-12-26Move arena_vec inside lowering.Camille GILLOT-12/+12
2019-12-26Remove some type information.Camille GILLOT-15/+13
2019-12-26Fewer calls to arena.alloc.Camille GILLOT-138/+121
2019-12-26Fallout in other crates.Camille GILLOT-413/+491
2019-12-26Lowering for hir::Expr.Camille GILLOT-229/+347
2019-12-26Visit for hir::Expr.Camille GILLOT-38/+41
2019-12-26Syntax for hir::Expr.Camille GILLOT-341/+355
2019-12-26Auto merge of #67592 - matthewjasper:cleanup-match, r=Centrilbors-135/+276
Prepare for lowering or-patterns This is probably best reviewed commit-by-commit. * Rustfmt `rustc_mir::build::{self, matches}` * Remove `-Znll-dont-emit-read-for-match` * Split `match_expr` into smaller functions * Feature gate or-patterns in const contexts cc https://github.com/rust-lang/rust/issues/54883 r? @Centril
2019-12-26Auto merge of #67327 - oli-obk:cleanup, r=RalfJungbors-754/+871
Split up `const_eval.rs` Fixes #67316 r? @RalfJung
2019-12-26Rebase falloutOliver Scherer-3/+5
2019-12-26A cycle error on a diverging function is now a const stack overflow againOliver Scherer-16/+91
2019-12-26Bail out before running the queryOliver Scherer-3/+4
2019-12-26TidyOliver Scherer-7/+10
2019-12-26Fix imports after rebaseOliver Scherer-11/+9
2019-12-26Rename `query` moduleOliver Scherer-2/+2
2019-12-26Move function definitions before their first useOliver Scherer-138/+138
2019-12-26Move all functions used by the queries to query.rsOliver Scherer-108/+98
2019-12-26Move a function to make its adjacent impl block easier to discoverOliver Scherer-39/+43
2019-12-26Make some functions crate localOliver Scherer-3/+3
2019-12-26Move `eval_body_using_ecx` to the only module it is used inOliver Scherer-50/+53
2019-12-26Move `eval_const_fn_call` to the `const_eval` moduleOliver Scherer-34/+44
2019-12-26Move const eval query components into their own moduleOliver Scherer-228/+234
2019-12-26Move const eval machine into its own moduleOliver Scherer-344/+369
2019-12-26Auto merge of #66670 - crlf0710:normalize_ident, r=Dylan-DPCbors-4/+28
Normalize ident Perform unicode normalization on identifiers. Resolving the first bullet point in #55467.
2019-12-26Add unicode-normalization to whitelist.Charles Lew-1/+3
2019-12-26Add a test and bless existing test case.Charles Lew-1/+9
2019-12-26Normalize identifiers in librustc_parse.Charles Lew-2/+16
2019-12-26Auto merge of #67268 - estebank:assoc-types, r=oli-obkbors-459/+1160
Tweak errors for missing associated types and type parameters * On `dyn Trait` missing associated types, provide a structured suggestion for them * On missing type parameters, provide structured suggestion for them * Point at trait definition when missing required type parameter * Tweak output of E0658 * Tweak wording of E0719 * Account for `Trait1 + Trait2` case Fix #66380, fix #60595. CC #63711.
2019-12-26Auto merge of #67580 - RalfJung:miri-unleash-tests, r=oli-obkbors-17/+61
test the unleashed Miri In particular, test what happens when we try to drop something. Cc https://github.com/rust-lang/const-eval/issues/17 r? @oli-obk
2019-12-25Auto merge of #66919 - dtolnay:description, r=KodrAusbors-200/+107
Deprecate Error::description for real `description` has been documented as soft-deprecated since 1.27.0 (17 months ago). There is no longer any reason to call it or implement it. This PR: - adds `#[rustc_deprecated(since = "1.41.0")]` to `Error::description`; - moves `description` (and `cause`, which is also deprecated) below the `source` and `backtrace` methods in the Error trait; - reduces documentation of `description` and `cause` to take up much less vertical real estate in rustdocs, while preserving the example that shows how to render errors without needing to call `description`; - removes the description function of all *currently unstable* Error impls in the standard library; - marks `#[allow(deprecated)]` the description function of all *stable* Error impls in the standard library; - replaces miscellaneous uses of `description` in example code and the compiler. --- ![description](https://user-images.githubusercontent.com/1940490/69910369-3bbaca80-13bf-11ea-94f7-2fe27a7ea333.png)
2019-12-25Fix rebase and sort assoc type list for deterministic outputEsteban Küber-19/+21
2019-12-25Auto merge of #67524 - LukasKalbertodt:improve-into-iter-lint, r=matthewjasperbors-6/+140
Generalize `array_into_iter` lint to also lint for boxed arrays `Box` is special in that a method call on a box can move the value out of the box. Thus, the same backwards-compatibility problem can arise for boxed arrays as for simple arrays. --- CC #66145 r? @matthewjasper (as you reviewed the first PR)
2019-12-25use error-patternRalf Jung-2/+2
2019-12-25Use link in doc commentmatthewjasper-1/+2
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-12-25Feature gate or patterns in const contextsMatthew Jasper-5/+110
2019-12-25Split `match_expr` into smaller functionsMatthew Jasper-108/+164
2019-12-25Remove `-Znll-dont-emit-read-for-match`Matthew Jasper-22/+1
2019-12-25Reduce log level from info to debugMatthew Jasper-1/+1
2019-12-24Deprecate Error::description for realDavid Tolnay-200/+107
`description` has been documented as soft-deprecated since 1.27.0 (17 months ago). There is no longer any reason to call it or implement it. This commit: - adds #[rustc_deprecated(since = "1.41.0")] to Error::description; - moves description (and cause, which is also deprecated) below the source and backtrace methods in the Error trait; - reduces documentation of description and cause to take up much less vertical real estate in rustdocs, while preserving the example that shows how to render errors without needing to call description; - removes the description function of all *currently unstable* Error impls in the standard library; - marks #[allow(deprecated)] the description function of all *stable* Error impls in the standard library; - replaces miscellaneous uses of description in example code and the compiler.
2019-12-24Fix suggestion span for typo in associated type nameEsteban Küber-18/+22
2019-12-24Cleanup: move code to their own methods and deduplicate actionsEsteban Küber-29/+47
2019-12-24Account for multiple trait bounds with missing associated typesEsteban Küber-146/+367
2019-12-24Avoid output dependency on std spansEsteban Küber-67/+60
2019-12-24Use structured suggestion for bad `Fn` traitsEsteban Küber-20/+40
2019-12-24Handle more specific case E0222Esteban Küber-60/+167
2019-12-24review comments: move error reporting to their own methodsEsteban Küber-187/+209
2019-12-24Fix case in `associated-type-projection-from-multiple-supertraits.rs`Esteban Küber-12/+14
This still doesn't handle the case entirely correctly, requiring a more targeted approach with a better suggestion, but at least now the suggested syntax makes *some* sense.
2019-12-24Tweak errors for missing associated types and type parametersEsteban Küber-299/+611
2019-12-25Auto merge of #67303 - dtolnay:rls, r=Xanewokbors-0/+0
Update rls submodule This pulls in https://github.com/rust-lang/rls/pull/1603 in order to unblock https://github.com/rust-lang/rust/pull/66919. r? @Xanewok