about summary refs log tree commit diff
path: root/src/test/ui/transmute
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-576/+0
2022-11-01fix #103751: Fix capacity overflow issue during transmutability checkyukang-0/+53
2022-10-07Allow transmutes between the same types after erasing lifetimesOli Scherer-10/+25
2022-09-23Always print '_, even for erased lifetimes.Camille GILLOT-1/+1
2022-01-09Make message for &T -> &mut T transmute more accurate5225225-2/+2
2020-10-16stabilize union with 'ManuallyDrop' fields and 'impl Drop for Union'Ralf Jung-7/+4
2020-09-02pretty: trim paths of unique symbolsDan Aloni-6/+6
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-03-17Update tests for erasing regions in typeckMatthew Jasper-2/+1
2019-07-17normalize use of backticks in compiler messages for librustc/lintSamy Kacimi-1/+1
https://github.com/rust-lang/rust/issues/60532
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-03-11Update testsVadim Petrochenkov-9/+9
2018-12-30Fix variable string size problem in transmute testvarkor-3/+3
2018-12-28Clarify wording of E0512varkor-89/+89
2018-12-25Remove licensesMark Rousskov-103/+28
2018-08-14Normalize tests for i686 Windows.David Wood-17/+23
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+223
2018-03-14update testsGuillaume Gomez-4/+4
2018-02-26Update UI testsVadim Petrochenkov-19/+19
2018-02-25Update ui testsGuillaume Gomez-0/+4
2017-12-14Support regexes in custom normalization in UI testsVadim Petrochenkov-2/+2
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-23/+23
2017-07-11compiletest: Support custom normalization rules.kennytm-58/+35
2017-07-02report the total number of errors on compilation failureAriel Ben-Yehuda-3/+3
Prior to this PR, when we aborted because a "critical pass" failed, we displayed the number of errors from that critical pass. While that's the number of errors that caused compilation to abort in *that place*, that's not what people really want to know. Instead, always report the total number of errors, and don't bother to track the number of errors from the last pass that failed. This changes the compiler driver API to handle errors more smoothly, and therefore is a compiler-api-[breaking-change]. Fixes #42793.
2017-06-18Update UI tests to be platform independentMark Simulacrum-74/+107
2017-06-18Update transmute size lints.Mark Simulacrum-0/+345
Also moves a few transmute tests to UI tests to better test their output.