about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2020-01-23Clean up E0207 explanationGuillaume Gomez-13/+17
2020-01-13Auto merge of #67850 - GuillaumeGomez:err-codes-checkup, r=Mark-Simulacrumbors-18/+29
Error codes checkup and rustdoc test fix This PR does a few things: * fix how rustdoc checks that an error code has been thrown (it only checked for "E0XXX" so if it appeared in the output because the file has it in its name or wherever, it passed the test, which was incorrect) * fix the failing code examples that weren't throwing the expected error code
2020-01-13Auto merge of #68174 - JohnTitor:rollup-ix4amrj, r=JohnTitorbors-19/+73
Rollup of 8 pull requests Successful merges: - #67313 (Document more use cases of dataflow) - #67959 (rustdoc: improve stability mark arrows) - #68097 (Specify units for test timeout environment variables) - #68135 (restore some rustc_parse visibilities for rustfmt) - #68145 (Expose `context::CheckLintNameResult`) - #68156 (Fix crate paths in comments) - #68157 (Clean up E0186 explanation) - #68161 (Fix system call docs for time::Instant) Failed merges: r? @ghost
2020-01-13Rollup merge of #68161 - ruuda:fix-instant-docs, r=rkruppeYuki Okushi-1/+1
Fix system call docs for time::Instant The link for UNIX was pointing to the Cloud ABI docs. It should have been pointing to the `clock_gettime` docs instead. A similar table is repeated in the docs for `SystemTime`, but there the UNIX entry was already correct. `clock_gettime(CLOCK_MONOTONIC)` is the current implementation: https://github.com/rust-lang/rust/blob/3ebcfa1451cfedc13a07e6353d8ade9742dfdc2a/src/libstd/sys/unix/time.rs#L274 https://github.com/rust-lang/rust/blob/3ebcfa1451cfedc13a07e6353d8ade9742dfdc2a/src/libstd/sys/unix/time.rs#L348-L352 r? @steveklabnik
2020-01-13Rollup merge of #68157 - GuillaumeGomez:clean-up-e0186, r=Dylan-DPCYuki Okushi-1/+17
Clean up E0186 explanation r? @Dylan-DPC
2020-01-13Rollup merge of #68156 - JohnTitor:fix-path-in-doc, r=Dylan-DPCYuki Okushi-3/+4
Fix crate paths in comments Tiny follow-up of #67806 and others r? @Centril
2020-01-13Rollup merge of #68145 - JohnTitor:pub-check-lint-name-result, r=CentrilYuki Okushi-1/+1
Expose `context::CheckLintNameResult` Clippy needs it r? @Centril
2020-01-13Rollup merge of #68135 - calebcartwright:rustc-parse-visibilities, r=CentrilYuki Okushi-8/+17
restore some rustc_parse visibilities for rustfmt In https://github.com/rust-lang/rust/pull/65495/commits/c189565edc5c9fc516170885b3a3061b936205fb some visibilities were reduced on the parse mod (which now resides in the rustc_parse crate) as part of some refactoring and splitting up of libsyntax. However, rustfmt needs access to a few of those items that are no longer visible. This restores the visibility on those items rustfmt depends on. https://github.com/rust-lang/rustfmt/issues/3903#issuecomment-563596269 https://github.com/rust-lang/rustfmt/issues/4009 cc @topecongiro
2020-01-13Rollup merge of #68097 - MikailBag:master, r=shepmasterYuki Okushi-0/+2
Specify units for test timeout environment variables I think it is not obvious (I got it from reading libtest sources), so it is worth mentioning in docs.
2020-01-13Rollup merge of #67959 - liigo:patch-13, r=GuillaumeGomezYuki Okushi-4/+8
rustdoc: improve stability mark arrows ### current ![old-stability-arrow](https://user-images.githubusercontent.com/346530/71863520-134d8b00-3138-11ea-86f9-a98068b3cff9.png) ### new ![new-stability-arrow](https://user-images.githubusercontent.com/346530/71863539-1b0d2f80-3138-11ea-843e-d79b9e5d9eec.png) ### new dark ![dark-stability-arrow](https://user-images.githubusercontent.com/346530/71863563-26f8f180-3138-11ea-9514-050e2c779f90.png)
2020-01-13Rollup merge of #67313 - ↵Yuki Okushi-1/+23
oli-obk:document_all_the_t̶h̶i̶n̶g̶s̶dataflow, r=ecstatic-morse Document more use cases of dataflow r? @ecstatic-morse
2020-01-13Auto merge of #67900 - nikic:prepare-llvm-10, r=nagisabors-991/+218
Prepare for LLVM 10 upgrade Split off from #67759, this just adds the necessary compatibility bits and updates codegen tests, without performing the actual LLVM upgrade. r? @alexcrichton
2020-01-12Fix system call docs for time::InstantRuud van Asseldonk-1/+1
The link for UNIX was pointing to the Cloud ABI docs. It should have been pointing to the clock_gettime docs instead. The table is repeated in the docs for SystemTime, but there the UNIX entry was already correct.
2020-01-12Clean up E0186 explanationGuillaume Gomez-1/+17
2020-01-12Fix error codes explanation' code examplesGuillaume Gomez-16/+28
2020-01-13Fix crate paths in commentsYuki Okushi-3/+4
2020-01-12Auto merge of #67831 - mati865:ci-images-upgrade, r=pietroalbinibors-2/+2
ci: bump ubuntu 19.04 images to 19.10 Ubuntu 19.04 goes EOL this month.
2020-01-12Auto merge of #67901 - matthewjasper:split-mir-build, r=nagisabors-525/+621
Split MIR building into its own crate This moves `rustc_mir::{build, hair, lints}` to `rustc_mir_build`. The new crate only has a `provide` function as it's public API. Based on #67898 cc @Centril @rust-lang/compiler r? @oli-obk
2020-01-12Split `rustc_mir::{build, hair, lints}` into their own crateMatthew Jasper-525/+621
2020-01-12Expose `context::CheckLintNameResult`Yuki Okushi-1/+1
Clippy needs it
2020-01-12Auto merge of #68142 - Centril:rollup-dl232e9, r=Centrilbors-1092/+1404
Rollup of 6 pull requests Successful merges: - #67494 (Constify more of alloc::Layout) - #67867 (Correctly check for opaque types in `assoc_ty_def`) - #67948 (Galloping search for binary_search_util) - #68045 (Move more of `rustc::lint` into `rustc_lint`) - #68089 (Unstabilize `Vec::remove_item`) - #68108 (Add suggestions when encountering chained comparisons) Failed merges: r? @ghost
2020-01-12Rollup merge of #68108 - varkor:chained-comparison-suggestions, r=CentrilMazdak Farrokhzad-49/+335
Add suggestions when encountering chained comparisons Ideally, we'd also prevent the type error, which is just extra noise, but that will require moving the error from the parser, and I think the suggestion makes things clear enough for now. Fixes https://github.com/rust-lang/rust/issues/65659.
2020-01-12Rollup merge of #68089 - lzutao:revert-remote_item, r=sfacklerMazdak Farrokhzad-1/+6
Unstabilize `Vec::remove_item` As concerned by @kornelski, @LukasKalbertodt, and @gnzlbg in #40062. Reverts #67727
2020-01-12Rollup merge of #68045 - Centril:liberate-lints, r=Mark-SimulacrumMazdak Farrokhzad-1017/+974
Move more of `rustc::lint` into `rustc_lint` Based on https://github.com/rust-lang/rust/pull/67806. Here we try to consolidate more of the linting infra into `rustc::lint`. Some high-level notes: - We now store an `Lrc<dyn Any + Send + Sync>` as opposed to `Lrc<LintStore>` in the `GlobalCtxt`. This enables us to avoid referring to the type, breaking a cyclic dependency, and so we can move things from `rustc::lint` to `rustc_lint`. - `in_derive_expansion` is, and needs to, be moved as a method on `Span`. - We reduce the number of ways on `tcx` to emit a lint so that the developer UX is more streamlined. - `LintLevelsBuilder` is moved to `rustc_lint::levels`, leaving behind `LintLevelMap/Set` in a purified form due to current constraints (hopefully fixable in the future after https://github.com/rust-lang/rust/pull/68133). - `struct_lint_level` is moved to `rustc::lint` due to current dependency constraints. - `rustc::lint::context` is moved to `rustc_lint::context`. - The visitors in `rustc::lint` are moved to `rustc_lint::passes`.
2020-01-12Rollup merge of #67948 - llogiq:gallop, r=Mark-SimulacrumMazdak Farrokhzad-20/+40
Galloping search for binary_search_util This is unlikely to improve perf much unless for synthetic benchmarks, but I figure it likely won't hurt either.
2020-01-12Rollup merge of #67867 - matthewjasper:opaque-assoc-lookup, r=oli-obkMazdak Farrokhzad-1/+40
Correctly check for opaque types in `assoc_ty_def` Closes #67856
2020-01-12Rollup merge of #67494 - lukaslueg:const_alloc, r=oli-obkMazdak Farrokhzad-4/+9
Constify more of alloc::Layout Making more methods of `alloc::Layout` const would allow us to compute alignment/size information for arbitrary (sized) types at compile-time, including placing the information in associated constants. While `mem::size_of` and `mem::align_of` are already const and `Layout` is solely based on those, there is no guarantee in the implementation that a const derived from these functions will be exactly the same as what `Layout` uses and is subsequently used in a call to `alloc::alloc`. Constifying `Layout` makes this possible. First contribution to core, excuse my ignorance.
2020-01-12Galloping search for binary_search_utilAndre Bogus-20/+40
2020-01-11Auto merge of #67458 - ↵bors-8/+61
pnkfelix:fix-66530-by-propagating-fatal-error-from-worker, r=matthewjasper When a codegen worker has a FatalError, propagate it instead of ICE'ing. Fix #66530
2020-01-11restore some rustc_parse visibilitiesCaleb Cartwright-8/+17
2020-01-11Constify alloc::LayoutLukas Lueg-4/+9
Tracking issue #67521, Layout::new in #66254
2020-01-11Auto merge of #67000 - spastorino:remove-promoted-from-place, r=oli-obkbors-1593/+1116
Promote references to constants instead of statics r? @oli-obk
2020-01-11Make codegen tests wordsize independentOliver Scherer-7/+6
2020-01-11Auto merge of #68126 - Centril:rollup-cz5u7xx, r=Centrilbors-407/+528
Rollup of 8 pull requests Successful merges: - #67756 (Collector tweaks) - #67889 (Compile some CGUs in parallel at the start of codegen) - #67930 (Rename Result::as_deref_ok to as_deref) - #68018 (feature_gate: Remove `GateStrength`) - #68070 (clean up E0185 explanation) - #68072 (Fix ICE #68058) - #68114 (Don't require `allow_internal_unstable` unless `staged_api` is enabled.) - #68120 (Ban `...X` pats, harden tests, and improve diagnostics) Failed merges: r? @ghost
2020-01-11Rollup merge of #68120 - Centril:ban-range-to-dotdotdot, r=oli-obkMazdak Farrokhzad-121/+260
Ban `...X` pats, harden tests, and improve diagnostics Follow up to https://github.com/rust-lang/rust/pull/67258#issuecomment-565656155 and https://github.com/rust-lang/rust/pull/67258#discussion_r357879932. r? @cramertj @oli-obk
2020-01-11Rollup merge of #68114 - ecstatic-morse:fix-feature-gating, r=CentrilMazdak Farrokhzad-41/+66
Don't require `allow_internal_unstable` unless `staged_api` is enabled. #63770 changed `qualify_min_const_fn` to require `allow_internal_unstable` for *all* crates that used an unstable feature, regardless of whether `staged_api` was enabled or the `fn` that used that feature was stably const. In practice, this meant that every crate in the ecosystem that wanted to use nightly features added `#![feature(const_fn)]`, which skips `qualify_min_const_fn` entirely. After this PR, crates that do not have `#![feature(staged_api)]` will only need to enable the feature they are interested in. For example, `#![feature(const_if_match)]` will be enough to enable `if` and `match` in constants. Crates with `staged_api` (e.g., `libstd`) require `#[allow_internal_unstable]` to be added to a function if it uses nightly features unless that function is also marked `#[rustc_const_unstable]`. This prevents proliferation of `#[allow_internal_unstable]` into functions that are not callable in a `const` context on stable. r? @oli-obk (author of #63770) cc @Centril
2020-01-11Rollup merge of #68072 - JohnTitor:fix-macro-ice, r=petrochenkovMazdak Farrokhzad-1/+20
Fix ICE #68058 Fixes #68058 r? @petrochenkov
2020-01-11Rollup merge of #68070 - GuillaumeGomez:clean-up-e0185, r=Dylan-DPCMazdak Farrokhzad-1/+17
clean up E0185 explanation r? @Dylan-DPC
2020-01-11Rollup merge of #68018 - petrochenkov:nosoft, r=CentrilMazdak Farrokhzad-74/+11
feature_gate: Remove `GateStrength` The "soft feature gating" from `feature_gate/check.rs` is unused, and even if it were used, hardcoded warning is not a good solution and [deny-by-default lint](https://github.com/rust-lang/rust/issues/64266) would be a better way to do this. cc https://github.com/rust-lang/rust/pull/67806#discussion_r363091701 r? @Centril
2020-01-11Rollup merge of #67930 - lzutao:result-as_deref, r=dtolnayMazdak Farrokhzad-121/+31
Rename Result::as_deref_ok to as_deref Addresses https://github.com/rust-lang/rust/issues/50264#issuecomment-533952247 r? @dtolnay
2020-01-11Rollup merge of #67889 - Zoxc:parallel-cgus, r=michaelwoeristerMazdak Farrokhzad-22/+89
Compile some CGUs in parallel at the start of codegen This brings the compilation time for `syntex_syntax` from 11.542s to 10.453s with 6 threads in non-incremental debug mode. Just compiling `n` CGUs in parallel at the beginning of codegen seems sufficient to get rid of the staircase effect, at least for `syntex_syntax`. Based on https://github.com/rust-lang/rust/pull/67777. r? @michaelwoerister cc @alexcrichton @Mark-Simulacrum
2020-01-11Rollup merge of #67756 - Zoxc:collector-tweaks, r=Mark-SimulacrumMazdak Farrokhzad-26/+34
Collector tweaks r? @Mark-Simulacrum
2020-01-11feature_gate: Remove `GateStrength`Vadim Petrochenkov-74/+11
2020-01-11Ban `...X` pats, harden tests, and improve diagnostics.Mazdak Farrokhzad-121/+260
Also fix a bug with the span passed in `mk_range`.
2020-01-11fix ui-fulldeps & tests falloutMazdak Farrokhzad-39/+39
2020-01-11pacify the parallel compilerMazdak Farrokhzad-3/+6
2020-01-11lints: move a commentMazdak Farrokhzad-25/+21
2020-01-11move rustc::lint::{context, passes} to rustc_lint.Mazdak Farrokhzad-513/+505
Also do some cleanup of the interface.
2020-01-11{rustc::lint -> rustc_lint}::internalMazdak Farrokhzad-4/+6
2020-01-11lints: promote levels.rs to lint.rs & extract passes.rsMazdak Farrokhzad-16/+21