]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoFurther extract error code switch
Mark Rousskov [Sun, 22 Jul 2018 17:10:19 +0000 (11:10 -0600)]
Further extract error code switch

Removes dependency on UnstableFeatures from markdown rendering

6 years agoRemove dependency on error handling from find_testable_code
Mark Rousskov [Sat, 21 Jul 2018 23:15:25 +0000 (17:15 -0600)]
Remove dependency on error handling from find_testable_code

6 years agoProvide test configuration through struct
Mark Rousskov [Sat, 21 Jul 2018 22:54:30 +0000 (16:54 -0600)]
Provide test configuration through struct

This is far more sound than passing many different arguments of the same
type.

6 years agoProvide warnings for invalid code blocks in markdown files
Mark Rousskov [Sat, 21 Jul 2018 22:30:02 +0000 (16:30 -0600)]
Provide warnings for invalid code blocks in markdown files

Previously we would only warn on Rust code but we can also do so when
testing markdown (the diag::Handler is available).

6 years agoPull out nightly checking to edges
Mark Rousskov [Sat, 21 Jul 2018 22:12:16 +0000 (16:12 -0600)]
Pull out nightly checking to edges

Parsing the code block's LangString (```foo) previously checked itself
to see if we were on nightly; that isn't the right place to do so. Move
that check slightly outwards to better abstract LangString.

(This is also an optimization as we avoid the costly environment
variable load of RUSTC_BOOTSTRAP).

6 years agoNLL: On "cannot move out of type" error, print original source before rewrite.
Felix S. Klock II [Tue, 31 Jul 2018 15:22:12 +0000 (17:22 +0200)]
NLL: On "cannot move out of type" error, print original source before rewrite.

 * Arguably this change is sometimes injecting noise into the output
   (namely in the cases where the suggested rewrite is inline with the
   suggestion and we end up highlighting the original source code).
   I would not be opposed to something more aggressive/dynamic, like
   revising the suggestion code to automatically print the original
   source when necessary (e.g. when the error does not have a span
   that includes the span of the suggestion).

 * Also, as another note on this change: The doc comment for `Diagnostic::span_suggestion`
   says:
    /// The message
    ///
    /// * should not end in any punctuation (a `:` is added automatically)
    /// * should not be a question
    /// * should not contain any parts like "the following", "as shown"

   but the `:` is *not* added when the emitted line appears
   out-of-line relative to the suggestion. I find that to be an
   unfortunate UI experience.

----

As a drive-by fix, also changed code to combine multiple suggestions
for a pattern into a single multipart suggestion (which vastly
improves user experience IMO).

----

Includes the updates to expected NLL diagnostics.

6 years agoenable jemalloc assertions when configured to do so
Ralf Jung [Tue, 31 Jul 2018 15:01:39 +0000 (17:01 +0200)]
enable jemalloc assertions when configured to do so

6 years agoAuto merge of #52461 - irinagpopa:safe-llvm, r=nikomatsakis
bors [Tue, 31 Jul 2018 13:32:32 +0000 (13:32 +0000)]
Auto merge of #52461 - irinagpopa:safe-llvm, r=nikomatsakis

 rustc_codegen_llvm: use safe references for LLVM FFI types.

Part of #45274.

6 years agoFix a typo in unsize.rs
pravic [Tue, 31 Jul 2018 13:28:50 +0000 (16:28 +0300)]
Fix a typo in unsize.rs

RfC -> RFC

6 years agotests/ui: Add missing mips{64} ignores
dragan.mladjenovic [Tue, 31 Jul 2018 09:01:27 +0000 (11:01 +0200)]
tests/ui: Add missing mips{64} ignores

6 years agoUpdate the `.nll.stderr` files under new sorted-by-span scheme.
Felix S. Klock II [Tue, 31 Jul 2018 12:51:36 +0000 (14:51 +0200)]
Update the `.nll.stderr` files under new sorted-by-span scheme.

6 years agoUpdate tests that use `-Z borrowck=compare` or `#[feature(nll)]` to accmmodate diagno...
Felix S. Klock II [Tue, 31 Jul 2018 12:36:50 +0000 (14:36 +0200)]
Update tests that use `-Z borrowck=compare` or `#[feature(nll)]` to accmmodate diagnostic change.

6 years agorustc_llvm: fix linking on mingw.
Irina Popa [Tue, 31 Jul 2018 12:36:38 +0000 (15:36 +0300)]
rustc_llvm: fix linking on mingw.

6 years agoBlindly update the `#[rustc_region]` tests which got touched by the NLL diagnostic...
Felix S. Klock II [Tue, 31 Jul 2018 12:35:43 +0000 (14:35 +0200)]
Blindly update the `#[rustc_region]` tests which got touched by the NLL diagnostic change.

