about summary refs log tree commit diff
path: root/src/test/ui/mut
AgeCommit message (Collapse)AuthorLines
2020-09-02pretty: trim paths of unique symbolsDan Aloni-3/+3
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-04-08Small tweaks to required bound spanEsteban Küber-1/+1
2020-03-26introduce `negative_impls` feature gate and documentNiko Matsakis-1/+1
They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
2020-02-25check_pat_ref: use pattern_causeMazdak Farrokhzad-0/+6
2019-11-21Auto merge of #66389 - estebank:type-err-labels, r=petrochenkovbors-11/+11
Specific labels when referring to "expected" and "found" types
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-10/+10
2019-11-18Update ui testsGuillaume Gomez-0/+2
2019-09-22On obligation errors point at the unfulfilled binding when possibleEsteban Küber-1/+1
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-5/+3
2019-04-22update tests for migrate mode by defaultMatthew Jasper-144/+21
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-8/+3
2019-03-17Updated UI test output to remove test annotations for revisionsMathias Blikstad-11/+11
2019-03-11Update NLL testsVadim Petrochenkov-2/+2
2019-03-11Update testsVadim Petrochenkov-6/+6
2019-01-06tests: Do not use `-Z parse-only`, continue compilation to test recoveryVadim Petrochenkov-3/+1
2018-12-25Remove licensesMark Rousskov-113/+23
2018-12-24make non_camel_case_types an early lintAndy Russell-12/+12
2018-10-05Rollup merge of #54787 - varkor:unused-mut-in-desugaring, r=nikomatsakisPietro Albini-0/+8
Only warn about unused `mut` in user-written code Fixes https://github.com/rust-lang/rust/issues/54586. r? @pnkfelix cc @blitzerr
2018-10-03Clearer later use messages for callsMatthew Jasper-1/+1
Give a special message when the later use is from a call. Use the span of the callee instead of the whole expression. For conflicting borrow messages say that the later use is of the first borrow.
2018-10-03Only warn about unused `mut` in user-written codevarkor-0/+8
2018-09-12use structured suggestion for "missing mut" labelAndy Russell-15/+17
Fixes #54133.
2018-08-19move tests to borrowck directory, remove feature(nll)Niko Matsakis-14/+8
now compare-mode can show us the differences
2018-08-15Updated the most glaring instances of weak tests w.r.t. NLL that came from ↵Felix S. Klock II-2/+20
#53196. See also the bulletpoint list on #53351.
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+489