about summary refs log tree commit diff
path: root/src/test/ui/static
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-1215/+0
2022-12-23Move testsCaio-0/+37
2022-11-12Move testsCaio-0/+38
2022-10-20Update tests to match error message changesb4den-6/+6
2022-09-24Note the type when unable to drop values in compile timeDeadbeef-24/+24
2022-08-14suggest lazy-static for non-const staticscameron-0/+1
2022-07-01Shorten def_span for more items.Camille GILLOT-1/+1
2022-04-30Bless tests.Camille GILLOT-1/+1
2022-02-12bless youDeadbeef-1/+3
2021-11-25Account for type obligation coming from `const` and `static`Esteban Kuber-3/+4
2021-11-25On type mismatch caused by assignment, point at assigneeEsteban Küber-1/+3
* Do not emit unnecessary E0308 after E0070 * Show fewer errors on `while let` missing `let` * Hide redundant E0308 on `while let` missing `let` * Point at binding definition when possible on invalid assignment * do not point at closure twice * do not suggest `if let` for literals in lhs * account for parameter types
2021-11-18Move some tests to more reasonable directoriesCaio-0/+234
2021-11-14Move some tests to more reasonable directoriesCaio-0/+20
2021-11-06Move some tests to more reasonable directoriesCaio-0/+40
2021-10-13Remove textual span from diagnostic stringOli Scherer-1/+1
2021-09-26Remove box syntax from most places in src/test outside of the issues direst31-3/+3
2021-09-15Move some tests to more reasonable directoriesCaio-0/+11
2021-07-30Use multispan suggestions more oftenEsteban Küber-2/+1
* Use more accurate span for `async move` suggestion * Use more accurate span for deref suggestion * Use `multipart_suggestion` more often
2021-07-19Various diagnostics clean ups/tweaksEsteban Küber-0/+3
* Always point at macros, including derive macros * Point at non-local items that introduce a trait requirement * On private associated item, point at definition
2021-05-21Check for use of mutable/extern statics in THIR unsafeckLeSeulArtichaut-6/+66
2021-05-09remove const_fn feature gateRalf Jung-12/+10
2021-04-17Move some tests to more reasonable directories - 6Caio-0/+16
2021-02-24Add suggestion for iterators in iteratorsKevin Per-0/+2
2021-01-13Update tests for extern block lintingMark Rousskov-3/+3
2020-09-29Bless testsDylan MacKenzie-12/+2
2020-09-02pretty: trim paths of unique symbolsDan Aloni-2/+2
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-06-20update testsChristian Poveda-7/+24
2020-05-04Suggest to add missing feature when using gated const featuresmibac138-0/+2
2020-04-17Add test for issue-24843Yuki Okushi-0/+9
2020-04-11rustc: Add a warning count upon completionRoccoDev-1/+1
2020-03-22Use more targetted span for error labelEsteban Küber-2/+2
2020-03-22Normalize wording of privacy access labelsEsteban Küber-3/+3
2020-03-12update testsMark Mansi-2/+2
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-2/+14
2019-11-18Surround types with backticks in type errorsEsteban Küber-1/+1
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-2/+2
2019-10-14Rollup merge of #65292 - JohnTitor:add-backticks, r=varkor,CentrilMazdak Farrokhzad-1/+1
Print lifetimes with backticks Fixes #65287 r? @varkor
2019-10-11Print lifetimes with backticksYuki Okushi-1/+1
2019-10-11Add long error explanation for E0697Yuki Okushi-0/+1
2019-09-30update testsGuillaume Gomez-1/+2
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2019-06-03Update tests for changes to cannot move errorsMatthew Jasper-2/+2
2019-04-22update tests for migrate mode by defaultMatthew Jasper-239/+62
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-7/+4
2019-03-11Update NLL testsVadim Petrochenkov-4/+4
2019-03-11Update testsVadim Petrochenkov-19/+19
2019-01-25Add a compile-fail test for `Drop` in constants in the presence of `Option`sOliver Scherer-2/+34
2019-01-09Stabilize `let` bindings and destructuring in constants and const fnOliver Scherer-2/+10
2018-12-25Remove licensesMark Rousskov-246/+56
2018-11-18resolve: Tweak some articles in ambiguity diagnosticsVadim Petrochenkov-2/+2