]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoRemove note about transmute for float bitpatterns.
Scott Olson [Thu, 11 Apr 2019 13:56:35 +0000 (07:56 -0600)]
Remove note about transmute for float bitpatterns.

5 years agoAuto merge of #53530 - kennytm:rollup, r=kennytm
bors [Tue, 21 Aug 2018 16:04:11 +0000 (16:04 +0000)]
Auto merge of #53530 - kennytm:rollup, r=kennytm

Rollup of 17 pull requests

Successful merges:

 - #53030 (Updated RELEASES.md for 1.29.0)
 - #53104 (expand the documentation on the `Unpin` trait)
 - #53213 (Stabilize IP associated constants)
 - #53296 (When closure with no arguments was expected, suggest wrapping)
 - #53329 (Replace usages of ptr::offset with ptr::{add,sub}.)
 - #53363 (add individual docs to `core::num::NonZero*`)
 - #53370 (Stabilize macro_vis_matcher)
 - #53393 (Mark libserialize functions as inline)
 - #53405 (restore the page title after escaping out of a search)
 - #53452 (Change target triple used to check for lldb in build-manifest)
 - #53462 (Document Box::into_raw returns non-null ptr)
 - #53465 (Remove LinkMeta struct)
 - #53492 (update lld submodule to include RISCV patch)
 - #53496 (Fix typos found by codespell.)
 - #53521 (syntax: Optimize some literal parsing)
 - #53540 (Moved issue-53157.rs into src/test/ui/consts/const-eval/)
 - #53551 (Avoid some Place clones.)

Failed merges:

r? @ghost

5 years agoRollup merge of #53551 - nnethercote:access_place_error_reported, r=varkor
kennytm [Tue, 21 Aug 2018 14:09:35 +0000 (22:09 +0800)]
Rollup merge of #53551 - nnethercote:access_place_error_reported, r=varkor

Avoid some Place clones.

This is a 0.5% speedup on ripgrep.

5 years agoRollup merge of #53329 - frewsxcv:frewsxcv-ptr-add-sub, r=RalfJung
kennytm [Tue, 21 Aug 2018 14:05:30 +0000 (22:05 +0800)]
Rollup merge of #53329 - frewsxcv:frewsxcv-ptr-add-sub, r=RalfJung

Replace usages of ptr::offset with ptr::{add,sub}.

Rust provides these helper methods – so let's use them!

5 years agoAuto merge of #53236 - alexreg:stabilise-raw-idents, r=cramertj
bors [Tue, 21 Aug 2018 13:52:11 +0000 (13:52 +0000)]
Auto merge of #53236 - alexreg:stabilise-raw-idents, r=cramertj

Stabilise raw_identifiers feature

