]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoreview comments: help wording
Esteban Küber [Fri, 18 Oct 2019 15:36:46 +0000 (08:36 -0700)]
review comments: help wording

4 years agoUse Cow to handle modifications of projection in preparation for interning
Santiago Pastorino [Wed, 9 Oct 2019 02:46:14 +0000 (23:46 -0300)]
Use Cow to handle modifications of projection in preparation for interning

4 years ago[const-prop] Handle MIR Rvalue::Discriminant
Wesley Wiser [Sun, 15 Sep 2019 04:05:19 +0000 (00:05 -0400)]
[const-prop] Handle MIR Rvalue::Discriminant

4 years ago[const-prop] Handle MIR Rvalue::Aggregates
Wesley Wiser [Sat, 14 Sep 2019 18:11:31 +0000 (14:11 -0400)]
[const-prop] Handle MIR Rvalue::Aggregates

4 years ago[const-prop] Handle MIR Rvalue::Repeat
Wesley Wiser [Sat, 14 Sep 2019 13:22:07 +0000 (09:22 -0400)]
[const-prop] Handle MIR Rvalue::Repeat

4 years agoAuto merge of #64925 - ehuss:document-json, r=Mark-Simulacrum
bors [Fri, 18 Oct 2019 10:15:26 +0000 (10:15 +0000)]
Auto merge of #64925 - ehuss:document-json, r=Mark-Simulacrum

Document JSON message output.

This documents the JSON messages in the rustc book.

4 years agoClarify diagnostics when using `~` as a unary op
Yuki Okushi [Fri, 18 Oct 2019 09:15:16 +0000 (18:15 +0900)]
Clarify diagnostics when using `~` as a unary op

4 years agoAvoid realloc in `CString::new`
Shotaro Yamada [Fri, 18 Oct 2019 07:10:13 +0000 (16:10 +0900)]
Avoid realloc in `CString::new`

4 years agoFix left/right shift typo in wrapping rotate docs
Tobias Rapp [Fri, 18 Oct 2019 06:29:18 +0000 (08:29 +0200)]
Fix left/right shift typo in wrapping rotate docs

This makes the note similar to the one found on rotate functions for
primitive types like i32/u32.

4 years agoRemove `Hash` impls for `DefPath`, `DisambiguatedDefPathData`, and `DefKey`.
Nicholas Nethercote [Fri, 18 Oct 2019 05:36:17 +0000 (16:36 +1100)]
Remove `Hash` impls for `DefPath`, `DisambiguatedDefPathData`, and `DefKey`.

They aren't used.

4 years agoRemove `Copy` and `Clone` impls for `LocalInternedString`.
Nicholas Nethercote [Fri, 18 Oct 2019 05:05:14 +0000 (16:05 +1100)]
Remove `Copy` and `Clone` impls for `LocalInternedString`.

They aren't used.

4 years agoPoint at enclosing function without `self` receiver
Esteban Küber [Fri, 18 Oct 2019 03:26:21 +0000 (20:26 -0700)]
Point at enclosing function without `self` receiver

4 years agoFix cast of stx_btime.tv_nsec
oxalica [Fri, 18 Oct 2019 02:19:50 +0000 (10:19 +0800)]
Fix cast of stx_btime.tv_nsec

4 years agoFix cfgs for current libc
oxalica [Sun, 13 Oct 2019 23:17:15 +0000 (07:17 +0800)]
Fix cfgs for current libc

4 years agoPrefer statx on linux if available
oxalica [Fri, 4 Oct 2019 08:17:23 +0000 (16:17 +0800)]
Prefer statx on linux if available

4 years agoChange how `Symbol::Debug` works.
Nicholas Nethercote [Thu, 17 Oct 2019 23:06:23 +0000 (10:06 +1100)]
Change how `Symbol::Debug` works.

Currently, `Symbol::Debug` and `Symbol::Display` produce the same
output; neither wraps the symbol in double quotes.

This commit changes `Symbol::Debug` so it wraps the symbol in quotes.
This change brings `Symbol`'s behaviour in line with `String` and
`InternedString`. The change requires a couple of trivial test output
adjustments.

4 years agoUse `with` in `Symbol` trait methods.
Nicholas Nethercote [Thu, 17 Oct 2019 22:24:56 +0000 (09:24 +1100)]
Use `with` in `Symbol` trait methods.

