about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-07-09Rollup merge of #62526 - ↵Mazdak Farrokhzad-680/+680
fakenine:normalize_use_of_backticks_compiler_messages_p4, r=Centril normalize use of backticks in compiler messages for libsyntax/feature_gate.rs https://github.com/rust-lang/rust/issues/60532
2019-07-09Rollup merge of #62520 - pnkfelix:add-test-for-42574, r=alexcrichtonMazdak Farrokhzad-0/+39
Regression test for issue 42574. Cc #42574. I'm not going to say this *closes* that issue yet, for two reasons: 1. I am still confused about some aspects of the behavior we are observing that bug 2. The "fix" to the diagnostic relies on full NLL (`#![feature(nll)]`); migration mode still has a subpar diagnostic.
2019-07-09Rollup merge of #62450 - nagisa:reclimit, r=pnkfelixMazdak Farrokhzad-28/+388
Raise the default recursion limit to 128 The previous limit of 64 is being (just) barely hit by genuine code out there, which is causing issues like https://github.com/rust-lang/rust/issues/62059 to rear their end. Ideally, we wouldn’t have such arbitrary limits at all, but while we do, it makes a lot of sense to just raise this limit whenever genuine use-cases end up hitting it. r? @pnkfelix Fixes https://github.com/rust-lang/rust/issues/62059
2019-07-09Rollup merge of #62417 - alexreg:fix-self-in-type-alias, r=pnkfelixMazdak Farrokhzad-3/+50
Fix ICEs when `Self` is used in type aliases I think it is right just to disallow this at resolution stage rather than let typeck produce a cyclic error. This is in line with previous behaviour. There was probably no need at all for the change that introduced this bug in #57428, so I've simply reversed it. Fixes #62263, #62364, #62305. r? @eddyb
2019-07-09Auto merge of #62233 - matthewjasper:exit-arm-scopes, r=pnkfelixbors-0/+21
Exit arm scopes Due to a bug in the HIR CFG construction, borrows for arm scopes were incorrectly leaking into other arms. This PR also includes some drive-by improvements to `-Zunpretty=hir,identified` that would have been helpful while investigating this. Closes #62107
2019-07-09normalize use of backticks in compiler messages for libsyntax/feature_gateSamy Kacimi-680/+680
https://github.com/rust-lang/rust/issues/60532
2019-07-09Regression test for issue 42574.Felix S. Klock II-0/+39
2019-07-09Rollup merge of #62090 - ↵Mazdak Farrokhzad-0/+127
davidtwco:ice-async-await-out-of-range-substitution, r=nikomatsakis typeck: merge opaque type inference logic Fixes #55872. See [relevant Zulip topic](https://rust-lang.zulipchat.com/#narrow/stream/187312-wg-async-foundations/topic/type.20parameter.20out.20of.20range.20.2355872). r? @nikomatsakis
2019-07-08Rollup merge of #62478 - ↵Mazdak Farrokhzad-3/+3
fakenine:normalize_use_of_backticks_compiler_messages_p3, r=Centril normalize use of backticks for compiler messages in librustc_codegen https://github.com/rust-lang/rust/issues/60532
2019-07-08Rollup merge of #62472 - ↵Mazdak Farrokhzad-7/+7
fakenine:normalize_use_of_backticks_compiler_messages_p2, r=Centril Normalize use of backticks in compiler messages p2 normalize use of backticks in compiler messages for librustc_typecheck https://github.com/rust-lang/rust/issues/60532
2019-07-08normalize use of backticks for compiler messages in librustc_codegenSamy Kacimi-3/+3
https://github.com/rust-lang/rust/issues/60532
2019-07-07Auto merge of #62435 - scottmcm:constrained-array-impls, r=centrilbors-8/+158
Use const generics for array impls [part 1] Part 1 of #61415, following the plan in https://github.com/rust-lang/rust/issues/61415#issuecomment-497922482 Found a way that works 🙃
2019-07-07Use const generics for array impls, restricted to 0..=32Scott McMurray-8/+158
- uses a never-stable core::array::LengthAtMost32 to bound the impls - includes a custom error message to avoid mentioning LengthAtMost32 too often - doesn't use macros for the slice implementations to avoid #62433
2019-07-07normalize use of backticks in compiler messages for librustc_typecheckSamy Kacimi-7/+7
https://github.com/rust-lang/rust/issues/60532
2019-07-07Rollup merge of #62213 - QuietMisdreavus:cfg-doctest, r=GuillaumeGomezMazdak Farrokhzad-4/+39
rustdoc: set cfg(doctest) when collecting doctests Note: This PR builds on top of https://github.com/rust-lang/rust/pull/61199; only the last commit is specific to this PR. As discussed in https://github.com/rust-lang/rust/pull/61199, we want the ability to isolate items to only when rustdoc is collecting doctests, but we can't use `cfg(test)` because of libcore's `#![cfg(not(test))]`. This PR proposes a new cfg flag, `cfg(doctest)`, specific to this situation, rather than reusing an existing flag. I've isolated it behind a feature gate so that we can contain the effects to nightly only. (A stable workaround that can be used in lieu of `#[cfg(doctest)]` is `#[cfg(rustdoc)] #[doc(hidden)]`, at least once https://github.com/rust-lang/rust/pull/61351 lands.) Tracking issue: https://github.com/rust-lang/rust/issues/62210
2019-07-07Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasperMazdak Farrokhzad-26/+129
Support stability and deprecation checking for all macros RELNOTES: Deprecation attributes on macros now have effect. Fixes https://github.com/rust-lang/rust/issues/34079 Fixes https://github.com/rust-lang/rust/issues/49912 Unblocks https://github.com/rust-lang/rust/pull/62086 Unblocks https://github.com/rust-lang/rust/pull/61000
2019-07-07Rollup merge of #61883 - zackmdavis:non_ascii_idents_lint, r=ManishearthMazdak Farrokhzad-0/+43
`non_ascii_idents` lint (part of RFC 2457) RFC 2457 [declares](https://github.com/rust-lang/rfcs/blob/121bbeff500c3274cea22c7e0ca176274d592646/text/2457-non-ascii-idents.md): "A `non_ascii_idents` lint is added to the compiler. This lint is allow by default." (Part of #55467.) r? @Manishearth
2019-07-07Auto merge of #59800 - Zoxc:less-dylibs, r=alexcrichtonbors-0/+16
rustc: Remove `dylib` crate type from most rustc crates Revival of https://github.com/rust-lang/rust/pull/56987 cc @alexcrichton r? @michaelwoerister
2019-07-07Address review comments + Fix rebaseVadim Petrochenkov-2/+14
2019-07-07syntax: Migrate built-in macros to the regular stability checkingVadim Petrochenkov-19/+24
2019-07-07Support deprecation checking for macrosVadim Petrochenkov-3/+81
2019-07-07resolve: Use standard stability diagnostics for macrosVadim Petrochenkov-4/+4
2019-07-07resolve: Check stability for local macros as wellVadim Petrochenkov-2/+10
2019-07-07Collect library features from non-exported macrosVadim Petrochenkov-1/+1
2019-07-07Rollup merge of #62455 - zackmdavis:name_trait_for_ambiguous_assoc_item, ↵Mazdak Farrokhzad-1/+1
r=petrochenkov name the trait in ambiguous-associated-items fully qualified suggestion We have the trait at this point, so we can name it in the error message, rather than using "Trait" as a (potentially confusing) placeholder. Thanks to Yuki "@JohnTitor" Okushi for pointing out where to look (in the same file) for a closely related issue for ambiguous associated types (as opposed to items; that was #59225, except that one won't be quite as easy to resolve, because we actually don't have the trait `DefId` at that point). r? @petrochenkov
2019-07-06force single-threaded text executionQuietMisdreavus-2/+2
2019-07-06rustdoc: set cfg(doctest) when collecting doctestsQuietMisdreavus-3/+38
2019-07-07Link compiler plugins to rustc_driverJohn Kåre Alsaker-0/+14
2019-07-07rustc: Remove `dylib` crate type from most rustc cratesAlex Crichton-0/+2
Now that procedural macros no longer link transitively to libsyntax, this shouldn't be needed any more! This commit is an experiment in removing all dynamic libraries from rustc except for librustc_driver itself. Let's see how far we can get with that!
2019-07-06in which the `non_ascii_idents` lint appears (RFC 2457)Zack M. Davis-0/+43
RFC 2457 declares: "A `non_ascii_idents` lint is added to the compiler. This lint is allow by default."
2019-07-06name the trait in ambiguous-associated-items fully qualified suggestionZack M. Davis-1/+1
We have the trait at this point, so we can name it in the error message, rather than using "Trait" as a (potentially confusing) placeholder. Thanks to Yuki "@JohnTitor" Okushi for pointing out where to look (in the same file) for a closely related issue for ambiguous associated types (as opposed to items; that was #59225, except that one won't be quite as easy to resolve, because we actually don't have the trait `DefId` at that point).
2019-07-07Raise the default recursion limit to 128Simonas Kazlauskas-28/+388
2019-07-06Exit arm scopes correctly in the HIR CFGMatthew Jasper-0/+21
When a match evaluates to false we jump to the next arm, when we do so we need to make sure that we exit the scope for that arm.
2019-07-06Rollup merge of #62436 - ↵Mazdak Farrokhzad-114/+114
fakenine:normalize_use_of_backticks_compiler_messages_1, r=Centril normalize use of backticks/lowercase in compiler messages for librustc_mir normalize use of backticks/lowercase in compiler messages for librustc_mir https://github.com/rust-lang/rust/issues/60532 r? @alexreg
2019-07-06normalize use of backticks/lowercase in compiler messages for librustc_mirSamy Kacimi-114/+114
https://github.com/rust-lang/rust/issues/60532 r? @alexreg
2019-07-06resolve: Reserve cfg/cfg_attr/derive only in attribute sub-namespaceVadim Petrochenkov-6/+6
2019-07-06Blessed tests.Alexander Regueiro-0/+27
2019-07-06Added tests for issues.Alexander Regueiro-3/+23
2019-07-06`#[rustc_transparent_macro]` -> `#[rustc_macro_transparency = ...]`Vadim Petrochenkov-16/+68
2019-07-06Auto merge of #61988 - Centril:there-is-only-loop, r=matthewjasperbors-117/+230
[let_chains, 3/6] And then there was only Loop Here we remove `hir::ExprKind::While`. Instead, we desugar: `'label: while $cond $body` into: ```rust 'label: loop { match DropTemps($cond) { true => $body, _ => break, } } ``` Per https://github.com/rust-lang/rust/issues/53667#issuecomment-471583239. This is a follow up to https://github.com/rust-lang/rust/pull/59288 which did the same for `if` expressions. r? @matthewjasper
2019-07-06--bless --compare-mode=nllMazdak Farrokhzad-17/+17
2019-07-06Bless mir-opt/while-storage.rs.Mazdak Farrokhzad-24/+21
2019-07-06while_{let_}loops/change_{break,continue}: typeck_tables_of clean.Mazdak Farrokhzad-4/+4
2019-07-06Make WhileTrue into an EarlyLintPass lint.Mazdak Farrokhzad-28/+97
2019-07-06Make sure while-exprs require 'cond: bool' exactly.Mazdak Farrokhzad-1/+43
2019-07-06Adjust incremental test while_loops.rsMazdak Farrokhzad-2/+2
2019-07-06while desugars to loop so 'a: while break 'a {} in ctfe doesn't work yet.Mazdak Farrokhzad-3/+11
2019-07-06Enforce 'cond: bool' in while-expr + improve reachability diags.Mazdak Farrokhzad-23/+19
2019-07-06min_const_fn: change error message due to changed desugaring.Mazdak Farrokhzad-18/+19
2019-07-06Rollup merge of #62377 - wesleywiser:fix_62375, r=alexcrichtonMazdak Farrokhzad-0/+22
Add test for ICE #62375 Fixes #62375