]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoClean up comment
Oliver Scherer [Thu, 9 Jan 2020 16:14:54 +0000 (17:14 +0100)]
Clean up comment

4 years agoElaborate on the details in some comments
Oliver Scherer [Wed, 8 Jan 2020 09:16:47 +0000 (10:16 +0100)]
Elaborate on the details in some comments

4 years agoElaborate on comments
Oliver Scherer [Wed, 25 Dec 2019 23:30:02 +0000 (00:30 +0100)]
Elaborate on comments

4 years agoPromoteds can contain raw pointers, but these must still only point to immutable...
Oliver Scherer [Wed, 25 Dec 2019 12:58:02 +0000 (13:58 +0100)]
Promoteds can contain raw pointers, but these must still only point to immutable allocations

4 years agoAuto merge of #68221 - ehuss:update-cargo-rls, r=alexcrichton
bors [Wed, 15 Jan 2020 09:34:49 +0000 (09:34 +0000)]
Auto merge of #68221 - ehuss:update-cargo-rls, r=alexcrichton

Update cargo rls

## cargo

12 commits in 6e1ca924a67dd1ac89c33f294ef26b5c43b89168..ad3dbe10e1e654fb1f032a5dd9481d7cbaa00d65
2020-01-06 19:11:37 +0000 to 2020-01-13 21:37:15 +0000
- Add named config profiles. (rust-lang/cargo#7750)
- Make cargo-rustc crate-type-aware (rust-lang/cargo#7755)
- Rename `Kind` (rust-lang/cargo#7791)
- Update bash completion (rust-lang/cargo#7789)
- Add another curl spurious network error (rust-lang/cargo#7788)
- Some small tweaks around error in configuration (rust-lang/cargo#7783)
- Fix tests with `url` crate update (rust-lang/cargo#7787)
- Fix .gitignore of Cargo.lock in a subdirectory. (rust-lang/cargo#7779)
- Bump crates-io (rust-lang/cargo#7778)
- Migrate from the `failure` crate to `anyhow` (rust-lang/cargo#7776)
- Fix several needless_borrow clippy lints. (rust-lang/cargo#7771)
- Fix some links (rust-lang/cargo#7770)

## rls

2 commits in 7c0489c5ff4f5c594e65a3b22efd9ce373deab9b..b27e1173969639448cd2e486b1c5f0fcb1b3b17c
2020-01-04 20:15:37 +0100 to 2020-01-13 11:40:20 +0100
- Update Cargo (rust-lang-nursery/rls#1613)
- Rustup to rust-lang/rust#68024 (rust-lang-nursery/rls#1612)

4 years agoAdd tests
Oliver Scherer [Wed, 15 Jan 2020 09:30:26 +0000 (10:30 +0100)]
Add tests

4 years agowrap expr id into GeneratorInteriorTypeCause
csmoe [Wed, 15 Jan 2020 07:13:51 +0000 (15:13 +0800)]
wrap expr id into GeneratorInteriorTypeCause

4 years agoUpdate E0170.md
Dylan DPC [Wed, 15 Jan 2020 06:22:21 +0000 (11:52 +0530)]
Update E0170.md

4 years agoAuto merge of #66329 - ktrianta:mir-opt-unreachable-propagation, r=oli-obk
bors [Wed, 15 Jan 2020 05:01:10 +0000 (05:01 +0000)]
Auto merge of #66329 - ktrianta:mir-opt-unreachable-propagation, r=oli-obk

Add unreachable propagation mir optimization pass

@oli-obk suggested we create a MIR pass that optimizes away basic blocks that lead only to basic blocks with terminator kind **unreachable**. This is a first take on this, which we started with @gilescope at RustFest Impl Days.

The test currently fails when the compiled program runs (undefined behaviour). Is there a way to avoid running the compiled program?

4 years agoAuto merge of #68118 - skinny121:eager_lit_eval, r=varkor
bors [Wed, 15 Jan 2020 00:56:53 +0000 (00:56 +0000)]
Auto merge of #68118 - skinny121:eager_lit_eval, r=varkor

perf: Eagerly convert literals to consts

Previousely even literal constants were being converted to an `Unevaluted` constant for evaluation later. This seems unecessary as no more information is needed to be able to convert the literal to a mir constant.

Hopefully this will also minimise the performance impact of #67717, as far less constant evaluations are needed.

4 years agoAccount for `Path`s on `is_suggestable_infer_ty`
Esteban Küber [Wed, 15 Jan 2020 00:18:21 +0000 (16:18 -0800)]
Account for `Path`s on `is_suggestable_infer_ty`

Fix #68162.

4 years agoReplace old tables with new unicode data
Mark Rousskov [Mon, 13 Jan 2020 21:59:33 +0000 (16:59 -0500)]
Replace old tables with new unicode data

4 years agoAdd support code for new unicode_data module
Mark Rousskov [Mon, 13 Jan 2020 21:58:50 +0000 (16:58 -0500)]
Add support code for new unicode_data module

4 years agoAdd unicode table generator
Mark Rousskov [Mon, 13 Jan 2020 21:40:19 +0000 (16:40 -0500)]
Add unicode table generator

4 years agoAvoid calling tcx.hir().get() on CRATE_HIR_ID
Aaron Hill [Tue, 14 Jan 2020 19:26:35 +0000 (14:26 -0500)]
Avoid calling tcx.hir().get() on CRATE_HIR_ID

This was causing an ICE when enabling trace logging for an unrelated
module, since the arguments to `trace!` ended up getting evaluated

4 years agoUpdate to a version of compiler_builtins with changes for fixes remainder for aarch64...
Daniel Frampton [Tue, 14 Jan 2020 21:32:26 +0000 (13:32 -0800)]
Update to a version of compiler_builtins with changes for fixes remainder for aarch64 windows

4 years agoBetter support for cross compilation on Windows.
Daniel Frampton [Fri, 10 Jan 2020 17:11:32 +0000 (09:11 -0800)]
Better support for cross compilation on Windows.

4 years agoUpdate to a version of cmake with windows arm64 support
Daniel Frampton [Tue, 14 Jan 2020 19:56:51 +0000 (11:56 -0800)]
Update to a version of cmake with windows arm64 support

4 years agoUpdate iovec to a version with no winapi dependency
Daniel Frampton [Tue, 14 Jan 2020 19:52:46 +0000 (11:52 -0800)]
Update iovec to a version with no winapi dependency

4 years agoUpdate libssh2-sys to a version that can build for aarch64-pc-windows-msvc
Daniel Frampton [Tue, 14 Jan 2020 19:26:03 +0000 (11:26 -0800)]
Update libssh2-sys to a version that can build for aarch64-pc-windows-msvc

4 years agoUpdate the wasi-libc bundled with libstd
Alex Crichton [Tue, 14 Jan 2020 17:59:46 +0000 (09:59 -0800)]
Update the wasi-libc bundled with libstd

4 years agoFix normalizing 32bit symbol hash.
Ben Lewis [Tue, 14 Jan 2020 17:59:26 +0000 (06:59 +1300)]
Fix normalizing 32bit symbol hash.

4 years agoUpdate rustfix in compiletest.
Eric Huss [Tue, 14 Jan 2020 17:50:55 +0000 (09:50 -0800)]
Update rustfix in compiletest.

4 years agoUpdate cargo, rls
Eric Huss [Tue, 14 Jan 2020 17:47:04 +0000 (09:47 -0800)]
Update cargo, rls

4 years agoImplement `finish_non_exhaustive` for `DebugStruct`.
Richard Dodd [Sun, 24 Nov 2019 20:44:19 +0000 (20:44 +0000)]
Implement `finish_non_exhaustive` for `DebugStruct`.

4 years agoupdate async-await send/sync test
csmoe [Tue, 14 Jan 2020 13:22:43 +0000 (21:22 +0800)]
update async-await send/sync test

4 years agoUntangle ZST validation from integer validation and generalize it to all zsts
Oliver Scherer [Mon, 13 Jan 2020 16:58:37 +0000 (17:58 +0100)]
Untangle ZST validation from integer validation and generalize it to all zsts

4 years agoAuto merge of #67711 - Amanieu:fix_unwind_leak, r=alexcrichton
bors [Tue, 14 Jan 2020 15:29:43 +0000 (15:29 +0000)]
Auto merge of #67711 - Amanieu:fix_unwind_leak, r=alexcrichton

Fix memory leak if C++ catches a Rust panic and discards it

If C++ catches a Rust panic using `catch (...)` and then chooses not to rethrow it, the `Box<dyn Any>` in the exception may be leaked. This PR fixes this by adding the necessary destructors to the exception object.

r? @Mark-Simulacrum

4 years agosuggest to limit lifetime of temporary borrow with let
csmoe [Tue, 14 Jan 2020 13:22:19 +0000 (21:22 +0800)]
suggest to limit lifetime of temporary borrow with let

4 years agorecord generoator interior exprs in typecktable
csmoe [Tue, 14 Jan 2020 13:21:14 +0000 (21:21 +0800)]
record generoator interior exprs in typecktable

4 years agoAdd failing example for E0170 explanation
Guillaume Gomez [Tue, 14 Jan 2020 13:04:03 +0000 (14:04 +0100)]
Add failing example for E0170 explanation

4 years agoUpdate APIs according to RFC change suggestions.
Charles Lew [Tue, 14 Jan 2020 12:02:27 +0000 (20:02 +0800)]
Update APIs according to RFC change suggestions.

4 years agoAuto merge of #67076 - mbrubeck:condvar, r=dtolnay
bors [Tue, 14 Jan 2020 10:34:43 +0000 (10:34 +0000)]
Auto merge of #67076 - mbrubeck:condvar, r=dtolnay

Stabilize Condvar::wait_while and wait_timeout_while (previously wait_until, wait_timeout_until)

Closes #47960.

4 years agoNormalize symbol hash in ui test for legacy symbol mangling, as it's dependent on the
Ben Lewis [Tue, 14 Jan 2020 07:41:14 +0000 (20:41 +1300)]
Normalize symbol hash in ui test for legacy symbol mangling, as it's dependent on the
number of bits within consts.

4 years agoAdd unreachable propagation mir optimization pass
Konstantinos Triantafyllou [Fri, 10 Jan 2020 19:15:16 +0000 (20:15 +0100)]
Add unreachable propagation mir optimization pass

4 years agoAuto merge of #68201 - JohnTitor:rollup-26e39gu, r=JohnTitor
bors [Tue, 14 Jan 2020 07:13:31 +0000 (07:13 +0000)]
Auto merge of #68201 - JohnTitor:rollup-26e39gu, r=JohnTitor

Rollup of 10 pull requests

Successful merges:

 - #67854 (Use `report_in_external_macro` for internal lints)
 - #67989 (rustdoc: Don't allow `#![feature(...)]` on stable or beta)
 - #68036 (libterm: parse extended terminfo format)
 - #68127 (Clarify the relationship between `extended` and `tools` in `config.toml`)
 - #68143 (Forbid elided lifetimes within const generic parameter types)
 - #68150 (Document behavior of set_nonblocking on UnixListener)
 - #68166 (rustdoc: HTML escape arrows on help popup)
 - #68176 (Clean up err codes)
 - #68179 (Remove unneeded scope)
 - #68188 (Tweak assertion note in format check)

Failed merges:

r? @ghost

4 years agoRollup merge of #68188 - JohnTitor:tweak-assertion-note, r=Mark-Simulacrum
Yuki Okushi [Tue, 14 Jan 2020 05:02:31 +0000 (14:02 +0900)]
Rollup merge of #68188 - JohnTitor:tweak-assertion-note, r=Mark-Simulacrum

Tweak assertion note in format check

It's informative to tell the existence of `--bless` flag if we're running `tidy`.

4 years agoRollup merge of #68179 - JohnTitor:nll-scope, r=varkor
Yuki Okushi [Tue, 14 Jan 2020 05:02:29 +0000 (14:02 +0900)]
Rollup merge of #68179 - JohnTitor:nll-scope, r=varkor

Remove unneeded scope

Now, we can remove this scope.

4 years agoRollup merge of #68176 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPC
Yuki Okushi [Tue, 14 Jan 2020 05:02:28 +0000 (14:02 +0900)]
Rollup merge of #68176 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPC

Clean up err codes

r? @Dylan-DPC

4 years agoRollup merge of #68166 - ollie27:rustdoc_help_escape, r=GuillaumeGomez
Yuki Okushi [Tue, 14 Jan 2020 05:02:26 +0000 (14:02 +0900)]
Rollup merge of #68166 - ollie27:rustdoc_help_escape, r=GuillaumeGomez

rustdoc: HTML escape arrows on help popup

r? @GuillaumeGomez

4 years agoRollup merge of #68150 - tillarnold:master, r=cramertj
Yuki Okushi [Tue, 14 Jan 2020 05:02:24 +0000 (14:02 +0900)]
Rollup merge of #68150 - tillarnold:master, r=cramertj

Document behavior of set_nonblocking on UnixListener

The description on `set_nonblocking` in `UnixListener` was rather brief so I adapted it to be more like the documentation of  `set_nonblocking` in `TcpListener`.

4 years agoRollup merge of #68143 - skinny121:const-param-type-elided-lifetime, r=petrochenkov
Yuki Okushi [Tue, 14 Jan 2020 05:02:23 +0000 (14:02 +0900)]
Rollup merge of #68143 - skinny121:const-param-type-elided-lifetime, r=petrochenkov

Forbid elided lifetimes within const generic parameter types

Disallows `fn foo<const T: &u32>()`, the lifetime must be explicitly given, i.e. `fn foo<const T: &'static u32>()`.

Fixes #67883

4 years agoRollup merge of #68127 - varkor:clarify-extended-option, r=alexcrichton
Yuki Okushi [Tue, 14 Jan 2020 05:02:21 +0000 (14:02 +0900)]
Rollup merge of #68127 - varkor:clarify-extended-option, r=alexcrichton

Clarify the relationship between `extended` and `tools` in `config.toml`

I.e. `tools` is only effective if `extended = true`. Alternatively, we could make `tools = []` by default and remove `extended` (although we'd want to list the possible options), but improving the description seems sufficient to solve the issue.

Fixes https://github.com/rust-lang/rust/issues/61194.

4 years agoRollup merge of #68036 - euclio:libterm-ncurses6-fix, r=KodrAus
Yuki Okushi [Tue, 14 Jan 2020 05:02:20 +0000 (14:02 +0900)]
Rollup merge of #68036 - euclio:libterm-ncurses6-fix, r=KodrAus

libterm: parse extended terminfo format

Fixes #45728.

Modifies libterm to parse the extended terminfo format introduced in ncurses 6.1. This fixes the lack of color in test output for users with newer ncurses versions.

The ideal fix for this would be to migrate libtest to use `termcolor` (https://github.com/rust-lang/rust/issues/60349), but that's blocked for the foreseeable future.

4 years agoRollup merge of #67989 - ollie27:rustdoc_unstable, r=GuillaumeGomez
Yuki Okushi [Tue, 14 Jan 2020 05:02:18 +0000 (14:02 +0900)]
Rollup merge of #67989 - ollie27:rustdoc_unstable, r=GuillaumeGomez

rustdoc: Don't allow `#![feature(...)]` on stable or beta

Fixes #67647

r? @GuillaumeGomez

4 years agoRollup merge of #67854 - afnanenayet:afnan/report-external-macro-lints, r=petrochenkov
Yuki Okushi [Tue, 14 Jan 2020 05:02:16 +0000 (14:02 +0900)]
Rollup merge of #67854 - afnanenayet:afnan/report-external-macro-lints, r=petrochenkov

Use `report_in_external_macro` for internal lints

Add the option to report lints in external macros for rustc internal lints to resolve #66370

4 years agoTweak assertion note in fmt
Yuki Okushi [Mon, 13 Jan 2020 19:44:57 +0000 (04:44 +0900)]
Tweak assertion note in fmt

4 years agoAuto merge of #68183 - JohnTitor:clippy-up, r=JohnTitor
bors [Mon, 13 Jan 2020 20:56:44 +0000 (20:56 +0000)]
Auto merge of #68183 - JohnTitor:clippy-up, r=JohnTitor

Update Clippy

Fixes #68107

r? @ghost

4 years agoCode review changes and fix rustdoc test.
Ben Lewis [Sat, 11 Jan 2020 07:57:38 +0000 (20:57 +1300)]
Code review changes and fix rustdoc test.

4 years agoperf: eagerly convert literals to consts, this avoids creating loads on unevaluated...
Ben Lewis [Sat, 11 Jan 2020 02:22:36 +0000 (15:22 +1300)]
perf: eagerly convert literals to consts, this avoids creating loads on unevaluated consts
which requires a lot of unnecessary work to evaluate them further down the line.

4 years agoAuto merge of #68088 - oli-obk:fix_miri, r=RalfJung
bors [Mon, 13 Jan 2020 17:39:01 +0000 (17:39 +0000)]
Auto merge of #68088 - oli-obk:fix_miri, r=RalfJung

Don't try to force_ptr pointers to zsts

r? @RalfJung

cc @wesleywiser

This is required to fix miri after https://github.com/rust-lang/rust/pull/67501 broke it. The reason only miri sees this is that it uses validation on values during interpretation and not just on the final value of constants, which never contain such values.

4 years agoEarly abort validation of arrays of zsts because there is no data to be checked
Oliver Scherer [Mon, 13 Jan 2020 15:12:10 +0000 (16:12 +0100)]
Early abort validation of arrays of zsts because there is no data to be checked

4 years agoUpdate Clippy
Yuki Okushi [Mon, 13 Jan 2020 14:45:20 +0000 (23:45 +0900)]
Update Clippy

4 years agoDo not forget to provide queries.
Camille GILLOT [Mon, 13 Jan 2020 14:36:05 +0000 (15:36 +0100)]
Do not forget to provide queries.

4 years agoClean up E0192 explanation
Guillaume Gomez [Mon, 13 Jan 2020 12:34:55 +0000 (13:34 +0100)]
Clean up E0192 explanation

4 years agoClean up E0191 explanation
Guillaume Gomez [Mon, 13 Jan 2020 12:32:32 +0000 (13:32 +0100)]
Clean up E0191 explanation

4 years agoRemove unneeded scope
Yuki Okushi [Mon, 13 Jan 2020 07:54:58 +0000 (16:54 +0900)]
Remove unneeded scope

4 years agoFix destructor in emcc.rs
Amanieu d'Antras [Mon, 13 Jan 2020 08:04:48 +0000 (08:04 +0000)]
Fix destructor in emcc.rs

4 years agoAuto merge of #67850 - GuillaumeGomez:err-codes-checkup, r=Mark-Simulacrum
bors [Mon, 13 Jan 2020 12:49:12 +0000 (12:49 +0000)]
Auto merge of #67850 - GuillaumeGomez:err-codes-checkup, r=Mark-Simulacrum

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

4 years agoMove to new crate rustc_ty.
Camille GILLOT [Mon, 13 Jan 2020 12:40:30 +0000 (13:40 +0100)]
Move to new crate rustc_ty.

4 years agoUse TraitQueryMode::Canonical when testing predicates in const prop
Aaron Hill [Mon, 13 Jan 2020 11:06:42 +0000 (06:06 -0500)]
Use TraitQueryMode::Canonical when testing predicates in const prop

4 years agoAdd "--emit=link"
Aaron Hill [Sat, 11 Jan 2020 19:17:42 +0000 (14:17 -0500)]
Add "--emit=link"

This avoids a strange linker error that we get with only "--emit=mir"
and "check-pass"

4 years agoConvert test to check-pass
Aaron Hill [Sat, 11 Jan 2020 18:20:09 +0000 (13:20 -0500)]
Convert test to check-pass

4 years agoFix typo
Aaron Hill [Tue, 7 Jan 2020 15:53:04 +0000 (10:53 -0500)]
Fix typo

4 years agoAdd additional regression test
Aaron Hill [Tue, 7 Jan 2020 15:01:52 +0000 (10:01 -0500)]
Add additional regression test

4 years agoDon't run const propagation on items with inconsistent bounds
Aaron Hill [Mon, 6 Jan 2020 03:32:53 +0000 (22:32 -0500)]
Don't run const propagation on items with inconsistent bounds

Using `#![feature(trivial_bounds)]`, it's possible to write functions
with unsatisfiable 'where' clauses, making them uncallable. However, the
user can act as if these 'where' clauses are true inside the body of the
function, leading to code that would normally be impossible to write.

Since const propgation can run even without any user-written calls to a
function, we need to explcitly check for these uncallable functions.

4 years agoAuto merge of #68174 - JohnTitor:rollup-ix4amrj, r=JohnTitor
bors [Mon, 13 Jan 2020 08:20:49 +0000 (08:20 +0000)]
Auto merge of #68174 - JohnTitor:rollup-ix4amrj, r=JohnTitor

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

4 years agoRollup merge of #68161 - ruuda:fix-instant-docs, r=rkruppe
Yuki Okushi [Mon, 13 Jan 2020 07:44:24 +0000 (16:44 +0900)]
Rollup merge of #68161 - ruuda:fix-instant-docs, r=rkruppe

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

4 years agoRollup merge of #68157 - GuillaumeGomez:clean-up-e0186, r=Dylan-DPC
Yuki Okushi [Mon, 13 Jan 2020 07:44:23 +0000 (16:44 +0900)]
Rollup merge of #68157 - GuillaumeGomez:clean-up-e0186, r=Dylan-DPC

Clean up E0186 explanation

r? @Dylan-DPC

4 years agoRollup merge of #68156 - JohnTitor:fix-path-in-doc, r=Dylan-DPC
Yuki Okushi [Mon, 13 Jan 2020 07:44:21 +0000 (16:44 +0900)]
Rollup merge of #68156 - JohnTitor:fix-path-in-doc, r=Dylan-DPC

Fix crate paths in comments

Tiny follow-up of #67806 and others

r? @Centril

4 years agoRollup merge of #68145 - JohnTitor:pub-check-lint-name-result, r=Centril
Yuki Okushi [Mon, 13 Jan 2020 07:44:20 +0000 (16:44 +0900)]
Rollup merge of #68145 - JohnTitor:pub-check-lint-name-result, r=Centril

Expose `context::CheckLintNameResult`

Clippy needs it

r? @Centril

4 years agoRollup merge of #68135 - calebcartwright:rustc-parse-visibilities, r=Centril
Yuki Okushi [Mon, 13 Jan 2020 07:44:18 +0000 (16:44 +0900)]
Rollup merge of #68135 - calebcartwright:rustc-parse-visibilities, r=Centril

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

4 years agoRollup merge of #68097 - MikailBag:master, r=shepmaster
Yuki Okushi [Mon, 13 Jan 2020 07:44:17 +0000 (16:44 +0900)]
Rollup merge of #68097 - MikailBag:master, r=shepmaster

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.

4 years agoRollup merge of #67959 - liigo:patch-13, r=GuillaumeGomez
Yuki Okushi [Mon, 13 Jan 2020 07:44:15 +0000 (16:44 +0900)]
Rollup merge of #67959 - liigo:patch-13, r=GuillaumeGomez

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)

4 years agoRollup merge of #67313 - oli-obk:document_all_the_t̶h̶i̶n̶g̶s̶dataflow, r=ecstatic...
Yuki Okushi [Mon, 13 Jan 2020 07:44:13 +0000 (16:44 +0900)]
Rollup merge of #67313 - oli-obk:document_all_the_t̶h̶i̶n̶g̶s̶dataflow, r=ecstatic-morse

Document more use cases of dataflow

r? @ecstatic-morse

4 years agoUse `report_in_external_macro` for internal lints
Afnan Enayet [Sat, 4 Jan 2020 01:27:14 +0000 (17:27 -0800)]
Use `report_in_external_macro` for internal lints

Add the option to report lints in external macros for rustc internal
lints

4 years agoAuto merge of #67900 - nikic:prepare-llvm-10, r=nagisa
bors [Mon, 13 Jan 2020 04:01:00 +0000 (04:01 +0000)]
Auto merge of #67900 - nikic:prepare-llvm-10, r=nagisa

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

4 years agoFix destructor return value in emcc.rs
Amanieu d'Antras [Mon, 13 Jan 2020 00:39:41 +0000 (00:39 +0000)]
Fix destructor return value in emcc.rs

4 years agorustdoc: HTML escape arrows on help popup
Oliver Middleton [Sun, 12 Jan 2020 23:37:47 +0000 (23:37 +0000)]
rustdoc: HTML escape arrows on help popup

4 years agoFix system call docs for time::Instant
Ruud van Asseldonk [Sun, 12 Jan 2020 20:24:31 +0000 (21:24 +0100)]
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. The table is repeated
in the docs for SystemTime, but there the UNIX entry was already correct.

4 years agoDon't include __rust_drop_panic when testing libstd
Amanieu d'Antras [Sun, 12 Jan 2020 16:59:44 +0000 (16:59 +0000)]
Don't include __rust_drop_panic when testing libstd

4 years agoClean up E0186 explanation
Guillaume Gomez [Sun, 12 Jan 2020 16:50:14 +0000 (17:50 +0100)]
Clean up E0186 explanation

4 years agoFix error codes explanation' code examples
Guillaume Gomez [Sat, 4 Jan 2020 00:41:25 +0000 (01:41 +0100)]
Fix error codes explanation' code examples

4 years agoFix crate paths in comments
Yuki Okushi [Sun, 12 Jan 2020 15:51:15 +0000 (00:51 +0900)]
Fix crate paths in comments

4 years agoUpdate `output-default.json` and rustdoc test
varkor [Fri, 10 Jan 2020 18:24:34 +0000 (18:24 +0000)]
Update `output-default.json` and rustdoc test

4 years agoAppease tidy
varkor [Fri, 10 Jan 2020 16:27:37 +0000 (16:27 +0000)]
Appease tidy

4 years agoFix formatting ellipses at the end of some diagnostics
varkor [Fri, 10 Jan 2020 15:13:56 +0000 (15:13 +0000)]
Fix formatting ellipses at the end of some diagnostics

4 years agoAdd backticks in appropriate places
varkor [Fri, 10 Jan 2020 14:57:36 +0000 (14:57 +0000)]
Add backticks in appropriate places

4 years agoDiagnostics should not end with a full stop
varkor [Fri, 10 Jan 2020 14:36:22 +0000 (14:36 +0000)]
Diagnostics should not end with a full stop

4 years agoDiagnostics should start lowercase
varkor [Fri, 10 Jan 2020 14:13:05 +0000 (14:13 +0000)]
Diagnostics should start lowercase

4 years agoAuto merge of #67831 - mati865:ci-images-upgrade, r=pietroalbini
bors [Sun, 12 Jan 2020 14:52:48 +0000 (14:52 +0000)]
Auto merge of #67831 - mati865:ci-images-upgrade, r=pietroalbini

ci: bump ubuntu 19.04 images to 19.10

Ubuntu 19.04 goes EOL this month.

4 years agoDocument behavior of set_nonblocking on UnixListener
Till Arnold [Sun, 12 Jan 2020 11:01:37 +0000 (12:01 +0100)]
Document behavior of set_nonblocking on UnixListener

4 years agoAddress review comments.
Charles Lew [Sun, 12 Jan 2020 10:01:24 +0000 (18:01 +0800)]
Address review comments.

4 years agoAuto merge of #67901 - matthewjasper:split-mir-build, r=nagisa
bors [Sun, 12 Jan 2020 09:44:55 +0000 (09:44 +0000)]
Auto merge of #67901 - matthewjasper:split-mir-build, r=nagisa

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

4 years agoSplit `rustc_mir::{build, hair, lints}` into their own crate
Matthew Jasper [Sun, 5 Jan 2020 15:46:44 +0000 (15:46 +0000)]
Split `rustc_mir::{build, hair, lints}` into their own crate

4 years agoUpdate test benchmark file
Ben Lewis [Sun, 12 Jan 2020 07:41:03 +0000 (20:41 +1300)]
Update test benchmark file

4 years agoExpose `context::CheckLintNameResult`
Yuki Okushi [Sun, 12 Jan 2020 06:25:41 +0000 (15:25 +0900)]
Expose `context::CheckLintNameResult`

Clippy needs it

4 years agoAddress review comments.
Charles Lew [Sun, 12 Jan 2020 05:15:00 +0000 (13:15 +0800)]
Address review comments.

4 years agoAdded comment about behaviour.
Ben Lewis [Sun, 12 Jan 2020 04:32:50 +0000 (17:32 +1300)]
Added comment about behaviour.

4 years agoForbid elided lifetimes within const generic parameter types.
Ben Lewis [Sun, 12 Jan 2020 02:55:12 +0000 (15:55 +1300)]
Forbid elided lifetimes within const generic parameter types.