Instead of `as_str()`, which unnecessarily involves `LocalInternedString`.

4 years agoChange `MetaItem::tokens()` to `MetaItem::token_trees_and_joints()`.
Nicholas Nethercote [Mon, 14 Oct 2019 03:06:00 +0000 (14:06 +1100)]
Change `MetaItem::tokens()` to `MetaItem::token_trees_and_joints()`.

Likewise for `NestedMetaItem::tokens()`. Also, add
`MetaItemKind::token_trees_and_joints()`, which `MetaItemKind::tokens()`
now calls.

This avoids some unnecessary `TokenTree` to `TokenStream` conversions,
and removes the need for the clumsy
`TokenStream::append_to_tree_and_joint_vec()`.

4 years agoChange `Lit::tokens()` to `Lit::token_tree()`.
Nicholas Nethercote [Mon, 14 Oct 2019 00:24:46 +0000 (11:24 +1100)]
Change `Lit::tokens()` to `Lit::token_tree()`.

Because most of the call sites have an easier time working with a
`TokenTree` instead of a `TokenStream`.

4 years agoMake `TokenStream::from_iter` less general and more efficient.
Nicholas Nethercote [Sun, 13 Oct 2019 23:37:21 +0000 (10:37 +1100)]
Make `TokenStream::from_iter` less general and more efficient.

The current code has this impl:
```
impl<T: Into<TokenStream>> iter::FromIterator<T> for TokenStream
```
If given an `IntoIterator<Item = TokenTree>`, it will convert each individual
`TokenTree` to a `TokenStream` (at the cost of two allocations: a `Vec`
and an `Lrc`). It will then merge those `TokenStream`s into a single
`TokenStream`. This is inefficient.

This commit changes the impl to this less general one:
```
impl iter::FromIterator<TokenTree> for TokenStream
```
It collects the `TokenTree`s into a single `Vec` first and then converts that
to a `TokenStream` by wrapping it in a single `Lrc`. The previous generality
was unnecessary; no other code needs changing.

This change speeds up several benchmarks by up to 4%.

4 years agoRemove two no-op `into()` calls.
Nicholas Nethercote [Tue, 15 Oct 2019 22:30:28 +0000 (09:30 +1100)]
Remove two no-op `into()` calls.

4 years agoAuto merge of #65533 - Manishearth:clippyup, r=Manishearth
bors [Fri, 18 Oct 2019 02:15:07 +0000 (02:15 +0000)]
Auto merge of #65533 - Manishearth:clippyup, r=Manishearth

Update clippy

None

4 years agoAdd process_* place hooks to improve code reutilization
Santiago Pastorino [Tue, 8 Oct 2019 18:33:19 +0000 (15:33 -0300)]
Add process_* place hooks to improve code reutilization

4 years agoSetup a different visit place set of methods for mutable and immutable visitors
Santiago Pastorino [Tue, 8 Oct 2019 15:16:26 +0000 (12:16 -0300)]
Setup a different visit place set of methods for mutable and immutable visitors

In particular, use a blank visit_place for mutable visitor to be sure,
non modified visitors are not trying to mutating place.

4 years agoRemove unneeded callback and just use the new_local value
Santiago Pastorino [Tue, 8 Oct 2019 03:33:47 +0000 (00:33 -0300)]
Remove unneeded callback and just use the new_local value

4 years agoPrepare def_use MutVisitor to have projections interned
Santiago Pastorino [Tue, 8 Oct 2019 03:24:18 +0000 (00:24 -0300)]
Prepare def_use MutVisitor to have projections interned

4 years agoPrepare erase_regions MutVisitor to have projections interned
Santiago Pastorino [Mon, 7 Oct 2019 22:35:41 +0000 (19:35 -0300)]
Prepare erase_regions MutVisitor to have projections interned

4 years agoPrepare generator MutVisitor to have projections interned
Santiago Pastorino [Mon, 7 Oct 2019 22:14:35 +0000 (19:14 -0300)]
Prepare generator MutVisitor to have projections interned

4 years agoPrepare inline MutVisitor to have projections interned
Santiago Pastorino [Mon, 7 Oct 2019 21:23:39 +0000 (18:23 -0300)]
Prepare inline MutVisitor to have projections interned