6 years agoSort NLL error diagnostics by span in an attempt to make them match source order
Felix S. Klock II [Tue, 31 Jul 2018 12:30:46 +0000 (14:30 +0200)]
Sort NLL error diagnostics by span in an attempt to make them match source order
(and thus, hopefully, more closely match user expectation).

6 years agoBenchmarks for SmallVec
ljedrz [Tue, 31 Jul 2018 12:11:04 +0000 (14:11 +0200)]
Benchmarks for SmallVec

6 years agoAuto merge of #50267 - humanenginuity:master, r=alexcrichton
bors [Tue, 31 Jul 2018 11:20:16 +0000 (11:20 +0000)]
Auto merge of #50267 - humanenginuity:master, r=alexcrichton

Implement inner deref for Option and Result

tracking issue: #50264

6 years agohopefully make test pass on windows
Ralf Jung [Tue, 31 Jul 2018 08:35:27 +0000 (10:35 +0200)]
hopefully make test pass on windows

6 years agoAuto merge of #52850 - SimonSapin:unstablize, r=alexcrichton
bors [Tue, 31 Jul 2018 09:08:33 +0000 (09:08 +0000)]
Auto merge of #52850 - SimonSapin:unstablize, r=alexcrichton

Revert "Stabilize to_bytes and from_bytes for integers."

This reverts commit c8f9b84b393915a48253e3edc862c15a9b7152a7 / PR https://github.com/rust-lang/rust/pull/51835, and reopens the tracking issue https://github.com/rust-lang/rust/issues/49792.

These methods were stabilized in Rust 1.29, which is still in Nightly as of this writing. So my understanding is that it is still time to change our minds. Given the ongoing discussion in https://github.com/rust-lang/rust/pull/51919 about possibly renaming these APIs and since 1.29 goes to beta soon, I’d like to revert this stabilization for now until a decision is made in that PR. It’s possible that a decision will be made in time for 1.29, but there is no urgency. At most I expect this functionality to make it into 1.30.

6 years agomake sure that the no-panic test tests what it is supposed to test
Ralf Jung [Sun, 29 Jul 2018 20:29:49 +0000 (22:29 +0200)]
make sure that the no-panic test tests what it is supposed to test

6 years agoFix coding style.
Colin Finck [Tue, 31 Jul 2018 07:49:10 +0000 (09:49 +0200)]
Fix coding style.

6 years agoAuto merge of #52630 - Mark-Simulacrum:rustdoc-cleanup-2, r=QuietMisdreavus
bors [Tue, 31 Jul 2018 07:02:10 +0000 (07:02 +0000)]
Auto merge of #52630 - Mark-Simulacrum:rustdoc-cleanup-2, r=QuietMisdreavus

Delete unused code in rustdoc

Also hid the unused crate exports of rustdoc. This is technically a breaking change but we don't even ship librustdoc in the sysroot so I don't expect breakage.

6 years agoAuto merge of #52863 - steveklabnik:update-books, r=Mark-Simulacrum
bors [Tue, 31 Jul 2018 03:30:47 +0000 (03:30 +0000)]
Auto merge of #52863 - steveklabnik:update-books, r=Mark-Simulacrum

update books for new release

r? @Mark-Simulacrum

6 years agoJust tidying up
John Renner [Tue, 31 Jul 2018 02:55:23 +0000 (19:55 -0700)]
Just tidying up

6 years agoReexport tests without polluting namespaces
John Renner [Wed, 25 Jul 2018 00:51:37 +0000 (17:51 -0700)]
Reexport tests without polluting namespaces

6 years agoAuto merge of #52731 - nikomatsakis:issue-52057-inference-variable, r=pnkfelix
bors [Tue, 31 Jul 2018 01:25:49 +0000 (01:25 +0000)]
Auto merge of #52731 - nikomatsakis:issue-52057-inference-variable, r=pnkfelix

Issue 52057 — inference variable

Break out the computation of universal region relations and do it during the typeck, where we can handle the resulting constraints that arise.

r? @pnkfelix

6 years agoregion_infer: rustfmt, pacifying the mercilous tidy
Niko Matsakis [Thu, 26 Jul 2018 12:38:18 +0000 (15:38 +0300)]
region_infer: rustfmt, pacifying the mercilous tidy

6 years agoassert no region obligations on entering custom type op
Niko Matsakis [Thu, 26 Jul 2018 12:19:21 +0000 (15:19 +0300)]
assert no region obligations on entering custom type op

Fixes #51649

6 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.

6 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

6 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

6 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

6 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

6 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.

6 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

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

6 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.

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

6 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

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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

6 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.

6 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.

6 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.

6 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*.

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

6 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.

6 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

6 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

6 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.

6 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.

6 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.

6 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.

6 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.

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

6 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.

6 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

6 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

6 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

6 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

6 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.

6 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

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

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

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

6 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

6 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.

6 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

6 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

6 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()`.

6 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.

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

6 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

6 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.

6 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

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