about summary refs log tree commit diff
path: root/src/test/ui/editions
AgeCommit message (Collapse)AuthorLines
2021-09-04Fix 2021 `dyn` suggestion that used code as labelNoah Lev-0/+21
The arguments to `span_suggestion` were in the wrong order, so the error looked like this: error[E0783]: trait objects without an explicit `dyn` are deprecated --> src/test/ui/editions/dyn-trait-sugg-2021.rs:10:5 | 10 | Foo::hi(123); | ^^^ help: <dyn Foo>: `use `dyn`` Now the error looks like this, as expected: error[E0783]: trait objects without an explicit `dyn` are deprecated --> src/test/ui/editions/dyn-trait-sugg-2021.rs:10:5 | 10 | Foo::hi(123); | ^^^ help: use `dyn`: `<dyn Foo>` This issue was only present in the 2021 error; the 2018 lint was correct.
2021-08-30Update test output for stable Rust 2021.Mara Bos-6/+6
2021-08-11Modify structured suggestion outputEsteban Küber-6/+6
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-08-04Remove trailing whitespace from error messagesFabian Wolff-2/+2
2021-06-25Address PR feedbackRyan Levick-2/+2
2021-06-25Change how edition based future compatibility warnings are handledRyan Levick-2/+2
2021-06-21Mark some edition tests as check-passAris Merchant-4/+4
2021-05-12Show macro name in 'this error originates in macro' messageAaron Hill-5/+5
When there are multiple macros in use, it can be difficult to tell which one was responsible for producing an error.
2021-03-07diagnostics: Differentiate between edition meanings of ::foo in resolve ↵Manish Goregaokar-1/+1
diagnostics (for bare `::foo`)
2021-01-18Improve unknown external crate errorRyan Levick-1/+1
2020-12-31Consistently call editions "Rust 20xx" in messages.Mara Bos-8/+8
2020-12-31Add edition 2021.Mara Bos-6/+6
2020-05-05Detect errors caused by `async` block in 2015 editionEsteban Küber-0/+71
2020-04-23Moving more build-pass tests to check-passVal Markovic-2/+2
One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277
2020-04-11rustc: Add a warning count upon completionRoccoDev-0/+5
2020-03-24expand: address review commentsMazdak Farrokhzad-28/+34
2020-03-24nix panictry! in ParserAnyMacro::makeMazdak Farrokhzad-14/+46
2020-03-10rustc_errors: Use ensure_source_file_source_present where necessary.Ana-Maria Mihalache-4/+4
2020-03-10--bless some testsMazdak Farrokhzad-10/+10
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-5/+5
2020-02-06rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.Eduard-Mihai Burtescu-5/+5
2020-01-24Normalise notes with the/isvarkor-2/+2
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-2/+2
2019-10-24Increase spacing for suggestions in diagnosticsEsteban Küber-0/+4
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
2019-09-28Upgrade async/await to "used" keywords.Eric Huss-18/+18
2019-07-17normalize use of backticks in compiler messages for librustc/lintSamy Kacimi-2/+2
https://github.com/rust-lang/rust/issues/60532
2019-07-15pprust: Use `print_mac_common` for delimited token groupsVadim Petrochenkov-10/+10
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-6/+6
2019-05-24Move async/await tests to test/ui/async-awaitvarkor-91/+0
2019-04-23Stabilize futures_apiTaylor Cramer-1/+1
2019-04-23Update ui testsvarkor-3/+3
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-2/+0
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-2/+1
2019-03-12resolve: Simplify import resolution for mixed 2015/2018 edition modeVadim Petrochenkov-57/+7
2019-03-11Update testsVadim Petrochenkov-31/+31
2019-02-27Rollup merge of #58678 - doctorn:refuse-async-fn-2015-edition, r=varkorMazdak Farrokhzad-0/+92
Deny `async fn` in 2015 edition This commit prevents code using `async fn` from being compiled in Rust 2015 edition. Compiling code of the form: ```rust async fn foo() {} ``` Will now result in the error: ``` error[E0670]: `async fn` is not permitted in the 2015 edition --> async.rs:1:1 | 1 | async fn foo() {} | ^^^^^ error: aborting due to error For more information about an error, try `rustc --explain E0670`. ``` This resolves #58652 and also resolves #53714. r? @varkor
2019-02-24Deny `async fn` in 2015 editionNathan Corbyn-0/+92
Fix style issues and update diagnostic messages Update src/librustc_passes/diagnostics.rs Co-Authored-By: doctorn <me@nathancorbyn.com> Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition
2019-01-17Deny the `overflowing_literals` lint for all editionsOliver Middleton-16/+0
2019-01-12Stabilize `uniform_paths`Vadim Petrochenkov-6/+2
2019-01-12resolve: Prohibit use of uniform paths in macros originating from 2015 editionVadim Petrochenkov-1/+1
...while still keeping ambiguity errors future-proofing for uniform paths. This corner case is not going to be stabilized for 1.32 and needs some more general experiments about retrofitting 2018 import rules to 2015 edition
2018-12-31Address review commentsEsteban Küber-6/+6
- Suggest raw ident escaping in all editions - Keep primary label in all cases
2018-12-31Suggest using raw identifiers in 2018 edition when using keywordsEsteban Küber-6/+30
2018-12-27Fix rebase and more CI failuresVadim Petrochenkov-4/+6
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-2/+16
Fix a number of uncovered deficiencies in diagnostics
2018-12-25Remove licensesMark Rousskov-193/+23
2018-11-27Auto merge of #55402 - estebank:macro-eof-2, r=nikomatsakisbors-14/+24
Point at end of macro arm when encountering EOF Fix #52866.
2018-11-27resolve: Suggest `crate::` for resolving ambiguities when appropriateVadim Petrochenkov-13/+15
More precise spans for ambiguities from macros
2018-11-27resolve: Fallback to extern prelude in 2015 imports used from global 2018 ↵Vadim Petrochenkov-15/+39
edition
2018-11-27resolve: Fallback to uniform paths in 2015 imports used from global 2018 editionVadim Petrochenkov-2/+88
2018-11-27resolve: Implement edition hygiene for imports and absolute pathsVadim Petrochenkov-0/+106
Use per-span hygiene in a few other places in resolve Prefer `rust_2015`/`rust_2018` helpers to comparing editions