* [Reference PR](https://github.com/rust-lang-nursery/reference/pull/395)
* [Book PR](https://github.com/rust-lang/book/pull/1480)
* [Rust by Example PR](https://github.com/rust-lang/rust-by-example/pull/1095)

Closes #48589.

r? @cramertj
CC @cuviper @centril

5 years agoRollup merge of #53540 - TheDarkula:move-test, r=oli-obk
kennytm [Tue, 21 Aug 2018 09:48:45 +0000 (17:48 +0800)]
Rollup merge of #53540 - TheDarkula:move-test, r=oli-obk

Moved issue-53157.rs into src/test/ui/consts/const-eval/

5 years agoRollup merge of #53104 - nivkner:unpin_doc, r=RalfJung
kennytm [Tue, 21 Aug 2018 09:47:29 +0000 (17:47 +0800)]
Rollup merge of #53104 - nivkner:unpin_doc, r=RalfJung

expand the documentation on the `Unpin` trait

provides an overview of the Pin API which the trait is for,
and show how it can be used in making self referencial structs

part of #49150

5 years agoRollup merge of #53462 - estk:doc-Box_into_raw, r=steveklabnik
kennytm [Tue, 21 Aug 2018 03:09:03 +0000 (11:09 +0800)]
Rollup merge of #53462 - estk:doc-Box_into_raw, r=steveklabnik

Document Box::into_raw returns non-null ptr

Closes  #52806.

5 years agoRollup merge of #53363 - llogiq:num-individual-nonzero-docs, r=steveklabnik
kennytm [Tue, 21 Aug 2018 03:08:28 +0000 (11:08 +0800)]
Rollup merge of #53363 - llogiq:num-individual-nonzero-docs, r=steveklabnik

add individual docs to `core::num::NonZero*`

5 years agoRollup merge of #53521 - alexcrichton:optimize-lit-token, r=michaelwoerister
kennytm [Tue, 21 Aug 2018 03:07:45 +0000 (11:07 +0800)]
Rollup merge of #53521 - alexcrichton:optimize-lit-token, r=michaelwoerister

syntax: Optimize some literal parsing

Currently in the `wasm-bindgen` project we have a very very large crate that's
procedurally generated, `web-sys`. To generate this crate we parse all of a
browser's WebIDL and we then generate bindings for all of the APIs contained
within.

The resulting Rust file is 18MB large (wow!) and currently takes a very long
time to compile in debug mode. On the nightly compiler a *debug* build takes 90s
for the crate to finish. I was curious what was taking so long and upon
investigating a *massive* portion of the time was spent in the `lit_token`
method of the compiler, primarily formatting strings via `format!`.

Upon some more investigation it looks like the `byte_str_lit` was allocating an
error message once per byte, causing a very large number of allocations to
happen for large literals, of which wasm-bindgen generates quite a few (some are
MB large).

This commit fixes the issue by lazily allocating the error message, only doing
so if the error message is actually needed (which should be never). As a result,
the debug mode compilation time for our `web-sys` crate decreased from 90s to
20s, a very nice improvement! (although we've still got some work to do).

5 years agoRollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkor
kennytm [Mon, 20 Aug 2018 17:20:25 +0000 (01:20 +0800)]
Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkor

Fix typos found by codespell.

5 years agoRollup merge of #53492 - danc86:lld-riscv, r=alexcrichton
kennytm [Mon, 20 Aug 2018 17:20:24 +0000 (01:20 +0800)]
Rollup merge of #53492 - danc86:lld-riscv, r=alexcrichton

update lld submodule to include RISCV patch

This pulls in one new commit, to add support for linking static RISCV
binaries, suitable for the new riscv32imac-unknown-none-elf target.
See: https://github.com/rust-lang/lld/pull/1

5 years agoRollup merge of #53465 - bjorn3:remove_link_meta_struct, r=varkor
kennytm [Mon, 20 Aug 2018 17:20:21 +0000 (01:20 +0800)]
Rollup merge of #53465 - bjorn3:remove_link_meta_struct, r=varkor

Remove LinkMeta struct

Fixes #53291

5 years agoRollup merge of #53452 - tromey:lldb-manifest-fix, r=alexcrichton
kennytm [Mon, 20 Aug 2018 17:20:19 +0000 (01:20 +0800)]
Rollup merge of #53452 - tromey:lldb-manifest-fix, r=alexcrichton

Change target triple used to check for lldb in build-manifest

The wrong target triple was used for lldb in build-manifest.  lldb is
only built for macOS, so update the triple to reflect that.

This is an attempt to fix bug#48168.

5 years agoRollup merge of #53405 - oconnor663:search_esc, r=GuillaumeGomez
kennytm [Mon, 20 Aug 2018 17:20:18 +0000 (01:20 +0800)]
Rollup merge of #53405 - oconnor663:search_esc, r=GuillaumeGomez

restore the page title after escaping out of a search

Currently if I start a search in the docs, but then hit ESC, the "Results for..." title is still there in my browser tab. This is a simple attempt to fix that. I see that there's a separate `var previousTitle = document.title` thing happening in `startSearch()`, but as far as I can tell that's only related to the back stack? I'd also appreciate feedback on the right place to declare the `titleBeforeSearch` variable.

Testing-wise, I've confirmed by hand that the tab title restores correctly after building with `./x.py doc --stage 1 src/libstd`, but nothing more involved than that. What else should I test?

5 years agoRollup merge of #53393 - BurntPizza:serialize-inlines, r=alexcrichton
kennytm [Mon, 20 Aug 2018 17:20:16 +0000 (01:20 +0800)]
Rollup merge of #53393 - BurntPizza:serialize-inlines, r=alexcrichton

Mark libserialize functions as inline

Got to thinking: "what if that big pile of tiny functions isn't inlining as it should?"
So a few `replace-regex` later the local perf run says this:
<details>

![](https://i.imgur.com/gvdJEgG.png)
</details>
Not huge, but still a win, which is interesting. Want to verify with the real perf run, but I understand there's a backlog.

I didn't notice any increase in compile time or binary sizes for rustc/libs.

5 years agoRollup merge of #53370 - jkozlowski:stabilize-macro_vis_matcher, r=cramertj
kennytm [Mon, 20 Aug 2018 17:20:15 +0000 (01:20 +0800)]
Rollup merge of #53370 - jkozlowski:stabilize-macro_vis_matcher, r=cramertj

Stabilize macro_vis_matcher

This PR should stabilize [macro_vis_matcher](https://github.com/rust-lang/rust/issues/41022) feature.

- [ ] "reference" book changes: https://github.com/rust-lang-nursery/reference/pull/400
- [ ] "Rust by example" book changes: https://github.com/rust-lang/rust-by-example/pull/1096
- [ ] "clippy" changes: https://github.com/rust-lang-nursery/rust-clippy/pull/3055

r? @cramertj

5 years agoAvoid some Place clones.
Nicholas Nethercote [Tue, 21 Aug 2018 08:06:55 +0000 (18:06 +1000)]
Avoid some Place clones.

This is a 0.5% speedup on ripgrep.

5 years agoAuto merge of #53080 - hermord:rc-opt, r=alexcrichton
bors [Tue, 21 Aug 2018 06:40:20 +0000 (06:40 +0000)]
Auto merge of #53080 - hermord:rc-opt, r=alexcrichton

Change `Rc::inc_{weak,strong}` to better hint optimization to LLVM

As discussed in #13018, `Rc::inc_strong` and `Rc::inc_weak` are changed to allow compositions of `clone` and `drop` to be better optimized. Almost entirely as in [this comment](https://github.com/rust-lang/rust/issues/13018#issuecomment-408642184), except that `abort` on zero is added so that a `drop(t.clone())` does not produce a zero check followed by conditional deallocation.

This is different from #21418 in that it doesn't rely on `assume`, avoiding the prohibitive compilation slowdown.

[Before and after IR](https://gist.github.com/hermord/266e55451b7fe0bb8caa6e35d17c86e1).

5 years agoMoved issue-53157.rs into src/test/ui/consts/const-eval/
thedarkula [Mon, 20 Aug 2018 19:02:34 +0000 (20:02 +0100)]
Moved issue-53157.rs into src/test/ui/consts/const-eval/

5 years agoRemoved `raw_identifiers` feature gate.
Alexander Regueiro [Thu, 9 Aug 2018 20:51:12 +0000 (21:51 +0100)]
Removed `raw_identifiers` feature gate.

5 years agosyntax: Optimize some literal parsing
Alex Crichton [Mon, 20 Aug 2018 04:25:08 +0000 (21:25 -0700)]
syntax: Optimize some literal parsing

Currently in the `wasm-bindgen` project we have a very very large crate that's
procedurally generated, `web-sys`. To generate this crate we parse all of a
browser's WebIDL and we then generate bindings for all of the APIs contained
within.

The resulting Rust file is 18MB large (wow!) and currently takes a very long
time to compile in debug mode. On the nightly compiler a *debug* build takes 90s
for the crate to finish. I was curious what was taking so long and upon
investigating a *massive* portion of the time was spent in the `lit_token`
method of the compiler, primarily formatting strings via `format!`.

Upon some more investigation it looks like the `byte_str_lit` was allocating an
error message once per byte, causing a very large number of allocations to
happen for large literals, of which wasm-bindgen generates quite a few (some are
MB large).

This commit fixes the issue by lazily allocating the error message, only doing
so if the error message is actually needed (which should be never). As a result,
the debug mode compilation time for our `web-sys` crate decreased from 90s to
20s, a very nice improvement! (although we've still got some work to do).

5 years agoRollup merge of #53296 - estebank:suggest-closure, r=KodrAus
kennytm [Mon, 20 Aug 2018 17:20:12 +0000 (01:20 +0800)]
Rollup merge of #53296 - estebank:suggest-closure, r=KodrAus

When closure with no arguments was expected, suggest wrapping

Fix #49694.

5 years agoRollup merge of #53213 - tmccombs:stable-ipconstructors, r=KodrAus
kennytm [Mon, 20 Aug 2018 17:20:10 +0000 (01:20 +0800)]
Rollup merge of #53213 - tmccombs:stable-ipconstructors, r=KodrAus

Stabilize IP associated constants

Fixes #44582

5 years agoRollup merge of #53030 - Aaronepower:master, r=Mark-Simulacrum
kennytm [Mon, 20 Aug 2018 17:20:08 +0000 (01:20 +0800)]
Rollup merge of #53030 - Aaronepower:master, r=Mark-Simulacrum

Updated RELEASES.md for 1.29.0

[Rendered](https://github.com/Aaronepower/rust/blob/master/RELEASES.md)

r? @Mark-Simulacrum
cc @rust-lang/release

5 years agoDocument Box::into_raw returns non-null ptr
Evan Simmons [Sat, 18 Aug 2018 03:21:00 +0000 (21:21 -0600)]
Document Box::into_raw returns non-null ptr

5 years agoAuto merge of #51880 - varkor:generics-hir-generalisation-followup, r=eddyb
bors [Mon, 20 Aug 2018 15:47:39 +0000 (15:47 +0000)]
Auto merge of #51880 - varkor:generics-hir-generalisation-followup, r=eddyb

The Great Generics Generalisation: HIR Followup

Addresses the final comments in #48149.

r? @eddyb, but there are a few things I have yet to clean up. Making the PR now to more easily see when things break.

cc @yodaldevoid

5 years agoAdd a test for skipping all arguments versus just one
varkor [Mon, 20 Aug 2018 15:32:59 +0000 (16:32 +0100)]
Add a test for skipping all arguments versus just one

5 years agoFix diagnostic regression
varkor [Mon, 20 Aug 2018 11:52:56 +0000 (12:52 +0100)]
Fix diagnostic regression

5 years agoAdded explicit optimization flag to test
Dmytro Shynkevych [Mon, 20 Aug 2018 15:13:45 +0000 (11:13 -0400)]
Added explicit optimization flag to test

5 years agoRevert accidental submodule change
Dmytro Shynkevych [Mon, 20 Aug 2018 11:45:11 +0000 (07:45 -0400)]
Revert accidental submodule change

5 years agoReplace usages of ptr::offset with ptr::{add,sub}.
Corey Farwell [Mon, 20 Aug 2018 02:16:22 +0000 (22:16 -0400)]
Replace usages of ptr::offset with ptr::{add,sub}.

5 years agoAuto merge of #47562 - Centril:feature/core_convert_id, r=oli-obk
bors [Mon, 20 Aug 2018 09:09:55 +0000 (09:09 +0000)]
Auto merge of #47562 - Centril:feature/core_convert_id, r=oli-obk

Add the identity function as core::convert::identity

## New notes

This implements rust-lang/rfcs#2306 (see https://github.com/rust-lang/rust/issues/53500).

## Old notes (ignore this in new reviews)

Adds the identity function `fn id<T>(x: T) -> T { x }` to core::convert and the prelude.
Some motivations for why this is useful are explained in the doc tests.
Another is that using the identity function instead of `{ x }` or `|x| x` makes it clear that you intended to use an identity conversion on purpose.

The reasoning:
+ behind adding this to `convert` and not `mem` is that this is an identity *conversion*.
+ for adding this to the prelude is that it should be easy enough to use that the ease of writing your own identity function or using a closure `|x| x` doesn't overtake that.

I've separated this out into two feature gates so that the addition to the prelude can be considered and stabilized separately.

cc @bluss

5 years agocore::convert::identity: fix issue number to #53500
Mazdak Farrokhzad [Mon, 20 Aug 2018 07:16:56 +0000 (09:16 +0200)]
core::convert::identity: fix issue number to #53500

5 years agoAuto merge of #53519 - Manishearth:clippyup, r=eddyb
bors [Mon, 20 Aug 2018 06:34:09 +0000 (06:34 +0000)]
Auto merge of #53519 - Manishearth:clippyup, r=eddyb

Update clippy

r? @oli-obk @eddyb

5 years agoRenamed test to match actual issue number
Dmytro Shynkevych [Mon, 20 Aug 2018 06:19:28 +0000 (02:19 -0400)]
Renamed test to match actual issue number

5 years agoUpdate clippy
Manish Goregaokar [Mon, 20 Aug 2018 02:17:24 +0000 (19:17 -0700)]
Update clippy

5 years agoAuto merge of #52101 - japaric:linker-flavor, r=alexcrichton
bors [Mon, 20 Aug 2018 01:12:58 +0000 (01:12 +0000)]
Auto merge of #52101 - japaric:linker-flavor, r=alexcrichton

try to infer linker flavor from linker name and vice versa

This is a second take on PR #50359 that implements the logic proposed in https://github.com/rust-lang/rust/pull/50359#pullrequestreview-116663121

With this change it would become possible to link `thumb*` binaries using GNU's LD on stable as `-C linker=arm-none-eabi-ld` would be enough to change both the linker and the linker flavor from their default values of `arm-none-eabi-gcc` and `gcc`.

To link `thumb*` binaries using rustc's LLD on stable `-Z linker-flavor` would need to be stabilized as `-C linker=rust-lld -Z linker-flavor=ld.lld` are both required to change the linker and the linker flavor, but this PR doesn't propose that. We would probably need some sort of stability guarantee around `rust-lld`'s name and availability to make linking with rustc's LLD truly stable.

With this change it would also be possible to link `thumb*` binaries using a system installed LLD on stable using the `-C linker=ld.lld` flag (provided that `ld.lld` is a symlink to the system installed LLD).

r? @alexcrichton

5 years agoFix ICE
varkor [Sun, 19 Aug 2018 23:39:58 +0000 (00:39 +0100)]
Fix ICE

5 years agoAuto merge of #52953 - dsciarra:mv-codemap-sourcemap, r=petrochenkov
bors [Sun, 19 Aug 2018 23:08:26 +0000 (23:08 +0000)]
Auto merge of #52953 - dsciarra:mv-codemap-sourcemap, r=petrochenkov

Rename CodeMap/FileMap to SourceMap/SourceFile

A first renaming for #51574

5 years agoUpdate new ui tests
varkor [Sun, 19 Aug 2018 23:08:01 +0000 (00:08 +0100)]
Update new ui tests

5 years agofix: preserve msvc linker fallback logic
Jorge Aparicio [Sun, 19 Aug 2018 21:59:20 +0000 (23:59 +0200)]
fix: preserve msvc linker fallback logic

5 years agoTaking a peek
varkor [Sun, 19 Aug 2018 19:33:38 +0000 (20:33 +0100)]
Taking a peek

5 years agoAuto merge of #53316 - tristanburgess:52895_existential_type_ICE, r=oli-obk
bors [Sun, 19 Aug 2018 21:03:12 +0000 (21:03 +0000)]
Auto merge of #53316 - tristanburgess:52895_existential_type_ICE, r=oli-obk

52985: cause cycle err on inf trait normalization

Issue: #52985
 - If an existential type is defined, but no user code infers the
concrete type behind the existential type, normalization would
infinitely recurse on this existential type which is only defined in
terms of itself.
  - Instead of raising an inf recurse error, we cause a cycle error to
help highlight that the issue is that the type is only defined in terms
of itself.
  - Three known potential improvements:
    - If type folding itself was exposed as a query, used by
normalization and other mechanisms, cases that would cause infinite recursion would
automatically cause a cycle error.
    - The span for the cycle error should be improved to point to user
code that fails to allow inference of the concrete type of the existential type,
assuming that this error occurs because no user code can allow inference the
concrete type.
    - A mechanism to extend the cycle error with a helpful note would be nice. Currently,
the error is built and maintained by src/librustc/ty/query/plumbing,
with no known way to extend the information that the error gets built
with.

r? @oli-obk

5 years agofix tidy errors
Donato Sciarra [Sat, 18 Aug 2018 10:14:31 +0000 (12:14 +0200)]
fix tidy errors

5 years agomv CachingCodemapView CachingSourceMapView
Donato Sciarra [Sat, 18 Aug 2018 10:14:25 +0000 (12:14 +0200)]
mv CachingCodemapView CachingSourceMapView

5 years agomv codemap source_map
Donato Sciarra [Sat, 18 Aug 2018 10:14:14 +0000 (12:14 +0200)]
mv codemap source_map

5 years agomv codemap() source_map()
Donato Sciarra [Sat, 18 Aug 2018 10:14:09 +0000 (12:14 +0200)]
mv codemap() source_map()

5 years agomv (mod) codemap source_map
Donato Sciarra [Sat, 18 Aug 2018 10:14:03 +0000 (12:14 +0200)]
mv (mod) codemap source_map

5 years agomv filemap source_file
Donato Sciarra [Sat, 18 Aug 2018 10:13:56 +0000 (12:13 +0200)]
mv filemap source_file

5 years agomv FileMap SourceFile
Donato Sciarra [Sat, 18 Aug 2018 10:13:52 +0000 (12:13 +0200)]
mv FileMap SourceFile

5 years agomv CodeMap SourceMap
Donato Sciarra [Sat, 18 Aug 2018 10:13:35 +0000 (12:13 +0200)]
mv CodeMap SourceMap

5 years agoconvert-id: tests for const gating.
Mazdak Farrokhzad [Sun, 19 Aug 2018 19:06:43 +0000 (21:06 +0200)]
convert-id: tests for const gating.

5 years agoFix some remaining tests
varkor [Wed, 8 Aug 2018 00:46:00 +0000 (01:46 +0100)]
Fix some remaining tests

5 years agoAvoid clone and update documentation
varkor [Wed, 8 Aug 2018 00:18:03 +0000 (01:18 +0100)]
Avoid clone and update documentation

5 years agoRefactor generic argument count check in check/mod.rs
varkor [Tue, 7 Aug 2018 23:38:31 +0000 (00:38 +0100)]
Refactor generic argument count check in check/mod.rs

5 years agoRefactor generic argument count check in method/confirm.rs
varkor [Tue, 7 Aug 2018 23:01:47 +0000 (00:01 +0100)]
Refactor generic argument count check in method/confirm.rs

5 years agoRefactor generic argument count check in astconv
varkor [Tue, 7 Aug 2018 17:53:43 +0000 (18:53 +0100)]
Refactor generic argument count check in astconv

5 years agoAdd Default for GenericParamCount
varkor [Tue, 7 Aug 2018 16:44:30 +0000 (17:44 +0100)]
Add Default for GenericParamCount

5 years agoArgs first, then params
varkor [Tue, 7 Aug 2018 16:01:12 +0000 (17:01 +0100)]
Args first, then params

5 years agoRefactor lock-step
varkor [Tue, 7 Aug 2018 11:28:08 +0000 (12:28 +0100)]
Refactor lock-step

5 years agoClean match statement
varkor [Thu, 2 Aug 2018 17:09:14 +0000 (18:09 +0100)]
Clean match statement

5 years agoConsolidate into create_substs_for_generic_args
varkor [Tue, 24 Jul 2018 16:47:31 +0000 (17:47 +0100)]
Consolidate into create_substs_for_generic_args

5 years agoRevert broken test
varkor [Tue, 24 Jul 2018 12:23:45 +0000 (13:23 +0100)]
Revert broken test

5 years agoRefactor astconv.rs (part ii)
varkor [Tue, 24 Jul 2018 01:59:22 +0000 (02:59 +0100)]
Refactor astconv.rs (part ii)

5 years agoRefactor confirm.rs (part ii)
varkor [Tue, 24 Jul 2018 01:27:18 +0000 (02:27 +0100)]
Refactor confirm.rs (part ii)

5 years agoRefactor mod/check (part viii)
varkor [Tue, 24 Jul 2018 00:43:30 +0000 (01:43 +0100)]
Refactor mod/check (part viii)

5 years agoFix behaviour in error condition
varkor [Mon, 23 Jul 2018 22:55:24 +0000 (23:55 +0100)]
Fix behaviour in error condition

5 years agoRefactor mod/check (part vii)
varkor [Mon, 23 Jul 2018 17:29:16 +0000 (18:29 +0100)]
Refactor mod/check (part vii)

5 years agoMake prohibit_generics take IntoIterators
varkor [Mon, 23 Jul 2018 13:48:37 +0000 (14:48 +0100)]
Make prohibit_generics take IntoIterators

5 years ago"Fix" annoying test
varkor [Tue, 3 Jul 2018 21:24:13 +0000 (22:24 +0100)]
"Fix" annoying test

5 years agoFix confirm.rs
varkor [Tue, 3 Jul 2018 18:55:28 +0000 (19:55 +0100)]
Fix confirm.rs

5 years agoRefactor astconv.rs
varkor [Tue, 3 Jul 2018 18:38:04 +0000 (19:38 +0100)]
Refactor astconv.rs

5 years agoRefactor confirm.rs
varkor [Tue, 3 Jul 2018 16:20:20 +0000 (17:20 +0100)]
Refactor confirm.rs

5 years agoMove lifetime calculation outside loop
varkor [Tue, 3 Jul 2018 15:14:43 +0000 (16:14 +0100)]
Move lifetime calculation outside loop

5 years agoSupress consecutive errors
varkor [Tue, 3 Jul 2018 08:53:46 +0000 (09:53 +0100)]
Supress consecutive errors

5 years agoFix param_idx calculation
varkor [Tue, 3 Jul 2018 07:10:45 +0000 (08:10 +0100)]
Fix param_idx calculation

5 years agoFix integer overflow
varkor [Mon, 2 Jul 2018 17:09:15 +0000 (18:09 +0100)]
Fix integer overflow

5 years agoFix tidy check
varkor [Thu, 28 Jun 2018 21:29:53 +0000 (22:29 +0100)]
Fix tidy check

5 years agoReplace generics_require_inlining with generics.requires_monomorphization
varkor [Thu, 28 Jun 2018 21:13:34 +0000 (22:13 +0100)]
Replace generics_require_inlining with generics.requires_monomorphization

5 years agoRefactor mod/check (part vi)
varkor [Thu, 28 Jun 2018 21:04:51 +0000 (22:04 +0100)]
Refactor mod/check (part vi)

5 years agoRefactor mod/check (part v)
varkor [Tue, 26 Jun 2018 22:34:33 +0000 (23:34 +0100)]
Refactor mod/check (part v)

5 years agoRefactor mod/check (part iv)
varkor [Tue, 26 Jun 2018 22:08:02 +0000 (23:08 +0100)]
Refactor mod/check (part iv)

5 years agoRefactor mod/check (part iii)
varkor [Tue, 26 Jun 2018 19:24:13 +0000 (20:24 +0100)]
Refactor mod/check (part iii)

5 years agoRefactor mod/check (part ii)
varkor [Tue, 26 Jun 2018 18:48:50 +0000 (19:48 +0100)]
Refactor mod/check (part ii)

5 years agoRefactor mod/check (part i)
varkor [Mon, 25 Jun 2018 18:52:50 +0000 (19:52 +0100)]
Refactor mod/check (part i)

5 years agoFix quadratic loop in confirm.rs
varkor [Fri, 22 Jun 2018 23:44:17 +0000 (00:44 +0100)]
Fix quadratic loop in confirm.rs

5 years agoReplace for_each with for
varkor [Fri, 22 Jun 2018 23:33:03 +0000 (00:33 +0100)]
Replace for_each with for

5 years agoAddress minor comments
varkor [Fri, 22 Jun 2018 23:21:35 +0000 (00:21 +0100)]
Address minor comments

5 years agoAuto merge of #53258 - nikomatsakis:issue-53189-optimize-reassignment-immutable-state...
bors [Sun, 19 Aug 2018 17:44:43 +0000 (17:44 +0000)]
Auto merge of #53258 - nikomatsakis:issue-53189-optimize-reassignment-immutable-state, r=pnkfelix

optimize reassignment immutable state

This is the "simple fix" when it comes to checking for reassignment. We just shoot for compatibility with the AST-based checker. Makes no attempt to solve #21232.

I opted for this simpler fix because I didn't want to think about complications [like the ones described here](https://github.com/rust-lang/rust/issues/21232#issuecomment-412219247).

Let's do some profiling measurements.

Fixes #53189

r? @pnkfelix

5 years agoremove feature(convert_id) from lib{core,std}/lib.rs
Mazdak Farrokhzad [Sun, 19 Aug 2018 17:25:35 +0000 (19:25 +0200)]
remove feature(convert_id) from lib{core,std}/lib.rs

5 years agoMake core::convert::identity a const fn.
Mazdak Farrokhzad [Sun, 19 Aug 2018 16:49:31 +0000 (18:49 +0200)]
Make core::convert::identity a const fn.

5 years agoGet rid of unnecessary #![feature(core_float)].
Mazdak Farrokhzad [Sun, 19 Aug 2018 16:37:00 +0000 (18:37 +0200)]
Get rid of unnecessary #![feature(core_float)].

5 years agoDrop `identity` from prelude.
Mazdak Farrokhzad [Sun, 19 Aug 2018 16:36:18 +0000 (18:36 +0200)]
Drop `identity` from prelude.

5 years agoMerge branch 'master' into feature/core_convert_id
Mazdak Farrokhzad [Sun, 19 Aug 2018 16:34:46 +0000 (18:34 +0200)]
Merge branch 'master' into feature/core_convert_id

5 years agoStabilize macro_vis_matcher
Jakub Kozlowski [Tue, 14 Aug 2018 23:24:55 +0000 (00:24 +0100)]
Stabilize macro_vis_matcher

5 years agoFix typos found by codespell.
Matthias Krüger [Sun, 19 Aug 2018 13:30:23 +0000 (15:30 +0200)]
Fix typos found by codespell.

5 years agoAuto merge of #53248 - nikomatsakis:nll-trivial-sized-predicate, r=eddyb
bors [Sun, 19 Aug 2018 15:22:18 +0000 (15:22 +0000)]
Auto merge of #53248 - nikomatsakis:nll-trivial-sized-predicate, r=eddyb

skip trivial `Sized` predicates

This came to about a 2% win for me in cargo. Small, but hey.

r? @eddyb

5 years agomove tests to borrowck directory, remove feature(nll)
Niko Matsakis [Tue, 14 Aug 2018 12:24:44 +0000 (08:24 -0400)]
move tests to borrowck directory, remove feature(nll)

now compare-mode can show us the differences

5 years agoadd tests for assigning fields without initializing var
Niko Matsakis [Sat, 11 Aug 2018 10:15:58 +0000 (06:15 -0400)]
add tests for assigning fields without initializing var

We did not seem to have any!