4 years agoPrepare renumber MutVisitor to have projections interned
Santiago Pastorino [Mon, 7 Oct 2019 21:15:19 +0000 (18:15 -0300)]
Prepare renumber MutVisitor to have projections interned

4 years agoPrepare simplify MutVisitor to have projections interned
Santiago Pastorino [Mon, 7 Oct 2019 20:58:28 +0000 (17:58 -0300)]
Prepare simplify MutVisitor to have projections interned

4 years agoPrepare promote_consts MutVisitor to have projections interned
Santiago Pastorino [Mon, 7 Oct 2019 19:39:20 +0000 (16:39 -0300)]
Prepare promote_consts MutVisitor to have projections interned

4 years agosuper_ty on MutVisitor is empty so avoid the call
Santiago Pastorino [Mon, 7 Oct 2019 22:36:48 +0000 (19:36 -0300)]
super_ty on MutVisitor is empty so avoid the call

4 years agoRefer to "associated functions" instead of "static methods"
Esteban Küber [Fri, 18 Oct 2019 02:00:19 +0000 (19:00 -0700)]
Refer to "associated functions" instead of "static methods"

4 years agorustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct.
Eduard-Mihai Burtescu [Fri, 18 Oct 2019 00:14:57 +0000 (03:14 +0300)]
rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct.

4 years agoUpdate clippy
Manish Goregaokar [Thu, 17 Oct 2019 23:59:10 +0000 (16:59 -0700)]
Update clippy

4 years agoDon't add `argc` and `argv` arguments to `main` on WASI.
Dan Gohman [Thu, 17 Oct 2019 23:09:32 +0000 (16:09 -0700)]
Don't add `argc` and `argv` arguments to `main` on WASI.

Add a target setting to allow targets to specify whether the generated
`main` function should be passed `argc` and `argv` arguments. Set it
to false on wasm32-wasi, since WASI's `args::args()` calls into the
WASI APIs itself. This will allow the WASI toolchain to avoid linking
and running command-line argument initialization code when the arguments
aren't actually needed.

4 years agodoc: make BitSet intro more short
Tshepang Lekhonkhobe [Thu, 17 Oct 2019 23:16:30 +0000 (01:16 +0200)]
doc: make BitSet intro more short

Also, add a link to the growable type

4 years agoBTreeSet symmetric_difference & union optimized, cleaned
Stein Somers [Tue, 8 Oct 2019 23:07:57 +0000 (01:07 +0200)]
BTreeSet symmetric_difference & union optimized, cleaned

4 years agoexample for padding any format
Ralf Jung [Thu, 17 Oct 2019 21:00:46 +0000 (23:00 +0200)]
example for padding any format

4 years agoUpdate triagebot.toml
Niko Matsakis [Thu, 17 Oct 2019 20:53:47 +0000 (16:53 -0400)]
Update triagebot.toml

Co-Authored-By: Mark Rousskov <mark.simulacrum@gmail.com>
4 years agoreorder fmt docs for more clarity
Ralf Jung [Thu, 17 Oct 2019 19:22:46 +0000 (21:22 +0200)]
reorder fmt docs for more clarity

4 years agoAuto merge of #65495 - Centril:rollup-tguwjt5, r=Centril
bors [Thu, 17 Oct 2019 18:53:10 +0000 (18:53 +0000)]
Auto merge of #65495 - Centril:rollup-tguwjt5, r=Centril

Rollup of 8 pull requests

Successful merges:

 - #65237 (Move debug_map assertions after check for err)
 - #65316 (make File::try_clone produce non-inheritable handles on Windows)
 - #65319 (InterpCx: make memory field public)
 - #65461 (Don't recommend ONCE_INIT in std::sync::Once)
 - #65465 (Move syntax::ext to a syntax_expand and refactor some attribute logic)
 - #65475 (add example for type_name)
 - #65478 (fmt::Write is about string slices, not byte slices)
 - #65486 (doc: fix typo in OsStrExt and OsStringExt)

Failed merges:

r? @ghost

4 years agosave-analysis: Add a relevant test case
Igor Matuszewski [Thu, 17 Oct 2019 18:49:06 +0000 (20:49 +0200)]
save-analysis: Add a relevant test case

