]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agofree RegionBoundPairs earlier and avoid normalizing twice
Niko Matsakis [Thu, 26 Jul 2018 12:07:22 +0000 (15:07 +0300)]
free RegionBoundPairs earlier and avoid normalizing twice

Normalization results are memoized, so this may not be worth it, but it
seems easy enough to do.

5 years agoremove `region_bound_pairs` from FRR as they are not needed later
Niko Matsakis [Thu, 26 Jul 2018 11:52:56 +0000 (14:52 +0300)]
remove `region_bound_pairs` from FRR as they are not needed later

5 years agomake a free fn for creating the URR
Niko Matsakis [Thu, 26 Jul 2018 11:49:45 +0000 (14:49 +0300)]
make a free fn for creating the URR

5 years agoadd regression test for #52057
Niko Matsakis [Thu, 26 Jul 2018 11:38:40 +0000 (14:38 +0300)]
add regression test for #52057

Fixes #52057

5 years agoremove universal-region-relation computation from universal_regions
Niko Matsakis [Thu, 26 Jul 2018 11:30:22 +0000 (14:30 +0300)]
remove universal-region-relation computation from universal_regions

5 years agointroduce, but do not use, `free_region_relation` computation
Niko Matsakis [Thu, 26 Jul 2018 03:54:31 +0000 (06:54 +0300)]
introduce, but do not use, `free_region_relation` computation

This duplicates, effectively, existing code in the universal regions
computation.

5 years agoInclude lifetime in mutability suggestion in NLL messages
Esteban Küber [Mon, 30 Jul 2018 22:41:39 +0000 (15:41 -0700)]
Include lifetime in mutability suggestion in NLL messages

5 years agoDelete unused code in rustdoc
Mark Rousskov [Sun, 22 Jul 2018 21:01:09 +0000 (15:01 -0600)]
Delete unused code in rustdoc

5 years agorun-pass/const-endianness: negate before to_le()
Josh Stone [Mon, 30 Jul 2018 20:08:56 +0000 (13:08 -0700)]
run-pass/const-endianness: negate before to_le()

`const LE_I128` needs parentheses to negate the value *before* calling
`to_le()`, otherwise it doesn't match the operations performed in the
black-boxed part of the test.  This only makes a tangible difference on
big-endian targets.

5 years agoFix Alias intra doc ICE
Guillaume Gomez [Sun, 29 Jul 2018 22:07:39 +0000 (00:07 +0200)]
Fix Alias intra doc ICE

5 years agoUse Vec::extend in SmallVec::extend when applicable
ljedrz [Mon, 30 Jul 2018 12:54:33 +0000 (14:54 +0200)]
Use Vec::extend in SmallVec::extend when applicable

5 years agorustc_codegen_llvm: fix ownership of DIBuilder.
Irina Popa [Tue, 17 Jul 2018 15:45:33 +0000 (18:45 +0300)]
rustc_codegen_llvm: fix ownership of DIBuilder.

5 years agorustc_codegen_llvm: fix ownership of Builder.
Irina Popa [Tue, 17 Jul 2018 15:33:09 +0000 (18:33 +0300)]
rustc_codegen_llvm: fix ownership of Builder.

5 years agorustc_codegen_llvm: fix tidy errors.
Irina Popa [Tue, 17 Jul 2018 15:26:58 +0000 (18:26 +0300)]
rustc_codegen_llvm: fix tidy errors.

5 years agorustc_codegen_llvm: use safe references for ThinLTOData.
Irina Popa [Tue, 17 Jul 2018 13:43:49 +0000 (16:43 +0300)]
rustc_codegen_llvm: use safe references for ThinLTOData.

5 years agorustc_codegen_llvm: use safe references for ThinLTOBuffer.
Irina Popa [Tue, 17 Jul 2018 13:31:09 +0000 (16:31 +0300)]
rustc_codegen_llvm: use safe references for ThinLTOBuffer.

5 years agorustc_codegen_llvm: use safe references for ModuleBuffer.
Irina Popa [Tue, 17 Jul 2018 13:08:25 +0000 (16:08 +0300)]
rustc_codegen_llvm: use safe references for ModuleBuffer.

