about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-08-03Fix async-std at the price of breaking half the test suiteJoshua Nelson-119/+29
- Don't mark impl trait as an error
2020-08-02Auto merge of #74826 - matklad:mbe-fragment, r=petrochenkovbors-339/+319
Introduce NonterminalKind for more type-safe mbe parsing It encapsulate the (part of) the interface between the parser and macro by example (macro_rules) parser. The second bit is somewhat more general `parse_ast_fragment`, which is the reason why we keep some `parse_xxx` functions as public.
2020-08-02Auto merge of #74963 - JohnTitor:ptn-ice, r=petrochenkovbors-56/+146
Fix ICEs with `@ ..` binding This reverts #74557 and introduces an alternative fix while ensuring that #74954 is not broken. The diagnostics are verbose though, it fixes three related issues. cc #74954, #74539, and #74702
2020-08-03Rollup merge of #75057 - Mark-Simulacrum:avoid-long-print, r=alexcrichtonYuki Okushi-1/+3
Avoid dumping rustc invocations to stdout These are quite long, usually, and in most cases not interesting. On smaller terminals they can take up more than a full page of output, hiding the error diagnostics emitted.
2020-08-03Rollup merge of #75054 - cjgillot:rename-depkind, r=petrochenkovYuki Okushi-35/+35
Rename rustc_middle::cstore::DepKind to CrateDepKind It is ambiguous with DepGraph's own DepKind.
2020-08-03Rollup merge of #75044 - GuillaumeGomez:cleanup-e0744, r=pickfireYuki Okushi-3/+5
Clean up E0744 explanation r? @Dylan-DPC
2020-08-03Rollup merge of #75041 - pawanbisht62:feature/replace-log-with-tracing, ↵Yuki Okushi-8/+8
r=oli-obk Replaced log with tracing crate Issue #74747
2020-08-03Rollup merge of #75010 - Aaron1011:feature/remove-old-deps, r=Mark-SimulacrumYuki Okushi-1/+0
Update elasticlunr-rs and ammonia transitive deps This removes all dependencies on pre-1.0 proc-macro ecosystem crates (syn, quote, and proc-macro2)
2020-08-03Rollup merge of #74781 - GuillaumeGomez:cleanup-e0733, r=jyn514Yuki Okushi-5/+9
Clean up E0733 explanation r? @Dylan-DPC
2020-08-02Avoid dumping rustc invocations to stdoutMark Rousskov-1/+3
These are quite long, usually, and in most cases not interesting. On smaller terminals they can take up more than a full page of output, hiding the error diagnostics emitted.
2020-08-02Rename rustc_middle::cstore::DepKind to DependencyKind.Camille GILLOT-35/+35
2020-08-02Auto merge of #74675 - pietroalbini:aarch64-ci-fallible, r=Mark-Simulacrumbors-1/+16
Add fallible AArch64 CI builder This adds the `aarch64-gnu` CI builder to the `auto-fallible` job, as a first step in the process of actually gating on it. r? @Mark-Simulacrum
2020-08-02Auto merge of #74210 - estebank:type-ascriptomatic, r=petrochenkovbors-181/+212
Deduplicate `::` -> `:` typo errors Deduplicate errors caused by the same type ascription typo, including ones suggested during parsing that would get reported again during resolve. Fix #70382.
2020-08-02Formatting: don't mix mod and useAleksey Kladov-6/+5
Seems to be a fallout from rustfmt transition
2020-08-02Use NonterminalKind for MetaVarDeclAleksey Kladov-134/+95
This is more type safe and allows us to remove a few dead branches
2020-08-02Introduce NonterminalKindAleksey Kladov-211/+231
It encapsulate the (part of) the interface between the parser and macro by example (macro_rules) parser. The second bit is somewhat more general `parse_ast_fragment`, which is the reason why we keep some `parse_xxx` functions as public.
2020-08-02Clean up E0744 explanationGuillaume Gomez-3/+5
2020-08-02Clean up E0733 explanationGuillaume Gomez-5/+9
2020-08-02Replace from log to tracingbishtpawan-4/+4
2020-08-02Replace from log to tracing in libsrustrustc_ast_lowering, ↵bishtpawan-8/+8
librustc_ast_passes, librustc_ast_pretty
2020-08-02Auto merge of #75004 - Aaron1011:move-probably-equal, r=petrochenkovbors-184/+186
Move 'probably equal' methods to librustc_parse This is preparation for PR #73084
2020-08-02Auto merge of #74785 - euclio:deprecation-kinds, r=petrochenkovbors-742/+748
report kind of deprecated item in message This is important for fields, which are incorrectly referred to as "items".
2020-08-01Update elasticlunr-rs and ammonia transitive depsAaron Hill-1/+0
This removes all dependencies on pre-1.0 proc-macro ecosystem crates (syn, quote, and proc-macro2)
2020-08-01Move 'probably equal' methods to librustc_parseAaron Hill-184/+186
This is preparation for PR #73084
2020-08-01Rollup merge of #75022 - cuviper:sliced-rchunk, r=lcnrManish Goregaokar-1/+1
Use a slice pattern instead of rchunks_exact(_).next() This is a minor cleanup, but trying a single-use `rchunks` iterator can be more directly matched with a slice pattern, `[.., a, b]`.
2020-08-01Rollup merge of #74992 - lcnr:fix-generic-param-order, r=GuillaumeGomezManish Goregaokar-30/+15
fix rustdoc generic param order fixes #61292 r? @varkor cc @GuillaumeGomez
2020-08-01Rollup merge of #74720 - GuillaumeGomez:cleanup-e0728, r=jyn514Manish Goregaokar-3/+3
Clean up E0728 explanation r? @Dylan-DPC
2020-08-01Auto merge of #74726 - oli-obk:tracing, r=Mark-Simulacrumbors-44/+63
Move from `log` to `tracing` The only visible change is that we now get timestamps in our logs: ``` Jul 24 18:41:01.065 TRACE rustc_mir::transform::const_prop: skipping replace of Rvalue::Use(const () because it is already a const Jul 24 18:41:01.065 TRACE rustc_mir::transform::const_prop: propagated into _2 Jul 24 18:41:01.065 TRACE rustc_mir::transform::const_prop: visit_constant: const () ``` This PR was explicitly designed to be as low-impact as possible. We can now move to using the name `tracing` insteads of `log` on a crate-by-crate basis and use any of the other tracing features where desirable. As far as I can tell this will allow tools to seamlessly keep working (since they are using `rustc_driver::init_log...`). This is the first half of step 1 of the accepted `tracing` MCP (https://github.com/rust-lang/compiler-team/issues/331)
2020-08-01Use a slice pattern instead of rchunks_exact(_).next()Josh Stone-1/+1
This is a minor cleanup, but trying a single-use `rchunks` iterator can be more directly matched with a slice pattern, `[.., a, b]`.
2020-08-01Rollup merge of #75007 - GuillaumeGomez:cleanup-e0743, r=pickfireManish Goregaokar-6/+5
Clean up E0743 explanation r? @Dylan-DPC
2020-08-01Rollup merge of #74996 - matthiaskrgr:submodule_upd, r=ehussManish Goregaokar-0/+0
submodules: update cargo from 974eb438d to 2d5c2381e Changes: ```` Use the same index location on nightly as beta relax deprecated diagnostic message check Don't print to raw stderr in test Emit the `test` field in cargo metadata ```` r? @ehuss Trying to get the fix to the registry-index-hash upstream soonish.
2020-08-01Rollup merge of #74995 - sunfishcode:update-llvm, r=alexcrichtonManish Goregaokar-3/+3
Update the WASI libc build to LLVM 10. Among other things, this brings in [the `__main_argc_argv`] patch, which simplifies the interaction between the compiler and WASI libc's startup code, which will help work on reactor support. [the `__main_argc_argv` patch]: https://github.com/llvm/llvm-project/commit/00072c08c75050ae2c835b7bb0e505475dbcd7b9 r? @alexcrichton
2020-08-01Rollup merge of #74983 - oli-obk:mir_opt_goto_chain, r=ecstatic-morseManish Goregaokar-26/+43
Replace a recursive algorithm with an iterative one and a stack. fixes #74931
2020-08-01Rollup merge of #74981 - giraffate:fix_sample_codes_in_unstable_book_plugin, ↵Manish Goregaokar-16/+14
r=GuilliameGomez Some fixes for `plugin.md` in unstable-book - sample codes not working I referred to https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/auxiliary/lint-plugin-test.rs and https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/lint-plugin.rs. - broken link https://github.com/rust-lang/rust/blob/master/src/librustc/lint/builtin.rs -> https://github.com/rust-lang/rust/blob/master/src/librustc_session/lint/builtin.rs
2020-08-01Rollup merge of #74977 - GuillaumeGomez:cleanup-e0741, r=pickfireManish Goregaokar-4/+8
Clean up E0741 error explanation r? @Dylan-DPC
2020-08-01Remove chrono feature from tracingOliver Scherer-1/+1
2020-08-01Clean up E0743 explanationGuillaume Gomez-6/+5
2020-08-01Auto merge of #74993 - sunfishcode:update-wasi-libc, r=alexcrichtonbors-2/+2
Update the bundled wasi-libc with libstd This just updates WASI libc, in preparation for WASI reactor support in a separate change. r? @alexcrichton
2020-08-01Auto merge of #74582 - Lezzz:rename-hair, r=nikomatsakisbors-121/+128
Rename HAIR to THIR (Typed HIR). r? @nikomatsakis Originally suggested by @eddyb
2020-08-01Replace a recursive algorithm with an iterative one and a stack.Oliver Scherer-26/+43
2020-08-01Auto merge of #74945 - dingxiangfei2009:promote-static-ref-deref, r=oli-obkbors-2/+74
[mir] Special treatment for dereferencing a borrow to a static definition Fix #70584. As suggested by @oli-obk in this [comment](https://github.com/rust-lang/rust/issues/70584#issuecomment-626009260), one can chase the definition of the local variable being de-referenced and check if it is a true static variable. If that is the case, `validate_place` will admit the promotion. This is my first time to contribute to `rustc`, and I have two questions. 1. A generalization to some extent is applied to decide if the promotion is possible in the static context. In case that there are more projection operations preceding the de-referencing, `validate_place` recursively decent into inner projection operations. I have put thoughts into its correctness but I am not totally sure about it. 2. I have a hard time to find a good place for the test case. This patch has to do with MIR, but this test case would look out of place compared to other tests in `src/test/ui/mir` or `src/test/ui/borrowck` because it does not generate errors while others do. It is tentatively placed in `src/test/ui/statics` for now. Thank you for any comments and suggestions!
2020-08-01Auto merge of #74717 - ↵bors-20/+108
davidtwco:issue-74636-polymorphized-closures-inherited-params, r=oli-obk mir: add `used_generic_parameters_needs_subst` Fixes #74636. This PR adds a `used_generic_parameters_needs_subst` helper function which checks whether a type needs substitution, but only for parameters that the `unused_generic_params` query considers used. This is used in the MIR interpreter to make the check for some pointer casts and for reflection intrinsics more precise. I've opened this as a draft PR because this might not be the approach we want to fix this issue and we have to decide what to do about the reflection case. r? @eddyb cc @lcnr @wesleywiser
2020-08-01submodules: update cargo from 974eb438d to 2d5c2381eMatthias Krüger-0/+0
Changes: ```` Use the same index location on nightly as beta relax deprecated diagnostic message check Don't print to raw stderr in test Emit the `test` field in cargo metadata ````
2020-07-31Update the WASI libc build to LLVM 10.Dan Gohman-3/+3
Among other things, this brings in [the `__main_argc_argv`] patch, which simplifies the interaction between the compiler and WASI libc's startup code, which will help work on reactor support. [the `__main_argc_argv` patch]: https://github.com/llvm/llvm-project/commit/00072c08c75050ae2c835b7bb0e505475dbcd7b9
2020-08-01Rollup merge of #74991 - JulianKnodt:74199, r=lcnrYuki Okushi-0/+178
Fix Const-Generic Cycle ICE #74199 This PR intends to fix the bug in Issue #74199 by following the suggestion provided of ignoring the error that causes the ICE. This does not fix the underlying cycle detection issue, but fixes the ICE. Also adds a test to check that it doesn't causes an ICE but returns a valid error for now. r? @lcnr Edit: Also it's funny how this PR number is an anagram of the issue number
2020-08-01Rollup merge of #74986 - matthiaskrgr:cmp_true, r=oli-obkYuki Okushi-1/+1
fix part of comparison that would always evaluate to "true", probably an oversight cc @jumbatm
2020-08-01Rollup merge of #74984 - RalfJung:miri-unwind-top, r=oli-obkYuki Okushi-0/+4
Miri: fix ICE when unwinding past topmost stack frame Fixes https://github.com/rust-lang/miri/issues/1389
2020-08-01Rollup merge of #74968 - lzutao:no-args, r=Mark-SimulacrumYuki Okushi-3/+5
Run all tests if have no specified tests The behaviour was changed in https://github.com/rust-lang/rust/pull/74905#discussion_r463259562 cc @alex if you could check it again, thank you.
2020-07-31Rename HAIR to THIR (Typed HIR).Valentin Lazureanu-121/+128
2020-07-31fix rustdoc generic param orderBastian Kauschke-30/+15