about summary refs log tree commit diff
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-02Auto merge of #75060 - JohnTitor:rollup-aq8sfxf, r=JohnTitorbors-350/+642
Rollup of 10 pull requests Successful merges: - #74686 (BTreeMap: remove into_slices and its unsafe block) - #74762 (BTreeMap::drain_filter should not touch the root during iteration) - #74781 (Clean up E0733 explanation) - #74874 (BTreeMap: define forget_type only when relevant) - #74974 (Make tests faster in Miri) - #75010 (Update elasticlunr-rs and ammonia transitive deps) - #75041 (Replaced log with tracing crate) - #75044 (Clean up E0744 explanation) - #75054 (Rename rustc_middle::cstore::DepKind to CrateDepKind) - #75057 (Avoid dumping rustc invocations to stdout) Failed merges: - #74827 (Move bulk of BTreeMap::insert method down to new method on handle) r? @ghost
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-216/+140
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 #74974 - RalfJung:miri-tests, r=Mark-SimulacrumYuki Okushi-12/+18
Make tests faster in Miri Reduce some test iteration counts in Miri.
2020-08-03Rollup merge of #74874 - ssomers:btree_cleanup_8, r=Mark-SimulacrumYuki Okushi-8/+16
BTreeMap: define forget_type only when relevant Similar to `forget_node_type` for handles. No effect on generated code, apart maybe from the superfluous calls that might not have been optimized away. r? @Mark-Simulacrum
2020-08-03Rollup merge of #74781 - GuillaumeGomez:cleanup-e0733, r=jyn514Yuki Okushi-5/+9
Clean up E0733 explanation r? @Dylan-DPC
2020-08-03Rollup merge of #74762 - ssomers:btree_no_root_in_remove_kv_tracking, ↵Yuki Okushi-52/+405
r=Mark-Simulacrum BTreeMap::drain_filter should not touch the root during iteration Although Miri doesn't point it out, I believe there is undefined behaviour using `drain_filter` when draining the 11th-last element from a tree that was larger. When this happens, the last remaining child nodes are merged, the root becomes empty and is popped from the tree. That last step establishes a mutable reference to the node elected root and writes a pointer in `node::Root`, while iteration continues to visit the same node. This is mostly code from #74437, slightly adapted.
2020-08-03Rollup merge of #74686 - ssomers:btree_cleanup_3, r=Mark-SimulacrumYuki Okushi-10/+3
BTreeMap: remove into_slices and its unsafe block A small tweak to make BTreeMap code shorter and less unsafe. r? @Mark-Simulacrum
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/+21
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-02Auto merge of #74972 - second-state:wasi-right-fix, r=KodrAusbors-0/+1
Fix std::fs::File::metadata permission on WASI target Previously `std::fs::File::metadata` on wasm32-wasi would call `fd_filestat_get` to get metadata associated with fd, but that fd is opened without RIGHTS_FD_FILESTAT_GET right, so it will failed on correctly implemented WASI environment. This change instead to add the missing rights when opening an fd.
2020-08-02Replace from log to tracingbishtpawan-4/+4
2020-08-02Auto merge of #74899 - sajattack:libc_0.2.74_bump, r=jonas-schievinkbors-2/+2
bump libc version to 0.2.74
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/+187
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-216/+140
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/+187
This is preparation for PR #73084
2020-08-02Auto merge of #75033 - Manishearth:rollup-d8afil1, r=Manishearthbors-37/+63
Rollup of 5 pull requests Successful merges: - #74602 (Clarify the doc for MaybeUninit::zeroed on incorrect use) - #74720 (Clean up E0728 explanation) - #74992 (fix rustdoc generic param order) - #75015 (Add Vec::spare_capacity_mut) - #75022 (Use a slice pattern instead of rchunks_exact(_).next()) Failed merges: r? @ghost
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 #75015 - Amanieu:vec_spare, r=sfacklerManish Goregaokar-1/+42
Add Vec::spare_capacity_mut Returns the remaining spare capacity of the vector as a slice of `MaybeUninit<T>`. As suggested by @sfackler in https://github.com/rust-lang/rust/pull/70967#issuecomment-612659006. r? @sfackler
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-01Rollup merge of #74602 - poliorcetics:maybe-uninit-zeroed-doc-clarification, ↵Manish Goregaokar-2/+2
r=jyn514 Clarify the doc for MaybeUninit::zeroed on incorrect use Fixes #74343. @rustbot modify labels: C-enhancement, T-doc
2020-08-01Auto merge of #74605 - rust-lang:vec-leak, r=Amanieubors-6/+4
Stabilize Vec::leak as a method Closes https://github.com/rust-lang/rust/issues/62195 The signature is changed to a method rather than an associated function: ```diff -pub fn leak<'a>(vec: Vec<T>) -> &'a mut [T] +pub fn leak<'a>(self) -> &'a mut [T] ``` The reason for `Box::leak` not to be a method (`Deref` to an arbitrary `T` which might have its own, different `leak` method) does not apply.
2020-08-01BTreeMap::drain_filter no longer touches the root during iterationStein Somers-30/+73
2020-08-01Auto merge of #74726 - oli-obk:tracing, r=Mark-Simulacrumbors-89/+161
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-01Auto merge of #75016 - Manishearth:rollup-x553g7j, r=Manishearthbors-55/+73
Rollup of 6 pull requests Successful merges: - #74977 (Clean up E0741 error explanation) - #74981 (Some fixes for `plugin.md` in unstable-book) - #74983 (Replace a recursive algorithm with an iterative one and a stack.) - #74995 (Update the WASI libc build to LLVM 10.) - #74996 (submodules: update cargo from 974eb438d to 2d5c2381e) - #75007 (Clean up E0743 explanation) Failed merges: r? @ghost
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-01More benchmarks of BTreeMap mutationStein Somers-22/+332
2020-08-01Reword incorrect use of zeroed()Alexis Bourget-3/+2
2020-08-01Add Vec::spare_capacity_mutAmanieu d'Antras-1/+42
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