5 years agorustc_codegen_llvm: use safe references for RustArchiveMember.
Irina Popa [Tue, 17 Jul 2018 13:00:10 +0000 (16:00 +0300)]
rustc_codegen_llvm: use safe references for RustArchiveMember.

5 years agorustc_codegen_llvm: use safe references for ArchiveChild.
Irina Popa [Tue, 17 Jul 2018 12:02:11 +0000 (15:02 +0300)]
rustc_codegen_llvm: use safe references for ArchiveChild.

5 years agorustc_codegen_llvm: use safe references for ArchiveIterator.
Irina Popa [Tue, 17 Jul 2018 11:31:06 +0000 (14:31 +0300)]
rustc_codegen_llvm: use safe references for ArchiveIterator.

5 years agorustc_codegen_llvm: use safe references for Linker.
Irina Popa [Tue, 17 Jul 2018 11:26:22 +0000 (14:26 +0300)]
rustc_codegen_llvm: use safe references for Linker.

5 years agorustc_codegen_llvm: use safe references for SectionIterator.
Irina Popa [Tue, 17 Jul 2018 11:22:02 +0000 (14:22 +0300)]
rustc_codegen_llvm: use safe references for SectionIterator.

5 years agorustc_codegen_llvm: use safe references for PassManager.
Irina Popa [Tue, 17 Jul 2018 11:17:47 +0000 (14:17 +0300)]
rustc_codegen_llvm: use safe references for PassManager.

5 years agorustc_codegen_llvm: use safe references for OperandBundleDef.
Irina Popa [Mon, 16 Jul 2018 13:02:31 +0000 (16:02 +0300)]
rustc_codegen_llvm: use safe references for OperandBundleDef.

5 years agorustc_codegen_llvm: use safe mutable references for output parameters.
Irina Popa [Fri, 13 Jul 2018 12:27:55 +0000 (15:27 +0300)]
rustc_codegen_llvm: use safe mutable references for output parameters.

5 years agorustc_codegen_llvm: use safe references for RustString.
Irina Popa [Fri, 13 Jul 2018 11:43:12 +0000 (14:43 +0300)]
rustc_codegen_llvm: use safe references for RustString.

5 years agorustc_codegen_llvm: use safe references for Twine, DiagnosticInfo, SMDiagnostic.
Irina Popa [Fri, 13 Jul 2018 10:59:41 +0000 (13:59 +0300)]
rustc_codegen_llvm: use safe references for Twine, DiagnosticInfo, SMDiagnostic.

5 years agorustc_codegen_llvm: use safe references for Archive.
Irina Popa [Fri, 13 Jul 2018 10:06:06 +0000 (13:06 +0300)]
rustc_codegen_llvm: use safe references for Archive.

5 years agorustc_codegen_llvm: use safe references for TargetMachine.
Irina Popa [Thu, 12 Jul 2018 15:34:59 +0000 (18:34 +0300)]
rustc_codegen_llvm: use safe references for TargetMachine.

5 years agorustc_codegen_llvm: use safe references for Pass.
Irina Popa [Thu, 12 Jul 2018 15:00:49 +0000 (18:00 +0300)]
rustc_codegen_llvm: use safe references for Pass.

5 years agorustc_codegen_llvm: use safe references for PassManagerBuilder.
Irina Popa [Thu, 12 Jul 2018 13:24:09 +0000 (16:24 +0300)]
rustc_codegen_llvm: use safe references for PassManagerBuilder.

5 years agorustc_codegen_llvm: use safe references for MemoryBuffer and ObjectFile.
Irina Popa [Tue, 10 Jul 2018 16:19:17 +0000 (19:19 +0300)]
rustc_codegen_llvm: use safe references for MemoryBuffer and ObjectFile.

5 years agorustc_codegen_llvm: remove more unused functions.
Irina Popa [Tue, 10 Jul 2018 15:00:02 +0000 (18:00 +0300)]
rustc_codegen_llvm: remove more unused functions.

