about summary refs log tree commit diff
path: root/src/test/ui/imports
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-5608/+0
2022-12-27Dont clobber `as ..` rename in import suggestionMichael Goulet-0/+41
2022-12-27Note alternative import candidates in nested use treeMichael Goulet-4/+38
2022-12-27Suppress suggestions for nested use treeMichael Goulet-0/+23
2022-12-19add function to tell if the current ambiguity error matches a previous one ↵Yiming Lei-54/+8
in ambiguity_errors if 2 errors of the kind and ident and span of the ident, b1, b2 and misc1 misc2 are the same then these 2 ambiguity errors matched prevent identical ambiguity error from pushing into vector of ambiguity_errors this will fix #105177
2022-12-13Make some diagnostics not depend on the source of what they reference being ↵Oli Scherer-4/+1
available
2022-12-11Move testsCaio-0/+8
2022-10-10suggest candidates for unresolved importSparrowLii-0/+17
2022-10-01bless ui testsMaybe Waffle-1/+1
2022-07-08add `#[test]` to functions in test modulesTakayuki Maeda-186/+97
2022-07-05fix typo in note about multiple inaccessible type aliasesClementTsang-0/+44
Mainly intended as a small typo fix ("aliass" -> "aliases") for the case where a type cannot be found in scope, and there are multiple inaccessible type aliases that match the missing type. In general this change would use the correct plural form in this scenario for words that end with 's'.
2022-06-21Move some tests to more reasonable directoriesCaio-0/+23
2022-06-17Auto merge of #97892 - klensy:fix-spaces, r=oli-obkbors-7/+7
diagnostics: remove trailing spaces Remove few occurrences of trailing spaces and drive by fix of needless alloc of const string.
2022-06-16--bless uiMaybe Waffle-2/+1
2022-06-16diagnostics: fix trailing spaceklensy-7/+7
2022-06-03Auto merge of #97497 - c410-f3r:z-errors, r=petrochenkovbors-0/+30
Move some tests to more reasonable places r? `@petrochenkov`
2022-06-01Rollup merge of #97264 - ↵Matthias Krüger-0/+34
TaKO8Ki:suggest-extern-crate-when-failing-to-resolve-use-crate, r=estebank Suggest `extern crate foo` when failing to resolve `use foo` closes #97095 r? ``@estebank``
2022-05-28Move some tests to more reasonable placesCaio-0/+30
2022-05-25suggest `extern crate foo` when failing to resolve `use foo`Takayuki Maeda-0/+34
fix ci error
2022-05-17Omit unnecessary help to add `#[cfg(test)]` when already annotatedKen Matsui-0/+206
2022-03-31remove find_use_placementFausto-4/+4
A more robust solution to finding where to place use suggestions was added. The algorithm uses the AST to find the span for the suggestion so we pass this span down to the HIR during lowering and use it. Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2021-12-21Rollup merge of #91770 - TaKO8Ki:suggest-adding-cfg-test, r=joshtriplettMatthias Krüger-0/+234
Suggest adding a `#[cfg(test)]` to to a test module closes #88138
2021-12-20Fixup tests for issue-86035Michael Goulet-4/+4
2021-12-20Test for issue-86035Michael Goulet-0/+97
2021-12-16suggest adding a `#[cfg(test)]` to test modulesTakayuki Maeda-0/+234
remove a empty line import `module_to_string` use `contains("test")` show a suggestion in case module starts_with/ends_with "test" replace `parent` with `containing`
2021-12-03Update invalid crate attributes, add help messageTom Farmer-1/+13
tidy run update invalid crate attributes, improve error update test outputs de-capitalise error update tests Update invalid crate attributes, add help message Update - generate span without using BytePos Add correct dependancies Update - generate suggestion without BytePos Tidy run update tests Generate Suggestion without BytePos Add all builtin attributes add err builtin inner attr at top of crate fix tests add err builtin inner attr at top of crate tidy fix add err builtin inner attr at top of crate
2021-12-01Improve suggestion for extern crate self error messageMichael-1/+6
2021-11-18Move some tests to more reasonable directoriesCaio-0/+48
2021-11-14Move some tests to more reasonable directoriesCaio-0/+84
2021-10-25Edit error messages for rustc_resolve::AmbiguityKind variantspierwill-27/+54
Emit description of the ambiguity as a note. Co-authored-by: Noah Lev <camelidcamel@gmail.com> Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
2021-10-15Bless testsCameron Steffen-11/+11
2021-10-03Practice diagnostic message conventionHirochika Matsumoto-1/+1
2021-09-26Improve diagnostics for inaccessible itemsFabian Wolff-14/+35
2021-09-26Do not suggest importing inaccessible itemsFabian Wolff-43/+17
2021-08-12Add test or unused import removal suggestion with attributes.Mara Bos-0/+33
2021-08-11Modify structured suggestion outputEsteban Küber-65/+72
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-05-12Show macro name in 'this error originates in macro' messageAaron Hill-13/+13
When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error.
2021-04-08Stablize `non_ascii_idents` feature.Charles Lew-137/+97
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-4/+2
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2021-03-21Fix ICE with `use clippy::a::b;`Camelid-0/+35
2021-02-25Update test output for edition preludes.Mara Bos-3/+3
2021-01-16Move some tests to more reasonable directories - 2Caio-0/+64
Address comments Update limits
2021-01-13Update tests for extern block lintingMark Rousskov-17/+23
2020-12-07Move some tests to subdirectoriesVadim Petrochenkov-33/+2270
2020-11-06Revert "Revert "resolve: Avoid "self-confirming" import resolutions in one ↵Mark Rousskov-24/+5
more case"" This reverts commit b20bce8ce54ea9d47c2e3eb0b17cbb6baf916ae2. It retains the test added in that commit as a check-pass test, intended to prevent future (unintentional) regressions.
2020-10-02Revert "resolve: Avoid "self-confirming" import resolutions in one more case"Vadim Petrochenkov-5/+39
2020-09-01Clarify message about unresolved useKornel-5/+7
2020-07-27mv std libs to library/mark-1/+1
2020-05-08Skip tests on emscriptenYuki Okushi-0/+1
2020-05-06Move tests from `test/run-fail` to UIYuki Okushi-0/+10