about summary refs log tree commit diff
path: root/src/test/ui/resolve
AgeCommit message (Collapse)AuthorLines
2020-04-26Tweak some suggestions in `rustc_resolve`Esteban Küber-3/+15
2020-04-16ty: convert `ErrorHandled::Reported` to `ConstKind::Error`.Eduard-Mihai Burtescu-14/+3
2020-04-11rustc: Add a warning count upon completionRoccoDev-1/+1
2020-04-03def_collector, visit_fn: account for no bodyMazdak Farrokhzad-0/+85
2020-04-02tests: remove ignore directives from tests that mention core/alloc/std spans.Eduard-Mihai Burtescu-12/+8
2020-03-24Rollup merge of #70077 - Aaron1011:feature/new-def-path-ident, r=petrochenkovMazdak Farrokhzad-1/+4
Store idents for `DefPathData` into crate metadata Previously, we threw away the `Span` associated with a definition's identifier when we encoded crate metadata, causing us to lose location and hygiene information. We now store the identifier's `Span` in a side table, which gets encoded into the crate metadata. When we decode items from the metadata, we combine the name and span back into an `Ident`. This improves the output of several tests, which previously had messages suppressed due to dummy spans. This is a prerequisite for #68686, since throwing away a `Span` means that we lose hygiene information.
2020-03-24Rollup merge of #69981 - oli-obk:const_blocks, r=eddybMazdak Farrokhzad-2/+13
Evaluate repeat expression lengths as late as possible Fixes #68567 r? @varkor
2020-03-23Evaluate repeat expression lengths as late as possibleOliver Scherer-2/+13
2020-03-23Rollup merge of #69942 - estebank:sized-verbose-sugg, r=matthewjasperMazdak Farrokhzad-23/+34
Increase verbosity when suggesting subtle code changes Do not suggest changes that are actually quite small inline, to minimize the likelihood of confusion. Fix #69243.
2020-03-22Store idents for `DefPathData` into crate metadataAaron Hill-1/+4
Previously, we threw away the `Span` associated with a definition's identifier when we encoded crate metadata, causing us to lose location and hygiene information. We now store the identifier's `Span` in the crate metadata. When we decode items from the metadata, we combine the name and span back into an `Ident`. This improves the output of several tests, which previously had messages suppressed due to dummy spans. This is a prerequisite for #68686, since throwing away a `Span` means that we lose hygiene information.
2020-03-22Normalize wording of privacy access labelsEsteban Küber-11/+16
2020-03-22Increase verbosity when suggesting subtle code changesEsteban Küber-12/+18
2020-03-21Bless testsLeSeulArtichaut-62/+28
2020-03-14resolve: Fix regression in resolution of raw keywords in pathsVadim Petrochenkov-0/+14
2020-03-04resolve, inconsistent binding mode: tweak wording.Mazdak Farrokhzad-49/+50
2020-02-28Rollup merge of #69539 - Centril:fix-69401, r=petrochenkovMazdak Farrokhzad-0/+15
late resolve, visit_fn: bail early if there's no body. Fixes https://github.com/rust-lang/rust/issues/69401 which was injected by https://github.com/rust-lang/rust/commit/b2c6eeb713d4cf9b35b7dda6ff2b0274e7f24684 in https://github.com/rust-lang/rust/pull/68788. r? @petrochenkov
2020-02-28Rollup merge of #69452 - Centril:typeck-pat, r=estebankMazdak Farrokhzad-5/+22
typeck: use `Pattern` obligation cause more for better diagnostics r? @estebank
2020-02-28late resolve, visit_fn: bail early if there's no body.Mazdak Farrokhzad-0/+15
2020-02-26Rollup merge of #67637 - Mark-Simulacrum:primitive-mod, r=dtolnayDylan DPC-0/+5
Add primitive module to libcore This re-exports the primitive types from libcore at `core::primitive` to allow macro authors to have a reliable location to use them from. Fixes #44865
2020-02-25check_pat_path: use pattern_causeMazdak Farrokhzad-1/+3
2020-02-25improve or-pattern type consistency diagnosticsMazdak Farrokhzad-4/+19
2020-02-11On mismatched argument count point at argumentsEsteban Küber-3/+5
2020-02-06Add primitive module to libcore/stdMark Rousskov-0/+5
This re-exports the primitive types from libcore at `core::primitive` to allow macro authors to have a reliable location to use them from.
2020-02-02Wording changes to object unsafe trait errorsEsteban Küber-1/+1
Stemming from the thread at https://twitter.com/indygreg/status/1223279056398929920
2020-02-02Point at arguments or output when fn obligations come from them, or ident ↵Esteban Küber-2/+2
when they don't
2020-02-02Do not suggest things named underscoreYuki Okushi-0/+30
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-10/+70
2020-01-12Update `output-default.json` and rustdoc testvarkor-1/+1
2020-01-12Appease tidyvarkor-1/+2
2020-01-12Diagnostics should not end with a full stopvarkor-3/+3
2020-01-10Ignore platforms that can't point to stdEsteban Küber-8/+12
2020-01-10Use `def_span` to minimize definition span to first line when possibleEsteban Küber-10/+4
2020-01-10Point at the span for the definition of crate foreign ADTsEsteban Küber-2/+13
2020-01-03tweak wording of mismatched delimiter errorsAndy Russell-9/+9
2019-12-30refactor and fix this-expression-has-type noteMazdak Farrokhzad-0/+8
2019-12-11resolve: Always resolve visibilities on impl itemsVadim Petrochenkov-0/+34
2019-11-21Point at type in `let` assignment on type errorsEsteban Küber-12/+15
2019-11-18Surround types with backticks in type errorsEsteban Küber-4/+4
2019-11-18Remove E0308 note when primary label has all infoEsteban Küber-9/+0
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-7/+7
2019-11-08Rollup merge of #66007 - estebank:remove-here, r=CentrilMazdak Farrokhzad-1/+1
Remove "here" from "expected one of X here"
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-1/+1
2019-11-04Use check-pass in ui tests where appropriateTomasz Miąsko-1/+1
2019-10-31update ui testsGuillaume Gomez-0/+1
2019-10-30Update ui testsGuillaume Gomez-1/+1
2019-10-29Change E0741 into E0742Guillaume Gomez-2/+2
2019-10-29Update ui testsGuillaume Gomez-2/+3
2019-10-27Point at local similarly named element and tweak references to variantsEsteban Küber-27/+122
Point at the span for the definition of ADTs internal to the current crate. Look at the leading char of the ident to determine whether we're expecting a likely fn or any of a fn, a tuple struct or a tuple variant. Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+29
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-10-17Point at enclosing function without `self` receiverEsteban Küber-4/+14