5 years agorustc_codegen_llvm: remove unused UseRef type.
Irina Popa [Tue, 10 Jul 2018 11:37:52 +0000 (14:37 +0300)]
rustc_codegen_llvm: remove unused UseRef type.

5 years agorustc_codegen_llvm: use safe references for BasicBlock.
Irina Popa [Tue, 10 Jul 2018 11:34:34 +0000 (14:34 +0300)]
rustc_codegen_llvm: use safe references for BasicBlock.

5 years agorustc_codegen_llvm: use safe references for Value.
Irina Popa [Tue, 10 Jul 2018 10:28:39 +0000 (13:28 +0300)]
rustc_codegen_llvm: use safe references for Value.

5 years agoImplement Unpin for FutureObj and LocalFutureObj
Taylor Cramer [Mon, 30 Jul 2018 16:13:30 +0000 (09:13 -0700)]
Implement Unpin for FutureObj and LocalFutureObj

5 years agorustc_codegen_llvm: remove _opaque suffix.
Irina Popa [Thu, 5 Jul 2018 10:38:44 +0000 (13:38 +0300)]
rustc_codegen_llvm: remove _opaque suffix.

5 years agorustc_codegen_llvm: remove #![allow(dead_code)] from llvm.
Irina Popa [Wed, 4 Jul 2018 16:16:13 +0000 (19:16 +0300)]
rustc_codegen_llvm: remove #![allow(dead_code)] from llvm.

5 years agorustc_codegen_llvm: remove unused ExecutionEngineRef type.
Irina Popa [Wed, 4 Jul 2018 13:45:48 +0000 (16:45 +0300)]
rustc_codegen_llvm: remove unused ExecutionEngineRef type.

5 years agorustc_codegen_llvm: use safe references for Metadata and DI*.
Irina Popa [Wed, 4 Jul 2018 13:36:49 +0000 (16:36 +0300)]
rustc_codegen_llvm: use safe references for Metadata and DI*.

5 years agoRemove unstable and deprecated APIs
Simon Sapin [Thu, 26 Jul 2018 13:03:49 +0000 (15:03 +0200)]
Remove unstable and deprecated APIs

5 years agoRemove the unstable std_unicode crate, deprecated since 1.27
Simon Sapin [Thu, 26 Jul 2018 12:54:41 +0000 (14:54 +0200)]
Remove the unstable std_unicode crate, deprecated since 1.27

Its former contents are now in libcore.

5 years agoFix wrong issue number in the test name
Mikhail Modin [Mon, 30 Jul 2018 16:05:30 +0000 (17:05 +0100)]
Fix wrong issue number in the test name

5 years agoreleases.md: fix 2 typos
Matthias Krüger [Mon, 30 Jul 2018 15:41:19 +0000 (17:41 +0200)]
releases.md: fix 2 typos

5 years agorustc_codegen_llvm: use safe references for DIBuilder.
Irina Popa [Tue, 3 Jul 2018 13:02:38 +0000 (16:02 +0300)]
rustc_codegen_llvm: use safe references for DIBuilder.

5 years agorustc_codegen_llvm: use safe references for Builder.
Irina Popa [Tue, 3 Jul 2018 12:49:43 +0000 (15:49 +0300)]
rustc_codegen_llvm: use safe references for Builder.

5 years agorustc_codegen_llvm: use safe references for Type.
Irina Popa [Mon, 2 Jul 2018 14:52:53 +0000 (17:52 +0300)]
rustc_codegen_llvm: use safe references for Type.

5 years agorustc_codegen_llvm: use safe references for Context and Module.
Irina Popa [Wed, 27 Jun 2018 14:57:25 +0000 (17:57 +0300)]
rustc_codegen_llvm: use safe references for Context and Module.

5 years agorustc_codegen_llvm: move from empty enums to extern types.
Irina Popa [Wed, 27 Jun 2018 10:12:47 +0000 (13:12 +0300)]
rustc_codegen_llvm: move from empty enums to extern types.

