about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-10-08Rollup merge of #65098 - GuillaumeGomez:long-err-explanation-E0561, r=CentrilMazdak Farrokhzad-2/+3
Add long error explanation for E0561 Part of #61137
2019-10-08Rollup merge of #65040 - Centril:items-cleanup, r=estebankMazdak Farrokhzad-1/+14
syntax: more cleanups in item and function signature parsing Follow up to https://github.com/rust-lang/rust/pull/64910. Best read commit-by-commit. r? @estebank
2019-10-07Warn if include macro fails to include entire fileMark Rousskov-0/+26
2019-10-07Use structured suggestion for removal of `as_str()` callEsteban Küber-4/+4
2019-10-07Add a regression test for #57271varkor-0/+60
2019-10-07Add a regression test for #57399varkor-0/+30
2019-10-07Add regression test for #64792varkor-0/+20
2019-10-07Move stray issue tests into src/test/ui/issuesvarkor-0/+0
2019-10-07Add a regression test for issue 62187varkor-0/+32
2019-10-07Move const generic regression tests to their old foldervarkor-0/+0
2019-10-07Auto merge of #61430 - matthewjasper:drop-on-into-panic, r=oli-obkbors-192/+430
Make `into` schedule drop for the destination closes #47949
2019-10-07update ui testsGuillaume Gomez-7/+48
2019-10-07Prohibit #[track_caller] within trait impls as well as decls.Adam Perry-1/+1
2019-10-07Update expected error output.Adam Perry-2/+2
2019-10-07Expand E0738 to cover different cases.Adam Perry-4/+60
2019-10-07E0735 -> E0739Adam Perry-1/+1
Prevents number collision with another approved PR.
2019-10-07track_caller tests account for incomplete feature warning.Adam Perry-7/+54
2019-10-07track_caller error numbers and text.Adam Perry-8/+8
2019-10-07track_caller run-pass test, lint cleanup, PR review.Adam Perry-2/+10
2019-10-07[RFC 2091] Add #[track_caller] attribute.Ayose-0/+106
- The attribute is behind a feature gate. - Error if both #[naked] and #[track_caller] are applied to the same function. - Error if #[track_caller] is applied to a non-function item. - Error if ABI is not "rust" - Error if #[track_caller] is applied to a trait function. Error codes and descriptions are pending.
2019-10-07Auto merge of #65178 - Centril:rollup-ep1zztj, r=Centrilbors-1/+126
Rollup of 4 pull requests Successful merges: - #63948 (Add feature gate for raw_dylib.) - #65137 (remove event that causes panics in measureme tools) - #65164 (Add long error explanation for E0566) - #65173 (Update reference) Failed merges: r? @ghost
2019-10-07Update ui testsGuillaume Gomez-2/+3
2019-10-07Rollup merge of #65164 - GuillaumeGomez:long-err-explanation-E0566, r=estebankMazdak Farrokhzad-1/+3
Add long error explanation for E0566 Part of #61137.
2019-10-07Update src/test/ui/nll/issue-63154-normalize.rs Felix S Klock II-1/+1
review feedback Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-10-07Test diagnostic output of type mismatches for types that have constben-0/+48
generics arguments.
2019-10-07Auto merge of #64739 - guanqun:remove-as-str, r=estebankbors-0/+48
Remove as_str if the type is already &str Fix https://github.com/rust-lang/rust/issues/62642 r? @estebank do you think the suggestion tip is good enough?
2019-10-07Add more tests, fix span issue, improve diagnostics.Charles Lew-0/+86
2019-10-07Address review comments.Charles Lew-13/+13
2019-10-07Add feature gate for raw_dylib.Charles Lew-0/+37
2019-10-07syntax: unify and simplify fn signature parsing.Mazdak Farrokhzad-1/+14
2019-10-07Auto merge of #64906 - Aaron1011:feature/extern-const-fn, r=Centrilbors-0/+251
Add support for `const unsafe? extern fn` This works just as you might expect - an `const extern fn` is a `const fn` that is callable from foreign code. Currently, panicking is not allowed in `const`s. When https://github.com/rust-lang/rfcs/pull/2345 (https://github.com/rust-lang/rust/issues/51999) is stabilized, then panicking in an `const extern fn` will produce a compile-time error when invoked at compile time, and an abort when invoked at runtime. Since this is extending the language (we're allowing the `const` keyword in a new context), I believe that this will need an FCP. However, it's a very minor change, so I didn't think that filing an RFC was necessary. This will allow libc (and other FFI crates) to make many functions `const`, without having to give up on making them `extern` as well. Tracking issue: https://github.com/rust-lang/rust/issues/64926.
2019-10-06Auto merge of #65169 - tmandry:rollup-qxjj8xp, r=tmandrybors-0/+23
Rollup of 5 pull requests Successful merges: - #65095 (Sort error codes in librustc_passes) - #65101 (Upgrade librustc_macros dependencies) - #65142 (Ensure that associated `async fn`s have unique fresh param names) - #65155 (Use shorthand initialization in rustdoc) - #65158 (Remove dead module) Failed merges: r? @ghost
2019-10-06Update ui testsGuillaume Gomez-1/+3
2019-10-06Rollup merge of #65142 - matthewjasper:unshadow-anon-lifetimes, r=petrochenkovTyler Mandry-0/+23
Ensure that associated `async fn`s have unique fresh param names Closes #64630
2019-10-06Auto merge of #64564 - jonas-schievink:cowardly-default, r=nikomatsakisbors-3/+144
Deny specializing items not in the parent impl Part of https://github.com/rust-lang/rust/issues/29661 (https://github.com/rust-lang/rfcs/pull/2532). At least sort of? This was discussed in https://github.com/rust-lang/rust/pull/61812#discussion_r300504114 and is needed for that PR to make progress (fixing an unsoundness). One annoyance with doing this is that it sometimes requires users to copy-paste a provided trait method into an impl just to mark it `default` (ie. there is no syntax to forward this impl method to the provided trait method). cc @Centril and @arielb1
2019-10-06add testcase for generator move suggestioncsmoe-0/+31
2019-10-06Suggest dereferencing boolean reference when used in 'if' or 'while'wangxiangqing-40/+2
Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
2019-10-06Suggest dereferencing boolean reference when used in 'if' or 'while'wangxiangqing-12/+80
Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
2019-10-06Auto merge of #65043 - Aaron1011:fix/reexport-determinism, r=petrochenkovbors-14/+14
Make re-export collection deterministic Fixes https://github.com/rust-lang/rust/issues/65036 Previously, we were using an `FxHashMap` to collect module re-exports. However, re-exports end up getting serialized into crate metadata, which means that metadata generation was non-deterministic. This resulted in spurious error messages changes (e.g. PR #64906) due to pretty-printing implicitly depending on the order of re-exports when computing the proper path to show to the user. See #65042 for a long-term strategy to detect this kind of issue
2019-10-06Fix const arguments not displaying in types mismatch diagnostic.ben-6/+6
2019-10-05Rollup merge of #65151 - tmandry:revert-emscripten-upgrade, r=tmandryTyler Mandry-177/+177
Revert #63649 - "Upgrade Emscripten targets to use upstream LLVM backend" This change caused the runtime of the linux-asmjs builder to nearly double from 2+ hours to about 4 hours, which happens to be the bors timeout. (It made it in barely under 4 hours when it was merged.) This is causing timeouts on all new changes. This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-05Rollup merge of #65130 - davidtwco:rfc-2008-improper-ctypes, r=petrochenkovTyler Mandry-0/+148
lint: extern non-exhaustive types are improper This PR makes the `improper_ctype` lint trigger for non-exhaustive types when those types aren't defined in the current crate, as per [this comment](https://github.com/rust-lang/rust/issues/44109#issuecomment-537583344). cc @Centril
2019-10-05Rollup merge of #65123 - Centril:mac-invoc-in-mut-pat, r=estebankTyler Mandry-0/+71
Account for macro invocation in `let mut $pat` diagnostic. Fixes https://github.com/rust-lang/rust/issues/65122. r? @estebank
2019-10-05Rollup merge of #65066 - ↵Tyler Mandry-11/+22
wesleywiser:fix_const_prop_ice_on_polymorphic_promoted_mir, r=oli-obk [const-prop] Fix ICE when trying to eval polymorphic promoted MIR Fixes #64908 r? @oli-obk cc @nikomatsakis @pnkfelix
2019-10-05Rollup merge of #65011 - estebank:ice-o-matic, r=zackmdavisTyler Mandry-0/+34
Do not ICE when dereferencing non-Copy raw pointer CC #52262. Confirmed to remove the unnecessary ICE, but without a repro case.
2019-10-05Rollup merge of #64909 - estebank:turbofish-reloaded, r=CentrilTyler Mandry-31/+55
When encountering chained operators use heuristics to recover from bad turbofish
2019-10-05Rollup merge of #64708 - SimonSapin:option-deref, r=CentrilTyler Mandry-6/+2
Stabilize `Option::as_deref` and `Option::as_deref_mut` The tracking issue https://github.com/rust-lang/rust/issues/50264 still has unresolved question for the corresponding `Result` methods.
2019-10-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-177/+177
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-05Account for derefs when suggesting assoc functionEsteban Küber-1/+33
2019-10-05When suggesting assoc function with type params, include turbofishEsteban Küber-0/+33