about summary refs log tree commit diff
path: root/src/test/ui/resolve
AgeCommit message (Collapse)AuthorLines
2019-01-13hygiene: Do not treat `Self` ctor as a local variableVadim Petrochenkov-0/+21
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
2018-09-05Provide more context for unenclosed delimitersEsteban Küber-0/+4
* When encountering EOF, point at the last opening brace that does not have the same indentation level as its close delimiter. * When encountering the wrong type of close delimiter, point at the likely correct open delimiter to give a better idea of what went wrong.
2018-09-05Reword un-closed delimiter labelEsteban Küber-3/+3
2018-08-31cleanup: Add main functions to some UI testsVadim Petrochenkov-7/+4
2018-08-19Lift some Sized checks.Masaki Hara-0/+1
2018-08-15Do not emit "incorrect close delimiter" twice in the same placeEsteban Küber-11/+1
2018-08-15Tweak unclosed delimiter parser errorEsteban Küber-28/+16
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+786
2018-08-05Fix doc link (again)Felix Rabe-1/+1
Similar to #52404. The link for comparison: - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized (broken) - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, stable 2nd ed) - https://doc.rust-lang.org/nightly/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2nd ed) - https://doc.rust-lang.org/nightly/book/2018-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2018 ed) This commit is the result of (first) searching via ripgrep (0.8.1 -SIMD -AVX): rg -l dynamically-sized-types-and-sized and then replacing all relevant occurrences via: find src/{libcore,test/ui} -type f -print0 | xargs -0 sed -i.bak \ s/dynamically-sized-types-and-sized/dynamically-sized-types-and-the-sized-trait/g find src/{libcore,test/ui} -type f -name '*.bak' -print0 | xargs -0 rm (Note: Tested on on macOS 10.13 (BSD). `sed -i.bak` should work on Linux (GNU sed) as well, but not tested.)
2018-07-17Fix doc linkFelix Rabe-1/+1
The link for comparison: - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized (broken) - https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized (fixed) This commit is the result of (first) searching via: find src -type f -print0 | xargs -0 fgrep -l dynamically-sized-types--sized and then replacing all relevant occurrences via: find src/{libcore,test/ui} -type f -print0 | xargs -0 sed -i.bak \ s/dynamically-sized-types--sized/dynamically-sized-types-and-sized/g find src/{libcore,test/ui} -type f -name '*.bak' -print0 | xargs -0 rm (Note: Commands run on macOS 10.13 (BSD). `sed -i.bak` should work on GNU/Linux as well, but not tested.)
2018-07-10Fix typo in error message E0277Rémy Rakic-2/+2
2018-06-23add `dyn` to display of dynamic (trait) type namesZack M. Davis-2/+2
The `dyn Trait` syntax was stabilized in 199ee327. Resolves #49277.
2018-06-19Update message for `!Sized` typesEsteban Küber-3/+3
2018-06-19Add link to book for `Sized` errorsEsteban Küber-0/+1
2018-06-19Add message to `rustc_on_unimplemented` attributes in coreEsteban Küber-3/+4
2018-06-01Add closing bracket expectation to sequences, modified appropriate test cases.Crazycolorz5-2/+2
2018-04-16Update testsJohn Kåre Alsaker-9/+4
2018-03-16Update testsJohn Kåre Alsaker-7/+17
2018-03-14Add empty main() to tests where it is missing.Eric Huss-12/+10
2018-03-14Add crate name to "main function not found" error message.Eric Huss-3/+3
Fixes #44798 and rust-lang/cargo#4948.
2018-03-14update testsGuillaume Gomez-49/+38
2018-02-27Add label to primary span in some parse errorsEsteban Küber-1/+1
2018-02-26Update UI testsVadim Petrochenkov-37/+37
2018-02-26Update UI testsVadim Petrochenkov-172/+172
2018-02-25Update ui testsGuillaume Gomez-0/+49
2018-02-10Change error message for E0391 to "cyclic dependency detected"John Kåre Alsaker-2/+2
2018-01-15Further tweaks to the outputEsteban Küber-27/+350
- Properly address Variant Ctors - Show signature if span of trait method without `self` is not available
2018-01-15Add note when trying to use `Self` as a ctorEsteban Küber-0/+4
2018-01-15Readd suggestion in enum variants with incorrect argsEsteban Küber-3/+3
2018-01-15Suggest the correct syntax for different struct typesEsteban Küber-33/+40