4 years agosave-analysis: Nest tables when processing impl items
Igor Matuszewski [Thu, 17 Oct 2019 18:48:00 +0000 (20:48 +0200)]
save-analysis: Nest tables when processing impl items

4 years agoadd option to ping llvm ice-breakers to triagebot
Niko Matsakis [Thu, 17 Oct 2019 18:15:59 +0000 (14:15 -0400)]
add option to ping llvm ice-breakers to triagebot

4 years agomore consistency and clarification
Ralf Jung [Thu, 17 Oct 2019 17:51:42 +0000 (19:51 +0200)]
more consistency and clarification

4 years agoRc: value -> allocation
Ralf Jung [Thu, 17 Oct 2019 17:37:05 +0000 (19:37 +0200)]
Rc: value -> allocation

4 years agoAuto merge of #64595 - Mark-Simulacrum:trivial-query, r=pnkfelix
bors [Thu, 17 Oct 2019 14:42:24 +0000 (14:42 +0000)]
Auto merge of #64595 - Mark-Simulacrum:trivial-query, r=pnkfelix

Optimize dropck

This does two things: caches the `trivial_dropck` check by making it a query, and shifts around the implementation of the primary dropck itself to avoid allocating many small vectors.

4 years agoPlugins deprecation: don’t suggest simply removing the attribute
Simon Sapin [Thu, 17 Oct 2019 11:51:46 +0000 (13:51 +0200)]
Plugins deprecation: don’t suggest simply removing the attribute

Building Servo with a recent Nightly produces:

```rust
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
  --> components/script/lib.rs:14:1
   |
14 | #![plugin(script_plugins)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
   |
   = note: `#[warn(deprecated)]` on by default