5 years agoupdate books for new release
steveklabnik [Mon, 30 Jul 2018 15:09:48 +0000 (11:09 -0400)]
update books for new release

5 years agorustc_llvm: move to rustc_codegen_llvm::llvm.
Irina Popa [Tue, 29 May 2018 17:41:36 +0000 (20:41 +0300)]
rustc_llvm: move to rustc_codegen_llvm::llvm.

5 years agorustc: Disallow machine applicability in foreign macros
Alex Crichton [Thu, 26 Jul 2018 21:53:15 +0000 (14:53 -0700)]
rustc: Disallow machine applicability in foreign macros

Recent changes to lints disallowed lints from being emitted against code located
in foreign macros, except for future-incompatible lints. For a future
incompatible lint, however, the automatic suggestions may not be applicable!

This commit updates this code path to force all applicability suggestions made
to foreign macros to never be `MachineApplicable`. This should avoid rustfix
actually attempting fixing these suggestions, causing non-compiling code to be
produced.

Closes rust-lang/cargo#5799

5 years agoExplain that the tool is responsible for unknown tool_lints
flip1995 [Mon, 30 Jul 2018 14:07:00 +0000 (16:07 +0200)]
Explain that the tool is responsible for unknown tool_lints

5 years agoAdd a test for the declare_tool_lint macro
flip1995 [Mon, 30 Jul 2018 09:30:07 +0000 (11:30 +0200)]
Add a test for the declare_tool_lint macro

5 years agoCheck if the lint_name is from a tool and if the tool_lint exists
flip1995 [Mon, 30 Jul 2018 09:29:23 +0000 (11:29 +0200)]
Check if the lint_name is from a tool and if the tool_lint exists

