summary refs log tree commit diff
path: root/src/test/ui/error-codes
AgeCommit message (Collapse)AuthorLines
2018-03-29Stabilize underscore lifetimesTaylor Cramer-4/+3
2018-03-28Stabilize match_default_bindingsTaylor Cramer-24/+4
This includes a submodule update to rustfmt in order to allow a stable feature declaration.
2018-03-26Fix e0658 ui testMark Mansi-7/+12
2018-03-26Stabilize i128 feature tooMark Mansi-1/+1
2018-03-26Stabilize conservative_impl_traitTaylor Cramer-3/+2
2018-03-25Rollup merge of #49046 - Zoxc:error-summary, r=michaelwoeristerkennytm-2/+4
Always print `aborting due to n previous error(s)` r? @michaelwoerister
2018-03-23Rollup merge of #49160 - estebank:issue-47457-missing-fields, r=oli-obkAlex Crichton-2/+2
Reduce the diagnostic spam when multiple fields are missing in pattern Fix #47457.
2018-03-20Auto merge of #49190 - kennytm:rollup, r=kennytmbors-3/+3
Rollup of 17 pull requests - Successful merges: #46518, #48810, #48834, #48902, #49004, #49092, #49096, #49099, #49104, #49125, #49139, #49152, #49157, #49161, #49166, #49176, #49184 - Failed merges:
2018-03-19Reduce diagnostic verbosity by removing labelsEsteban Küber-2/+2
2018-03-20Stabilize slice patterns without `..`Vadim Petrochenkov-6/+2
Merge `feature(advanced_slice_patterns)` into `feature(slice_patterns)`
2018-03-19#49133 - Reworded the Error message: "`pub` not needed here" messageDileep Bapat-3/+3
2018-03-16Update testsJohn Kåre Alsaker-2/+4
2018-03-16Rollup merge of #49037 - estebank:coherence-tweaks, r=nikomatsakiskennytm-2/+31
Coherence diagnostic tweaks
2018-03-16Rollup merge of #49007 - estebank:follow-up-47574, r=oli-obkkennytm-8/+9
Some tweaks to "type parameters from outer function" diagnostic Follow up to #47574.
2018-03-15Coherence diagnostic tweaksEsteban Küber-2/+31
2018-03-16Rollup merge of #48706 - ehuss:main-not-found-in-crate, r=estebankkennytm-5/+22
Add crate name to "main function not found" error message. Fixes #44798 and rust-lang/cargo#4948. I was wondering if it might be cleaner to update the ui tests to add a simple `fn main() {}` for the unrelated tests. Let me know if you would prefer that.
2018-03-15Auto merge of #48138 - estebank:issue-45092, r=nikomatsakisbors-10/+11
Reword E0044 and message for `!Send` types - Reword E0044 help. - Change error message for types that don't implement `Send` CC #45092, #46678, #24909, #33307.
2018-03-14Add span label to E0044Esteban Küber-1/+2
2018-03-14Reword E0044 and message for `!Send` typesEsteban Küber-10/+10
- Reword E0044 help. - Change error message for types that don't implement `Send`
2018-03-14Update E0601 test for new message format.Eric Huss-1/+1
2018-03-14Some tweaks to "type parameters from outer function" diagnosticEsteban Küber-8/+9
Follow up to #47574.
2018-03-14Add backticks to `main` not found errors.Eric Huss-2/+2
2018-03-14Add suggestion where to add main function.Eric Huss-0/+18
2018-03-14Add empty main() to tests where it is missing.Eric Huss-5/+4
2018-03-14Add crate name to "main function not found" error message.Eric Huss-1/+1
Fixes #44798 and rust-lang/cargo#4948.
2018-03-14update testsGuillaume Gomez-256/+254
2018-03-10Auto merge of #47574 - zilbuz:issue-14844, r=nikomatsakisbors-6/+54
Show the used type variable when issuing a "can't use type parameters from outer function" error message Fix #14844 r? @estebank
2018-03-08Update testsBasile Desloges-6/+54
2018-03-08Unify the const folding errorsOliver Schneider-7/+6
before they differed depending on whether optimizations were on or not
2018-03-08Regenerate testsOliver Schneider-14/+22
2018-03-08Rebase falloutOliver Schneider-1/+1
2018-03-08Update testsOliver Schneider-0/+1
2018-03-08Adjust tests to more aggressive const err lintingOliver Schneider-0/+2
2018-03-08Reduce noise in error reportingOliver Schneider-1/+1
2018-03-08Fully use miri in transOliver Schneider-3/+4
2018-02-28Remove E0245; improve E0404 explanationMark Mansi-2/+9
2018-02-26Fix rebaseVadim Petrochenkov-7/+7
2018-02-26Update UI testsVadim Petrochenkov-15/+15
2018-02-26Update UI testsVadim Petrochenkov-396/+396
2018-02-26Auto merge of #48337 - GuillaumeGomez:rustc-explain, r=estebankbors-0/+256
Rustc explain Fixes #48041. To make the review easier, I separated tests update to code update. Also, I used this script to generate new ui tests stderr: ```python from os import listdir from os.path import isdir, isfile, join PATH = "src/test/ui" def do_something(path): files = [join(path, f) for f in listdir(path)] for f in files: if isdir(f): do_something(f) continue if not isfile(f) or not f.endswith(".stderr"): continue x = open(f, "r") content = x.read().strip() if "error[E" not in content: continue errors = dict() for y in content.splitlines(): if y.startswith("error[E"): errors[y[6:11]] = True errors = sorted(errors.keys()) if len(errors) < 1: print("weird... {}".format(f)) continue if len(errors) > 1: content += "\n\nYou've got a few errors: {}".format(", ".join(errors)) content += "\nIf you want more information on an error, try using \"rustc --explain {}\"".format(errors[0]) else: content += "\n\nIf you want more information on this error, try using \"rustc --explain {}\"".format(errors[0]) content += "\n" x = open(f, "w") x.write(content) do_something(PATH) ```
2018-02-26Auto merge of #48082 - jseyfried:improve_struct_field_hygiene, r=petrochenkovbors-3/+3
macros: improve struct constructor field hygiene, fix span bug Fixes #47311. r? @nrc
2018-02-25Update ui testsGuillaume Gomez-0/+256
2018-02-24Rollup merge of #48084 - cramertj:impl-trait-errors, r=nikomatsakisManish Goregaokar-9/+9
Error on nested impl Trait and path projections from impl Trait cc #34511 r? @nikomatsakis
2018-02-23Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkovbors-6/+4
Fix span of visibility This PR 1. adds a closing parenthesis to the span of `Visibility::Crate` (e.g. `pub(crate)`). The current span only covers `pub(crate`. 2. adds a `span` field to `Visibility::Restricted`. This span covers the entire visibility expression (e.g. `pub (in self)`). Currently all we can have is a span for `Path`. This PR is motivated by the bug found in rustfmt (https://github.com/rust-lang-nursery/rustfmt/issues/2398). The first change is a strict improvement IMHO. The second change may not be desirable, as it adds a field which is currently not used by the compiler.
2018-02-19Update tests.Jeffrey Seyfried-3/+3
2018-02-18Fix up tests and typosSeiichi Uchida-6/+4
2018-02-14Update E0657 stderr to match changed testTaylor Cramer-6/+6
2018-02-14inform type annotationscsmoe-27/+0
2018-02-13Make nested impl Trait a hard errorTaylor Cramer-3/+3
2018-02-08Move some E0XXX to `ui`Esteban Küber-0/+7536