```

First, linking to https://github.com/rust-lang/rust/issues/29597 is not ideal
since there is pretty much no discussion there of the deprecation
and what can be used instead.
This PR changes the link to the deprecation PR which does have more discussion.

Second, the “remove this attribute” suggestion is rather unhelpful.
Just because a feature is deprecated doesn’t mean that simply removing its use
without a replacement is acceptable.

In the case of custom lint, there is no replacement available.
Prefixing a message with “help:” when telling users that they’re screwed
honestly feels disrespectful.

This PR also changes the message to be more factual.

4 years agoUpdate ui tests
Guillaume Gomez [Thu, 17 Oct 2019 09:06:14 +0000 (11:06 +0200)]
Update ui tests

4 years agoAdd long error explanation for E0584
Guillaume Gomez [Thu, 17 Oct 2019 09:06:06 +0000 (11:06 +0200)]
Add long error explanation for E0584

4 years agoAvoid injecting sanitizer runtimes into staticlibs (#64629).
Christian Holler (:decoder) [Thu, 17 Oct 2019 12:09:49 +0000 (14:09 +0200)]
Avoid injecting sanitizer runtimes into staticlibs (#64629).

4 years agoproperly document panics in div_euclid and rem_euclid
Trevor Spiteri [Thu, 17 Oct 2019 11:53:57 +0000 (13:53 +0200)]
properly document panics in div_euclid and rem_euclid

4 years agoRollup merge of #65486 - mathstuf:osstr-doc-typo, r=TimNN
Mazdak Farrokhzad [Thu, 17 Oct 2019 11:46:15 +0000 (13:46 +0200)]
Rollup merge of #65486 - mathstuf:osstr-doc-typo, r=TimNN

doc: fix typo in OsStrExt and OsStringExt

4 years agoRollup merge of #65478 - RalfJung:write, r=jonas-schievink
Mazdak Farrokhzad [Thu, 17 Oct 2019 11:46:13 +0000 (13:46 +0200)]
Rollup merge of #65478 - RalfJung:write, r=jonas-schievink

fmt::Write is about string slices, not byte slices

No idea why the docs talk about bytes, maybe a copy-paste error?

4 years agoRollup merge of #65475 - lzutao:eg_type_name, r=Centril
Mazdak Farrokhzad [Thu, 17 Oct 2019 11:46:12 +0000 (13:46 +0200)]
Rollup merge of #65475 - lzutao:eg_type_name, r=Centril

add example for type_name

So users of this function could at least expect what its output for current compiler version.

4 years agoRollup merge of #65465 - Centril:split-syntax-1, r=petrochenkov
Mazdak Farrokhzad [Thu, 17 Oct 2019 11:46:11 +0000 (13:46 +0200)]
Rollup merge of #65465 - Centril:split-syntax-1, r=petrochenkov

Move syntax::ext to a syntax_expand and refactor some attribute logic

Part of https://github.com/rust-lang/rust/pull/65324.

r? @petrochenkov

4 years agoRollup merge of #65461 - Kampfkarren:patch-1, r=Centril
Mazdak Farrokhzad [Thu, 17 Oct 2019 11:46:09 +0000 (13:46 +0200)]
Rollup merge of #65461 - Kampfkarren:patch-1, r=Centril

Don't recommend ONCE_INIT in std::sync::Once

ONCE_INIT is deprecated, and so suggesting it as not only being on par with, but before `Once::new` is a bad idea.

4 years agoRollup merge of #65319 - RalfJung:memory, r=Centril
Mazdak Farrokhzad [Thu, 17 Oct 2019 11:46:06 +0000 (13:46 +0200)]
Rollup merge of #65319 - RalfJung:memory, r=Centril

InterpCx: make memory field public

I made this field private forever ago because I thought sealing things might be nice. But with the `memory_mut` getter it doesn't actually seal anything, and it's not like we need to invalidate caches on writes to memory or so. And moreover, having to use the getters leads to some annoying borrow checking interactions.

So, let's just make it public (again).

r? @oli-obk

4 years agoRollup merge of #65316 - oconnor663:noninheritable, r=alexcrichton
Mazdak Farrokhzad [Thu, 17 Oct 2019 11:46:04 +0000 (13:46 +0200)]
Rollup merge of #65316 - oconnor663:noninheritable, r=alexcrichton

make File::try_clone produce non-inheritable handles on Windows

~**NOT READY FOR REVIEW.** This PR is currently mainly to trigger CI so that I can see what happens. (Is there a better way to trigger CI?) I don't know whether this change makes sense yet.~ (Edit: @Mark-Simulacrum clarified that CI doesn't currently run on Windows.)

---

File handles shouldn't be inheritable in general.
`std::process::Command` takes care of making them inheritable when child
processes are spawned, and the `CREATE_PROCESS_LOCK` protects against
races in that section on Windows. But `File::try_clone` has been
creating inheritable file descriptors outside of that lock, which could
be leaking into other child processes unintentionally.

See also https://github.com/rust-lang/rust/pull/31069#discussion_r334117665.

4 years agoRollup merge of #65237 - KodrAus:fix/map-entry-err, r=sfackler
Mazdak Farrokhzad [Thu, 17 Oct 2019 11:46:03 +0000 (13:46 +0200)]
Rollup merge of #65237 - KodrAus:fix/map-entry-err, r=sfackler

Move debug_map assertions after check for err

Fixes #65231

We have some assertions in `DebugMap` to catch broken implementations of `Debug` that produce malformed entries. These checks don't make sense if formatting fails partway through. This PR moves those assertions to within the `and_then` closures along with the other formatting logic, so they're only checked if the map hasn't failed to format an entry already.

4 years agoAuto merge of #59953 - eddyb:soa-metadata, r=michaelwoerister
bors [Thu, 17 Oct 2019 10:45:09 +0000 (10:45 +0000)]
Auto merge of #59953 - eddyb:soa-metadata, r=michaelwoerister

 rustc_metadata: replace Entry table with one table for each of its fields (AoS -> SoA).

In https://github.com/rust-lang/rust/pull/59789#issuecomment-481958212 I noticed that for many cross-crate queries (e.g. `predicates_of(def_id)`), we were deserializing the `rustc_metadata::schema::Entry` for `def_id` *only* to read one field (i.e. `predicates`).

But there are several such queries, and `Entry` is not particularly small (in terms of number of fields, the encoding itself is quite compact), so there is a large (and unnecessary) constant factor.

This PR replaces the (random-access) array¹ of `Entry` structures ("AoS"), with many separate arrays¹, one for each field that used to be in `Entry` ("SoA"), resulting in the ability to read individual fields separately, with negligible time overhead (in thoery), and some size overhead (as these arrays are not sparse).

In a way, the new approach is closer to incremental on-disk caches, which store each query's cached results separately, but it would take significantly more work to unify the two.

For stage1 `libcore`'s metadata blob, the size overhead is `8.44%`, and I have another commit (~~not initially included because I want to do perf runs with both~~ **EDIT**: added it now) that brings it down to `5.88%`.

¹(in the source, these arrays are called "tables", but perhaps they could use a better name)

4 years agoUpdate emscripten functions declarations
Mateusz Mikuła [Thu, 17 Oct 2019 10:09:11 +0000 (12:09 +0200)]
Update emscripten functions declarations

4 years agoUpdate ui tests
Guillaume Gomez [Sat, 12 Oct 2019 12:48:28 +0000 (14:48 +0200)]
Update ui tests

4 years agoAdd long error explanation for E0575
Guillaume Gomez [Sat, 12 Oct 2019 12:48:20 +0000 (14:48 +0200)]
Add long error explanation for E0575

4 years agoshow up some extra info when t!() fails
Guanqun Lu [Thu, 17 Oct 2019 08:57:46 +0000 (16:57 +0800)]
show up some extra info when t!() fails

4 years agoAuto merge of #65251 - tlively:emscripten-upstream-upgrade, r=tlively
bors [Thu, 17 Oct 2019 06:47:18 +0000 (06:47 +0000)]
Auto merge of #65251 - tlively:emscripten-upstream-upgrade, r=tlively

Upgrade Emscripten targets to use upstream LLVM backend

 - Compatible with Emscripten 1.38.46-upstream or later upstream.
 - Refactors the Emscripten target spec to share code with other wasm
   targets.
 - Replaces the old incorrect wasm32 C call ABI with the correct one,
   preserving the old one as wasm32_bindgen_compat for wasm-bindgen
   compatibility.
 - Updates the varargs ABI used by Emscripten and deletes the old one.
 - Removes the obsolete wasm32-experimental-emscripten target.
 - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649.

r? @alexcrichton

4 years agoRemove PR runs, enable wasm32 CI, and move asmjs to disabled
Thomas Lively [Thu, 17 Oct 2019 04:18:34 +0000 (21:18 -0700)]
Remove PR runs, enable wasm32 CI, and move asmjs to disabled

4 years agoUse a sharded dep node to dep node index map
John Kåre Alsaker [Thu, 13 Jun 2019 21:14:44 +0000 (23:14 +0200)]
Use a sharded dep node to dep node index map

4 years agodoc: fix typo in OsStrExt and OsStringExt
Ben Boeckel [Thu, 17 Oct 2019 02:22:19 +0000 (22:22 -0400)]
doc: fix typo in OsStrExt and OsStringExt

4 years agoAuto merge of #65234 - GuillaumeGomez:long-err-explanation-E0573, r=kinnison
bors [Thu, 17 Oct 2019 02:04:49 +0000 (02:04 +0000)]
Auto merge of #65234 - GuillaumeGomez:long-err-explanation-E0573, r=kinnison

Add long error explanation for E0573

Part of #61137.

4 years agoSuppress validation mismatch ICE in the presence of mut borrows
Dylan MacKenzie [Thu, 17 Oct 2019 01:01:26 +0000 (18:01 -0700)]
Suppress validation mismatch ICE in the presence of mut borrows

4 years agoEnable `drain_filter`
Dylan MacKenzie [Thu, 17 Oct 2019 01:01:01 +0000 (18:01 -0700)]
Enable `drain_filter`

4 years agoAdd regression test for #65394
Dylan MacKenzie [Thu, 17 Oct 2019 01:00:44 +0000 (18:00 -0700)]
Add regression test for #65394

4 years agoUser should not change between emcc install and use
Thomas Lively [Thu, 17 Oct 2019 00:06:34 +0000 (17:06 -0700)]
User should not change between emcc install and use

4 years agoUpdate test expectations
Thomas Lively [Mon, 14 Oct 2019 21:19:53 +0000 (14:19 -0700)]
Update test expectations

4 years agoUpdate test and add -O1 to wasm32 Dockerfile
Thomas Lively [Sat, 12 Oct 2019 00:14:48 +0000 (17:14 -0700)]
Update test and add -O1 to wasm32 Dockerfile

4 years agoTemporarily enable asmjs and wasm32 on PR CI
Thomas Lively [Wed, 9 Oct 2019 21:17:48 +0000 (14:17 -0700)]
Temporarily enable asmjs and wasm32 on PR CI

4 years agoUpgrade Emscripten targets to use upstream LLVM backend
Thomas Lively [Sat, 17 Aug 2019 05:08:01 +0000 (22:08 -0700)]
Upgrade Emscripten targets to use upstream LLVM backend

 - Compatible with Emscripten 1.38.46-upstream or later upstream.
 - Refactors the Emscripten target spec to share code with other wasm
   targets.
 - Replaces the old incorrect wasm32 C call ABI with the correct one,
   preserving the old one as wasm32_bindgen_compat for wasm-bindgen
   compatibility.
 - Updates the varargs ABI used by Emscripten and deletes the old one.
 - Removes the obsolete wasm32-experimental-emscripten target.
 - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649.

4 years agoInline and remove `iterate_until_fixed_point()`.
Nicholas Nethercote [Wed, 16 Oct 2019 22:30:25 +0000 (09:30 +1100)]
Inline and remove `iterate_until_fixed_point()`.

The commit also removes the debug statement, because they annoyed me.
This change wins another 1% on `unicode_normalization`, at least partly
because it no longer needs to increment `iteration`.

4 years agofmt::Write is about string slices, not byte slices
Ralf Jung [Wed, 16 Oct 2019 21:24:38 +0000 (23:24 +0200)]
fmt::Write is about string slices, not byte slices

4 years agopanictry!(..) -> .unwrap()
Mazdak Farrokhzad [Wed, 16 Oct 2019 17:22:56 +0000 (19:22 +0200)]
panictry!(..) -> .unwrap()

4 years agoAuto merge of #63756 - Zoxc:sharded-dep-graph-1, r=nikomatsakis
bors [Wed, 16 Oct 2019 20:49:27 +0000 (20:49 +0000)]
Auto merge of #63756 - Zoxc:sharded-dep-graph-1, r=nikomatsakis

Use more fine grained locks for the dep graph

Split out from https://github.com/rust-lang/rust/pull/61845.

r? @michaelwoerister cc @aturon

4 years agoUse a `BitSet` in `LexicalResolver::iterate_until_fixed_point()`.
Nicholas Nethercote [Tue, 15 Oct 2019 04:16:51 +0000 (15:16 +1100)]
Use a `BitSet` in `LexicalResolver::iterate_until_fixed_point()`.

This wins 3% on `unicode_normalization`.

4 years agoLint only on single element overlap
Esteban Küber [Wed, 16 Oct 2019 19:22:23 +0000 (12:22 -0700)]
Lint only on single element overlap

4 years agoOnly emit overlapping patterns lint if the overlap is partial
Esteban Küber [Mon, 7 Oct 2019 04:47:01 +0000 (21:47 -0700)]
Only emit overlapping patterns lint if the overlap is partial

4 years agoContinue to emit unreachable pattern on cases caught by overlapping patterns
Esteban Küber [Fri, 30 Aug 2019 20:37:59 +0000 (13:37 -0700)]
Continue to emit unreachable pattern on cases caught by overlapping patterns

4 years agorename method
Esteban Küber [Fri, 30 Aug 2019 01:00:29 +0000 (18:00 -0700)]
rename method

4 years agoDeduplicate code for formatting `RangeEnd`
Esteban Küber [Fri, 30 Aug 2019 00:42:45 +0000 (17:42 -0700)]
Deduplicate code for formatting `RangeEnd`

4 years agoreview comments: use if let
Esteban Küber [Fri, 30 Aug 2019 00:41:41 +0000 (17:41 -0700)]
review comments: use if let

4 years agoMove lint emitter to its own method
Esteban Küber [Fri, 30 Aug 2019 00:41:25 +0000 (17:41 -0700)]
Move lint emitter to its own method

4 years agoSilence lint in `fit_signed` and `fit_unsigned`
Esteban Küber [Fri, 30 Aug 2019 00:20:20 +0000 (17:20 -0700)]
Silence lint in `fit_signed` and `fit_unsigned`

4 years agoMove overlapping patterns to its own lint
Esteban Küber [Fri, 30 Aug 2019 00:16:39 +0000 (17:16 -0700)]
Move overlapping patterns to its own lint

4 years agoAdd check for overlapping ranges to unreachable patterns lint
Esteban Küber [Thu, 29 Aug 2019 23:06:44 +0000 (16:06 -0700)]
Add check for overlapping ranges to unreachable patterns lint

4 years agoUninitialized boxes: check for zero-size allocation based on Layout::size
Simon Sapin [Wed, 16 Oct 2019 18:32:58 +0000 (20:32 +0200)]
Uninitialized boxes: check for zero-size allocation based on Layout::size

4 years agoadd example for type_name
Lzu Tao [Wed, 16 Oct 2019 16:50:07 +0000 (16:50 +0000)]
add example for type_name

4 years agoAuto merge of #65445 - ehuss:update-cargo-books, r=alexcrichton
bors [Wed, 16 Oct 2019 16:48:44 +0000 (16:48 +0000)]
Auto merge of #65445 - ehuss:update-cargo-books, r=alexcrichton

Update cargo, books

## nomicon

3 commits in 4374786f0b4bf0606b35d5c30a9681f342e5707b..5004ad30d69f93553ceef74439fea2159d1f769e
2019-09-17 18:33:21 +0200 to 2019-10-12 19:52:40 +0200
- further clarify C11 and C/C++11 terminology (rust-lang-nursery/nomicon#169)
- atomics: C11 -&gt; C++20 (rust-lang-nursery/nomicon#168)
- use sound/unsound terminology

## cargo

12 commits in a429e8cc4614a46a86322a0777a477e2baa83f1c..3a9abe3f065554a7fbc59f440df2baba4a6e47ee
2019-10-04 17:36:12 +0000 to 2019-10-15 15:55:35 +0000
- Fix typo in git index initialization error path (rust-lang/cargo#7512)
- Reject feature flags in a virtual workspace. (rust-lang/cargo#7507)
- Rename `overrides` to `package` in profiles. (rust-lang/cargo#7504)
- Allow publishing with dev-dependencies without a version. (rust-lang/cargo#7333)
- Stabilize cache-messages (rust-lang/cargo#7450)
- don't lock the package cache when cleaning target dir. (rust-lang/cargo#7502)
- Document rustc wrapper (rust-lang/cargo#7499)
- Migrate towards exclusively using serde for `Config` (rust-lang/cargo#7456)
- Re-enable some MSVC tests. (rust-lang/cargo#7492)
- when -Z unstable-options not specified, don't validate --profile (rust-lang/cargo#7489)
- Improve error message for cyclic dependencies (rust-lang/cargo#7470)
- Some minor clippy fixes. (rust-lang/cargo#7484)

## book

7 commits in 04806c80be0f54b1290287e3f85e84bdfc0b6ec7..9bb8b161963fcebc9d9ccd732ba26f42108016d5
2019-10-01 20:20:22 -0400 to 2019-10-14 18:42:55 -0500
- Make a portion of text less ambiguous (rust-lang/book#2092)
- fix heading level (rust-lang/book#2117)
- Add missing "of" before `"duck typing"`. (rust-lang/book#1951)
- ch18-03: no need to debug print destructured int (rust-lang/book#1991)
- Subtle fix to introduce ? on Option in Chapter 9.2 (rust-lang/book#2047)
- make wording clearer (rust-lang/book#1976)
- Update the version of rand we use

## rust-by-example

5 commits in a6288e7407a6c4c19ea29de6d43f40c803883f21..0b111eaae36cc4b4997684be853882a59e2c7ca7
2019-10-01 10:09:14 -0300 to 2019-10-14 18:34:25 -0300
- Some fix to three files (rust-lang/rust-by-example#1280)
- Add reference to Generics (rust-lang/rust-by-example#1281)
- Confusing and long sentence (rust-lang/rust-by-example#1282)
- Explicit mention of slice range meaning (rust-lang/rust-by-example#1277)
- Updated aliasing for nll (rust-lang/rust-by-example#1276)

4 years agoui-fulldeps: make them pass again?
Mazdak Farrokhzad [Wed, 16 Oct 2019 11:23:46 +0000 (13:23 +0200)]
ui-fulldeps: make them pass again?

4 years agoMirror crosstool-ng on rust-lang-ci-mirrors
msizanoen [Wed, 16 Oct 2019 14:34:17 +0000 (21:34 +0700)]
Mirror crosstool-ng on rust-lang-ci-mirrors