5 years agoAdd targets for HermitCore (https://hermitcore.org) to the Rust compiler and port...
Colin Finck [Mon, 30 Jul 2018 13:50:51 +0000 (15:50 +0200)]
Add targets for HermitCore (https://hermitcore.org) to the Rust compiler and port libstd to it.

As a start, the port uses the simplest possible configuration (no jemalloc, abort on panic)
and makes use of existing Unix-specific code wherever possible.
It adds targets for x86_64 (current main HermitCore platform) and aarch64 (HermitCore platform
under development).

Together with the patches to "liblibc" and "llvm", this enables HermitCore applications to be
written in Rust.

5 years agoAuto merge of #52697 - ljedrz:misc_data_structures, r=Mark-Simulacrum
bors [Mon, 30 Jul 2018 12:20:58 +0000 (12:20 +0000)]
Auto merge of #52697 - ljedrz:misc_data_structures, r=Mark-Simulacrum

Simplify a few functions in rustc_data_structures

- drop `try!()` where it's superfluous
- change `try!()` to `?`
- squash a `push` with `push_str`
- refactor a push loop into an iterator

5 years agofix memrchr in miri
Ralf Jung [Mon, 30 Jul 2018 12:00:12 +0000 (14:00 +0200)]
fix memrchr in miri

5 years agoimprove test stage documentation
Ralf Jung [Mon, 30 Jul 2018 10:57:20 +0000 (12:57 +0200)]
improve test stage documentation

5 years agoimprove --stage documentation
Ralf Jung [Mon, 30 Jul 2018 10:52:01 +0000 (12:52 +0200)]
improve --stage documentation

5 years agoAuto merge of #52830 - matthewjasper:bootstrap-prep, r=matthewjasper
bors [Mon, 30 Jul 2018 10:19:38 +0000 (10:19 +0000)]
Auto merge of #52830 - matthewjasper:bootstrap-prep, r=matthewjasper

[NLL] Fix some things for bootstrap

Some changes that are required when bootstrapping rustc with NLL enabled.

* Remove a bunch of unused `mut`s that aren't needed, but the existing lint doesn't catch.
* Rewrite a function call to satisfy NLL borrowck. Note that the borrow is two-phase, but gets activated immediately by an unsizing coercion.

cc #51823

5 years agoRevert "Stabilize to_bytes and from_bytes for integers."
Simon Sapin [Mon, 30 Jul 2018 09:55:20 +0000 (11:55 +0200)]
Revert "Stabilize to_bytes and from_bytes for integers."

This reverts commit c8f9b84b393915a48253e3edc862c15a9b7152a7.

5 years agoIntroduce the declare_tool_lint macro
flip1995 [Mon, 30 Jul 2018 09:20:11 +0000 (11:20 +0200)]
Introduce the declare_tool_lint macro

5 years agoAuto merge of #52722 - alexcrichton:more-identifier-lints, r=oli-obk
bors [Mon, 30 Jul 2018 08:25:36 +0000 (08:25 +0000)]
Auto merge of #52722 - alexcrichton:more-identifier-lints, r=oli-obk

Tweak the raw_identifiers lints in 2018

* Enable the `raw_identifiers` feature automatically in the 2018 preview
* Only emit lint warnings if the `raw_identifiers` feature is activated

cc rust-lang/cargo#5783

5 years agoAuto merge of #52805 - ljedrz:format_str_literal, r=petrochenkov
bors [Mon, 30 Jul 2018 06:29:39 +0000 (06:29 +0000)]
Auto merge of #52805 - ljedrz:format_str_literal, r=petrochenkov

Don't format!() string literals

Prefer `to_string()` to `format!()` take 2, this time targetting string literals. In some cases (`&format!("...")` -> `"..."`) also removes allocations. Occurences of `format!("")` are changed to `String::new()`.

5 years agoRemove references to AUTHORS.txt file
Donato Sciarra [Sun, 29 Jul 2018 17:50:30 +0000 (19:50 +0200)]
Remove references to AUTHORS.txt file

Refer instead to thanks page.

5 years agoresolved upstream merge conflicts
Brad Gibson [Mon, 30 Jul 2018 03:03:15 +0000 (20:03 -0700)]
resolved upstream merge conflicts

5 years agoAuto merge of #52823 - RalfJung:test, r=eddyb
bors [Mon, 30 Jul 2018 04:34:19 +0000 (04:34 +0000)]
Auto merge of #52823 - RalfJung:test, r=eddyb

invalid_const_promotion: check if we get the right signal

r? @eddyb

5 years agoAdd timeout to use of `curl` in bootstrap.py.
kennytm [Mon, 30 Jul 2018 04:06:22 +0000 (12:06 +0800)]
Add timeout to use of `curl` in bootstrap.py.

5 years agoDon't commit thread stack on Windows
Xidorn Quan [Mon, 30 Jul 2018 04:02:09 +0000 (14:02 +1000)]
Don't commit thread stack on Windows

5 years agoupdate comment
toidiu [Mon, 30 Jul 2018 01:12:58 +0000 (21:12 -0400)]
update comment

5 years agoAuto merge of #52828 - Mark-Simulacrum:clear-rustdoc-check, r=alexcrichton
bors [Mon, 30 Jul 2018 01:08:13 +0000 (01:08 +0000)]
Auto merge of #52828 - Mark-Simulacrum:clear-rustdoc-check, r=alexcrichton

Clear out rustdoc check builds if dependencies change

r? @alexcrichton

5 years agoAuto merge of #52738 - ljedrz:push_to_extend, r=eddyb
bors [Sun, 29 Jul 2018 21:37:47 +0000 (21:37 +0000)]
Auto merge of #52738 - ljedrz:push_to_extend, r=eddyb

Replace push loops with extend() where possible

Or set the vector capacity where I couldn't do it.

According to my [simple benchmark](https://gist.github.com/ljedrz/568e97621b749849684c1da71c27dceb) `extend`ing a vector can be over **10 times** faster than `push`ing to it in a loop:

10 elements (6.1 times faster):
```
test bench_extension ... bench:          75 ns/iter (+/- 23)
test bench_push_loop ... bench:         458 ns/iter (+/- 142)
```

100 elements (11.12 times faster):
```
test bench_extension ... bench:          87 ns/iter (+/- 26)
test bench_push_loop ... bench:         968 ns/iter (+/- 3,528)
```

1000 elements (11.04 times faster):
```
test bench_extension ... bench:         311 ns/iter (+/- 9)
test bench_push_loop ... bench:       3,436 ns/iter (+/- 233)
```

Seems like a good idea to use `extend` as much as possible.

5 years agoAuto merge of #51361 - oli-obk:sanity_check_consts, r=nikomatsakis
bors [Sun, 29 Jul 2018 19:37:28 +0000 (19:37 +0000)]
Auto merge of #51361 - oli-obk:sanity_check_consts, r=nikomatsakis

Do a basic sanity check for all constant values

## Motivation and high level overview

There has been some back and forth in this PR between @RalfJung and me in here about the motivation for this change and the stance it takes on unsafe coding guidelines.

The initial implementation ran its checks on every value read (so `*x`, `y = x`, ...). In unsafe code that isn't reasonable, because we might be invalidating invariants for a short time in order to build up a proper value.

The current implementation is a lint that runs its checks statics and constants. There is no need to check array lengths and enum variants, because it's a hard error to end up with anything but a number, and that one even has to have the required bits to be defined.

## What checks are done?

* Some type related checks
    * `char` needs to be a correct unicode character as defined by `char::from_u32`
    * A reference to a ZST must have the correct alignment (and be nonzero)
    * A reference to anything is dereferenced and its value is checked
* Layout checks use the information from `ty::Layout` to check
    * all fields of structs
    * all elements of arrays
    * enum discriminants
    * the fields of an enum variant (the variant is decided by the discriminant)
    * whether any union field succeeds in being checked (if none match the memory pattern, the check fails)
    * if the value is in the range described by the layout (e.g. for `NonZero*` types)

Changing the layout of a type will thus automatically cause the checks to check for the new layout.

fixes #51330
fixes #51471

cc @RalfJung

r? @eddyb

5 years agodont hardcode vtable size in codegen test
Ralf Jung [Sun, 29 Jul 2018 10:34:19 +0000 (12:34 +0200)]
dont hardcode vtable size in codegen test

5 years agoupdate codegen tests
Ralf Jung [Sun, 29 Jul 2018 10:14:51 +0000 (12:14 +0200)]
update codegen tests

5 years agoMove a test that depends on the arch bitwidth to compile-fail
Oliver Schneider [Thu, 26 Jul 2018 15:46:09 +0000 (17:46 +0200)]
Move a test that depends on the arch bitwidth to compile-fail

5 years agoUpdate miri submodule
Oliver Schneider [Thu, 26 Jul 2018 12:38:41 +0000 (14:38 +0200)]
Update miri submodule

5 years agoSanity-check all constants
Oliver Schneider [Mon, 4 Jun 2018 16:32:06 +0000 (18:32 +0200)]
Sanity-check all constants

5 years agoChange order of copy and borrow to avoid conflict
Matthew Jasper [Sun, 29 Jul 2018 17:02:13 +0000 (18:02 +0100)]
Change order of copy and borrow to avoid conflict

Note that the first argument is `self as &mut dyn Delegate`, so this
isn't allowed with two-phase borrows.

5 years agoRemove unused `mut`s
Matthew Jasper [Sun, 29 Jul 2018 16:40:36 +0000 (17:40 +0100)]
Remove unused `mut`s

5 years agoReplace push loops with collect() and extend() where possible
ljedrz [Thu, 26 Jul 2018 15:11:10 +0000 (17:11 +0200)]
Replace push loops with collect() and extend() where possible

5 years agoresolve: Modularize crate-local `#[macro_export] macro_rules`
Vadim Petrochenkov [Sun, 29 Jul 2018 11:51:17 +0000 (14:51 +0300)]
resolve: Modularize crate-local `#[macro_export] macro_rules`

5 years agoClear out rustdoc check builds if dependencies change
Mark Rousskov [Sun, 29 Jul 2018 15:03:37 +0000 (09:03 -0600)]
Clear out rustdoc check builds if dependencies change

5 years agofix coding style
Unknown [Sun, 29 Jul 2018 14:45:32 +0000 (23:45 +0900)]
fix coding style

5 years agoAuto merge of #52620 - mikhail-m1:51351, r=nikomatsakis
bors [Sun, 29 Jul 2018 13:23:01 +0000 (13:23 +0000)]
Auto merge of #52620 - mikhail-m1:51351, r=nikomatsakis

fix simple case of issue #51351 and #52133

r? @nikomatsakis

5 years agoMake sure #47772 does not regress
Ralf Jung [Sun, 29 Jul 2018 11:41:43 +0000 (13:41 +0200)]
Make sure #47772 does not regress

5 years agoAuto merge of #52755 - kennytm:update-rustfmt, r=nrc
bors [Sun, 29 Jul 2018 11:27:48 +0000 (11:27 +0000)]
Auto merge of #52755 - kennytm:update-rustfmt, r=nrc

Update rustfmt and RLS

5 years agoFix -Wpessimizing-move warnings in rustllvm/PassWrapper
varkor [Sun, 29 Jul 2018 11:20:06 +0000 (12:20 +0100)]
Fix -Wpessimizing-move warnings in rustllvm/PassWrapper

5 years agoinvalid_const_promotion: check if we get the right signal
Ralf Jung [Sun, 29 Jul 2018 11:11:01 +0000 (13:11 +0200)]
invalid_const_promotion: check if we get the right signal

5 years agoUpdate RLS and rustfmt.
kennytm [Thu, 26 Jul 2018 21:58:55 +0000 (05:58 +0800)]
Update RLS and rustfmt.

5 years agoTest clippy first to workaround the derive-new conflict.
kennytm [Sun, 29 Jul 2018 11:05:29 +0000 (19:05 +0800)]
Test clippy first to workaround the derive-new conflict.

5 years agofix issues #51351 and #52133
Mikhail Modin [Fri, 27 Jul 2018 21:46:16 +0000 (22:46 +0100)]
fix issues #51351 and #52133

5 years agoAuto merge of #52767 - ljedrz:avoid_format, r=petrochenkov
bors [Sun, 29 Jul 2018 09:33:37 +0000 (09:33 +0000)]
Auto merge of #52767 - ljedrz:avoid_format, r=petrochenkov

Prefer to_string() to format!()

Simple benchmarks suggest in some cases it can be faster by even 37%:
```
test converting_f64_long  ... bench:         339 ns/iter (+/- 199)
test converting_f64_short ... bench:         136 ns/iter (+/- 34)
test converting_i32_long  ... bench:          87 ns/iter (+/- 16)
test converting_i32_short ... bench:          87 ns/iter (+/- 49)
test converting_str       ... bench:          54 ns/iter (+/- 15)
test formatting_f64_long  ... bench:         349 ns/iter (+/- 176)
test formatting_f64_short ... bench:         145 ns/iter (+/- 14)
test formatting_i32_long  ... bench:          98 ns/iter (+/- 14)
test formatting_i32_short ... bench:          93 ns/iter (+/- 15)
test formatting_str       ... bench:          86 ns/iter (+/- 23)
```

5 years agoFix From<LocalWaker>
Josef Reinhard Brandl [Sun, 29 Jul 2018 08:31:20 +0000 (10:31 +0200)]
Fix From<LocalWaker>

5 years agoExempt cloudabi from license check.
kennytm [Sun, 29 Jul 2018 03:54:27 +0000 (11:54 +0800)]
Exempt cloudabi from license check.

5 years agoCopy the test_data/ RLS tests into a writable directory.
kennytm [Sat, 28 Jul 2018 19:36:18 +0000 (03:36 +0800)]
Copy the test_data/ RLS tests into a writable directory.

See rust-lang-nursery/rls#966 for details.

5 years agopretty print for std::collections::vecdeque
Unknown [Sun, 29 Jul 2018 06:43:54 +0000 (15:43 +0900)]
pretty print for std::collections::vecdeque

5 years agoAuto merge of #52764 - sinkuu:cleanup, r=nikomatsakis
bors [Sun, 29 Jul 2018 06:32:24 +0000 (06:32 +0000)]
Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakis

Misc cleanups