about summary refs log tree commit diff
path: root/src/test/ui/resolve
AgeCommit message (Collapse)AuthorLines
2019-04-22Fix #58270, fix off-by-one error in error diagnostics.Xavier Denis-3/+2
2019-04-18review comments: change wordingEsteban Küber-3/+3
2019-04-18Change suggestion of field when not in self contextEsteban Küber-19/+10
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-18/+15
2019-04-17Resolve inconsistency in error messages between "parameter" and "variable".Eduard-Mihai Burtescu-4/+4
2019-04-10clarify what the item is in "not a module" errorAndy Russell-6/+6
2019-03-28Rollup merge of #59198 - estebank:recovered-pattern, r=zackmdavisMazdak Farrokhzad-9/+2
Do not complain about unmentioned fields in recovered patterns When the parser has to recover from malformed code in a pattern, do not complain about missing fields. Fix #59145.
2019-03-24Deduplicate code for path suggestionEsteban Küber-1/+1
2019-03-23Mark duplicate import removal suggestion tool onlyEsteban Küber-1/+0
2019-03-23Tweak unnecessary import suggestionEsteban Küber-4/+2
2019-03-21use suggestions for "enum instead of variant" errorAndy Russell-23/+42
2019-03-14Do not complain about unmentioned fields in recovered patternsEsteban Küber-9/+2
When the parser has to recover from malformed code in a pattern, do not complain about missing fields.
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-7/+10
2019-03-11Update testsVadim Petrochenkov-41/+41
2019-03-06Collect unclosed delimiters in parent parserEsteban Küber-25/+26
2019-03-06Emit missing unclosed delimiter errorsEsteban Küber-34/+31
2019-02-11Only suggest imports if not imported.David Wood-12/+3
This commit modifies name resolution error reporting so that if a name is in scope and has been imported then we do not suggest importing it. This can occur when we add a label about constructors not being visible due to private fields. In these cases, we know that the struct/variant has been imported and we should silence any suggestions to import the struct/variant.
2019-02-09Auto merge of #57944 - estebank:unclosed-delim-the-quickening, r=oli-obkbors-20/+15
Deduplicate mismatched delimiter errors Delay unmatched delimiter errors until after the parser has run to deduplicate them when parsing and attempt recovering intelligently. Second attempt at #54029, follow up to #53949. Fix #31528.
2019-02-07Make name resolution handle consts in GenericParamsFromOuterFunction properlyvarkor-16/+16
2019-02-07tweak wording based on in person feedbackEsteban Küber-1/+1
2019-02-07Add missing trailing newlineEsteban Küber-1/+1
2019-02-07Remove spurious complaint about missing expression for bare semicolonsEsteban Küber-8/+11
2019-02-07Deduplicate mismatched delimiter errorsEsteban Küber-21/+13
Delay unmatched delimiter errors until after the parser has run to deduplicate them when parsing and attempt recovering intelligently.
2019-01-31Add suggestion for duplicated import.David Wood-5/+4
This commit adds a suggestion when a import is duplicated (ie. the same name is used twice trying to import the same thing) to remove the second import.
2019-01-15use structured macro and path resolve suggestionsAndy Russell-14/+24
2019-01-14Rollup merge of #57477 - euclio:clarify-lev-suggestion, r=zackmdavisMazdak Farrokhzad-27/+46
clarify resolve typo suggestion Include the kind of the binding that we're suggesting, and use a structured suggestion. Fixes #53445.
2019-01-13Auto merge of #51487 - Zoxc:incr-passes, r=michaelwoeristerbors-0/+60
Make more passes incremental r? @michaelwoerister
2019-01-13hygiene: Do not treat `Self` ctor as a local variableVadim Petrochenkov-0/+21
2019-01-11Update testsJohn Kåre Alsaker-0/+60
2019-01-09clarify resolve typo suggestionAndy Russell-27/+46
Include the kind of the binding that we're suggesting, and use a structured suggestion.
2019-01-01Fix broken links to second edition TRPL.Corey Farwell-1/+1
Fixes https://github.com/rust-lang/rust/issues/57104.
2018-12-25Remove licensesMark Rousskov-804/+204
2018-12-24make non_camel_case_types an early lintAndy Russell-26/+26
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-12-04Update testsOliver Scherer-6/+8
2018-11-30Updated ui tests.Alexander Regueiro-2/+2
2018-11-19Auto merge of #56051 - pietroalbini:rollup, r=pietroalbinibors-3/+9
Rollup of 25 pull requests Successful merges: - #55562 (Add powerpc- and powerpc64-unknown-linux-musl targets) - #55564 (test/linkage-visibility: Ignore on musl targets) - #55827 (A few tweaks to iterations/collecting) - #55834 (Forward the ABI of the non-zero sized fields of an union if they have the same ABI) - #55857 (remove unused dependency) - #55862 (in which the E0618 "expected function" diagnostic gets a makeover) - #55867 (do not panic just because cargo failed) - #55894 (miri enum discriminant handling: Fix treatment of pointers, better error when it is undef) - #55916 (Make miri value visitor useful for mutation) - #55919 (core/tests/num: Simplify `test_int_from_str_overflow()` test code) - #55923 (reword #[test] attribute error on fn items) - #55949 (ty: return impl Iterator from Predicate::walk_tys) - #55952 (Update to Clang 7 on CI.) - #55953 (#53488 Refactoring UpvarId) - #55962 (rustdoc: properly calculate spans for intra-doc link resolution errors) - #55963 (Stress test for MPSC) - #55968 (Clean up some non-mod-rs stuff.) - #55970 (Miri backtrace improvements) - #56007 (CTFE: dynamically make sure we do not call non-const-fn) - #56011 (Replace data.clone() by Arc::clone(&data) in mutex doc.) - #56012 (avoid shared ref in UnsafeCell::get) - #56016 (Add VecDeque::resize_with) - #56027 (docs: Add missing backtick in object_safety.rs docs) - #56043 (remove "approx env bounds" if we already know from trait) - #56059 (Increase `Duration` approximate equal threshold to 1us)
2018-11-18resolve: Avoid sentence breaks in diagnosticsVadim Petrochenkov-8/+8
2018-11-10in which the E0618 "expected function" diagnostic gets a makeoverZack M. Davis-3/+9
Now the main span focuses on the erroneous not-a-function callee, while showing the entire call expression is relegated to a secondary span. In the case where the erroneous callee is itself a call, we point out the definition, and, if the call expression spans multiple lines, tentatively suggest a semicolon (because we suspect that the "outer" call is actually supposed to be a tuple). The new `bug!` assertion is, in fact, safe (`confirm_builtin_call` is only called by `check_call`, which is only called with a first arg of kind `ExprKind::Call` in `check_expr_kind`). Resolves #51055.
2018-11-03Added tests.Alexander Regueiro-3/+9
2018-10-28resolve: Desugar empty import groups into synthetic dummy importsVadim Petrochenkov-23/+8
so that they are correctly resolved on 2018 edition
2018-10-28resolve: More precise spans for privacy errorsVadim Petrochenkov-20/+20
2018-10-23fix typos in various placesMatthias Krüger-3/+3
2018-10-21manage cases with tabs or other whitespacesFrançois Mockers-4/+0
2018-10-17fix other tests failing due to change in case or new suggestion for extern crateFrançois Mockers-6/+6
2018-10-16#45829 when a renamed import conflict with a previous importFrançois Mockers-2/+2
2018-10-07Fix internal compiler error on malformed match arm pattern.Donato Sciarra-0/+45
Issue: 54379
2018-09-29Improve ux when calling associated functions with dot notationDonato Sciarra-0/+24
Issue: 22692
2018-09-23Improve error message for E0424Julian Kulesh-5/+5
2018-09-13implement feature tuple_struct_self_ctorF001-28/+3