]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoCall methods on the right tcx
Matthew Jasper [Tue, 4 Dec 2018 19:14:13 +0000 (19:14 +0000)]
Call methods on the right tcx

There are two `TyCtxt`s, one global, one local. Methods must be called
on the right one, as they differ by invariant lifetimes.

5 years agoUtilize `?` instead of `return None`.
Corey Farwell [Wed, 21 Nov 2018 04:01:56 +0000 (23:01 -0500)]
Utilize `?` instead of `return None`.

5 years agoAuto merge of #56244 - oli-obk:loud_ui_errors, r=nikomatsakis
bors [Tue, 4 Dec 2018 16:26:18 +0000 (16:26 +0000)]
Auto merge of #56244 - oli-obk:loud_ui_errors, r=nikomatsakis

Report failing tests without `//~ ERROR` comments

r? @nikomatsakis

5 years agoSerialize modules into ThinBuffer after initial optimization
Nikita Popov [Tue, 4 Dec 2018 15:24:20 +0000 (16:24 +0100)]
Serialize modules into ThinBuffer after initial optimization

Instead of keeping all modules in memory until thin LTO and only
serializing them then, serialize the module immediately after
it finishes optimizing.

5 years agoRemove unnecessary parts of run_fat_lto signature
Nikita Popov [Mon, 3 Dec 2018 19:50:39 +0000 (20:50 +0100)]
Remove unnecessary parts of run_fat_lto signature

Fat LTO merges into one module, so only return one module.

5 years agoSeparate out methods for running thin and fat LTO
Nikita Popov [Mon, 3 Dec 2018 19:45:03 +0000 (20:45 +0100)]
Separate out methods for running thin and fat LTO

5 years agoSeparate codepaths for fat and thin LTO in write.rs
Nikita Popov [Mon, 3 Dec 2018 18:59:43 +0000 (19:59 +0100)]
Separate codepaths for fat and thin LTO in write.rs

These are going to have different intermediate artifacts, so
create separate codepaths for them.

5 years agoRefactor LTO type determination
Nikita Popov [Mon, 3 Dec 2018 16:13:01 +0000 (17:13 +0100)]
Refactor LTO type determination

Instead of only determining whether some form of LTO is necessary,
determine whether thin, fat or no LTO is necessary. I've rewritten
the conditions in a way that I think is more obvious, i.e. specified
LTO type + additional preconditions.

5 years agoExtract free_worker closure
Nikita Popov [Mon, 3 Dec 2018 15:49:06 +0000 (16:49 +0100)]
Extract free_worker closure

5 years agoAdd Armv8-M Mainline targets
Hugues de Valon [Tue, 13 Nov 2018 15:00:51 +0000 (15:00 +0000)]
Add Armv8-M Mainline targets

This commit enables the Armv8-M Mainline architecture profile.
It adds two targets:
  - thumbv8m.main-none-eabi
  - thumbv8m.main-none-eabihf

The second one uses the Floating Point Unit for floating point
operations. It mainly targets the Cortex-M33 processor, which
can have the optional Floating Point Unit extension.

5 years agoAuto merge of #55871 - ljedrz:llvm_back_allocations, r=nagisa
bors [Tue, 4 Dec 2018 11:47:07 +0000 (11:47 +0000)]
Auto merge of #55871 - ljedrz:llvm_back_allocations, r=nagisa

codegen_llvm_back: improve allocations

This commit was split out from https://github.com/rust-lang/rust/pull/54864. Last time it was causing an LLVM OOM, which was most probably caused by not collecting the globals.

- preallocate vectors of known length
- `extend` instead of `append` where the argument is consumable
- turn 2 `push` loops into `extend`s
- create a vector from a function producing one instead of using `extend_from_slice` on it
- consume `modules` when no longer needed
- ~~return an `impl Iterator` from `generate_lto_work`~~
- ~~don't `collect` `globals`, as they are iterated over and consumed right afterwards~~

While I'm hoping it won't cause an OOM anymore, I would still consider this a "high-risk" PR and not roll it up.

5 years agocleanup: remove static lifetimes from consts
ljedrz [Tue, 4 Dec 2018 11:46:10 +0000 (12:46 +0100)]
cleanup: remove static lifetimes from consts

5 years agoFix line numbers display
Guillaume Gomez [Tue, 4 Dec 2018 10:33:57 +0000 (11:33 +0100)]
Fix line numbers display

5 years agoTidy fixup
Oliver Scherer [Tue, 4 Dec 2018 10:04:54 +0000 (11:04 +0100)]
Tidy fixup

5 years agoAdd a test case for inlining the docs of a macro reexport
Georg Semmler [Tue, 4 Dec 2018 09:24:17 +0000 (10:24 +0100)]
Add a test case for inlining the docs of a macro reexport

5 years agoRemove support for proc macro doc inlining
Georg Semmler [Tue, 4 Dec 2018 09:23:30 +0000 (10:23 +0100)]
Remove support for proc macro doc inlining

5 years agoAllow renaming macro
Georg Semmler [Tue, 4 Dec 2018 09:23:13 +0000 (10:23 +0100)]
Allow renaming macro

5 years agocleanup: remove static lifetimes from consts in libstd
ljedrz [Tue, 4 Dec 2018 09:21:42 +0000 (10:21 +0100)]
cleanup: remove static lifetimes from consts in libstd

5 years agoAuto merge of #56224 - ehuss:update-cargo, r=alexcrichton
bors [Tue, 4 Dec 2018 09:21:21 +0000 (09:21 +0000)]
Auto merge of #56224 - ehuss:update-cargo, r=alexcrichton

Update cargo, rls

26 commits in b3d0b2e545b61d4cd08096911724b7d49d213f73..5e85ba14aaa20f8133863373404cb0af69eeef2c
2018-11-15 19:13:04 +0000 to 2018-12-02 14:37:25 +0000
- ConflictStoreTrie: Faster filtered search (rust-lang/cargo#6366)
- Remove `cmake` as a requirement (rust-lang/cargo#6368)
- progress: display "Downloading 1 crate" instead of "Downloading 1 crates" (rust-lang/cargo#6369)
- Use expect over unwrap, for panic-in-panic aborts (rust-lang/cargo#6364)
- Switch to pretty_env_logger, under --features pretty-env-logger (rust-lang/cargo#6362)
- use allow-dirty option in `cargo package` to skip vcs checks (rust-lang/cargo#6280)
- remove clones made redundant by Intern PackageId (rust-lang/cargo#6352)
- docs: correct profile usage of `cargo test --release` (rust-lang/cargo#6345)
- Improve doc for `cargo install` (rust-lang/cargo#6354)
- Intern PackageId (rust-lang/cargo#6332)
- Clean only release artifacts if --release option is set (rust-lang/cargo#6349)
- remove clones made redundant by Intern SourceId (rust-lang/cargo#6347)
- Intern SourceId (rust-lang/cargo#6342)
- Tweak Layout to allow for non json file targets with internal "." (rust-lang/cargo#6255)
- Correct Target Directory command-line option (rust-lang/cargo#6343)
- Persistent data structures by im-rs (rust-lang/cargo#6336)
- Move command prelude into main library (rust-lang/cargo#6335)
- Distinguish custom build invocations (rust-lang/cargo#6331)
- Allow crate_type=bin examples to run (rust-lang/cargo#6330)
- Make verify-project honour unstable features (rust-lang/cargo#6326)
- Make autodiscovery disable inferred targets (rust-lang/cargo#6329)
- Add `c` alias for `check` (rust-lang/cargo#6218)
- Allow user aliases to override built-in aliases (rust-lang/cargo#6259)
- Fix renaming directory project using build scripts with cross-compiling. (rust-lang/cargo#6328)
- Fix add_plugin_deps-related tests. (rust-lang/cargo#6327)
- Add a glossary. (rust-lang/cargo#6321)

5 years agoIntrinsic checks are just needed for `qualify_min_const_fn`
Oliver Scherer [Sat, 1 Dec 2018 13:09:30 +0000 (14:09 +0100)]
Intrinsic checks are just needed for `qualify_min_const_fn`

5 years agoClear up some code
Oliver Scherer [Fri, 30 Nov 2018 17:18:42 +0000 (18:18 +0100)]
Clear up some code

5 years agoExplain unsafety trickery of const functions
Oliver Scherer [Fri, 30 Nov 2018 17:17:50 +0000 (18:17 +0100)]
Explain unsafety trickery of const functions

5 years agoClean up the logic in `is_min_const_fn`
Oliver Scherer [Fri, 30 Nov 2018 17:07:51 +0000 (18:07 +0100)]
Clean up the logic in `is_min_const_fn`

5 years agoAdd and update tests
Oliver Scherer [Mon, 19 Nov 2018 14:24:23 +0000 (15:24 +0100)]
Add and update tests

5 years agoAutomatically generate imports for newtype_index `Deserialize` impls
Oliver Scherer [Mon, 19 Nov 2018 14:24:03 +0000 (15:24 +0100)]
Automatically generate imports for newtype_index `Deserialize` impls

5 years agoIncrease code-reuse and -readability
Oliver Scherer [Mon, 19 Nov 2018 13:45:40 +0000 (14:45 +0100)]
Increase code-reuse and -readability

5 years agoAdd tests for stable unsafe features in const fn
Oliver Scherer [Tue, 6 Nov 2018 16:43:32 +0000 (17:43 +0100)]
Add tests for stable unsafe features in const fn

5 years agoEmit feature gate suggestion
Oliver Scherer [Mon, 5 Nov 2018 17:06:26 +0000 (18:06 +0100)]
Emit feature gate suggestion

5 years agoComment on the unsafety code for layout constrained fields
Oliver Scherer [Mon, 5 Nov 2018 12:29:17 +0000 (13:29 +0100)]
Comment on the unsafety code for layout constrained fields

5 years agoAlso prevent mutation fields directly
Oliver Scherer [Mon, 5 Nov 2018 12:26:07 +0000 (13:26 +0100)]
Also prevent mutation fields directly

5 years agoAlso make immutable references to non-freeze restricted value range types unsafe
Oliver Scherer [Sun, 4 Nov 2018 12:45:26 +0000 (13:45 +0100)]
Also make immutable references to non-freeze restricted value range types unsafe

5 years agogeneralize the message about the creation of layout restricted types
Oliver Scherer [Sun, 4 Nov 2018 11:48:51 +0000 (12:48 +0100)]
generalize the message about the creation of layout restricted types

5 years agoAdjust a rustc test to the safety changes
Oliver Scherer [Sun, 4 Nov 2018 11:22:58 +0000 (12:22 +0100)]
Adjust a rustc test to the safety changes

5 years agoTrailing newlines again
Oliver Scherer [Sat, 3 Nov 2018 22:39:29 +0000 (23:39 +0100)]
Trailing newlines again

5 years agoForbid the creation of mutable borrows to fields of layout constrained types
Oliver Scherer [Sat, 3 Nov 2018 15:30:05 +0000 (16:30 +0100)]
Forbid the creation of mutable borrows to fields of layout constrained types

5 years agoMove ref to packed struct field check into projection arm
Oliver Scherer [Sat, 3 Nov 2018 14:21:44 +0000 (15:21 +0100)]
Move ref to packed struct field check into projection arm

5 years agoMake `newtype_index` safe
Oliver Scherer [Sat, 3 Nov 2018 14:08:27 +0000 (15:08 +0100)]
Make `newtype_index` safe

5 years agoMake sure the initialization of constrained int range newtypes is unsafe
Oliver Scherer [Sat, 3 Nov 2018 12:03:05 +0000 (13:03 +0100)]
Make sure the initialization of constrained int range newtypes is unsafe

5 years agoAdd test for dereferencing raw pointers and immediately referencing again
Oliver Scherer [Sat, 3 Nov 2018 11:08:19 +0000 (12:08 +0100)]
Add test for dereferencing raw pointers and immediately referencing again

5 years agoDocument unsafe rules with comments and `bug!` calls
Oliver Scherer [Sat, 3 Nov 2018 10:09:52 +0000 (11:09 +0100)]
Document unsafe rules with comments and `bug!` calls

5 years agoAllow calling `const unsafe fn` in `const fn` behind a feature gate
Oliver Scherer [Fri, 2 Nov 2018 23:22:12 +0000 (00:22 +0100)]
Allow calling `const unsafe fn` in `const fn` behind a feature gate

5 years agoAdd extra comment slash
Bastian Gruber [Tue, 4 Dec 2018 09:10:07 +0000 (10:10 +0100)]
Add extra comment slash

5 years agoUpdate doc-ui tests
Oliver Scherer [Fri, 30 Nov 2018 15:20:07 +0000 (16:20 +0100)]
Update doc-ui tests

5 years agoUpdate ui tests
Oliver Scherer [Fri, 30 Nov 2018 08:41:26 +0000 (09:41 +0100)]
Update ui tests

5 years agoRemove unused stderr file
Oliver Scherer [Tue, 27 Nov 2018 11:13:49 +0000 (12:13 +0100)]
Remove unused stderr file

5 years agoNewlines.... newlines everywhere
Oliver Scherer [Tue, 27 Nov 2018 10:29:29 +0000 (11:29 +0100)]
Newlines.... newlines everywhere

5 years agoAdd a test ensuring that we don't regress this
Oliver Scherer [Tue, 27 Nov 2018 09:56:49 +0000 (10:56 +0100)]
Add a test ensuring that we don't regress this

5 years agoUpdate tests
Oliver Scherer [Tue, 27 Nov 2018 09:56:36 +0000 (10:56 +0100)]
Update tests

5 years agoReport failing tests without `//~ ERROR` comments
Oliver Scherer [Mon, 26 Nov 2018 16:58:26 +0000 (17:58 +0100)]
Report failing tests without `//~ ERROR` comments

5 years agoFix ptr::hash, just hash the raw pointer
Dale Wijnand [Tue, 4 Dec 2018 08:06:26 +0000 (08:06 +0000)]
Fix ptr::hash, just hash the raw pointer

5 years agoMake ptr::hash take a raw painter like ptr::eq
Dale Wijnand [Tue, 4 Dec 2018 07:48:20 +0000 (07:48 +0000)]
Make ptr::hash take a raw painter like ptr::eq

5 years agoAuto merge of #55707 - GuillaumeGomez:file-sidebar, r=QuietMisdreavus
bors [Tue, 4 Dec 2018 07:00:19 +0000 (07:00 +0000)]
Auto merge of #55707 - GuillaumeGomez:file-sidebar, r=QuietMisdreavus

Add source file sidebar

This is just a start currently but that gives a good overview of what it'll look like:

<img width="1440" alt="screenshot 2018-11-06 at 01 39 15" src="https://user-images.githubusercontent.com/3050060/48035592-05336180-e165-11e8-82e1-5ead0c345eb9.png">

r? @QuietMisdreavus

5 years agosort_by_cached_key -> sort_by
Shotaro Yamada [Fri, 30 Nov 2018 23:39:51 +0000 (08:39 +0900)]
sort_by_cached_key -> sort_by

5 years agoRemove redundant clone
Shotaro Yamada [Wed, 28 Nov 2018 03:19:22 +0000 (12:19 +0900)]
Remove redundant clone

5 years agoAuto merge of #55682 - GuillaumeGomez:primitive-sidebar-link-gen, r=QuietMisdreavus
bors [Tue, 4 Dec 2018 03:34:32 +0000 (03:34 +0000)]
Auto merge of #55682 - GuillaumeGomez:primitive-sidebar-link-gen, r=QuietMisdreavus

Fixes primitive sidebar link generation

Fixes #50746.
Fixes #55656.

r? @QuietMisdreavus

5 years agoAuto merge of #56467 - oli-obk:osx_stack_bump, r=nagisa
bors [Tue, 4 Dec 2018 01:03:17 +0000 (01:03 +0000)]
Auto merge of #56467 - oli-obk:osx_stack_bump, r=nagisa

Bump stack size to 32MB

cc https://github.com/rust-lang/rust/issues/55471

A short term solution (really this time! Full fix being grown in https://github.com/rust-lang/rust/pull/55617) for stack overflows due to deeply recursive syntax trees.

r? @nagisa

cc @alexcrichton @eddyb @michaelwoerister @pietroalbini

5 years agoFix test
Shotaro Yamada [Mon, 29 Oct 2018 13:39:34 +0000 (22:39 +0900)]
Fix test

5 years agoUse iterator and pattern APIs instead of `char_at`
Shotaro Yamada [Sat, 27 Oct 2018 12:41:26 +0000 (21:41 +0900)]
Use iterator and pattern APIs instead of `char_at`

5 years agoPropagate all closure requirements to the caller
Matthew Jasper [Mon, 3 Dec 2018 23:17:02 +0000 (23:17 +0000)]
Propagate all closure requirements to the caller

5 years agoAuto merge of #55041 - evq:thumbv8m, r=alexcrichton
bors [Mon, 3 Dec 2018 22:38:18 +0000 (22:38 +0000)]
Auto merge of #55041 - evq:thumbv8m, r=alexcrichton

targets: thumbv8m: Add target for baseline ARMv8-M

Tested against a SAM L11 MCU.

5 years agoAddress review comments
Vadim Petrochenkov [Sun, 2 Dec 2018 12:15:42 +0000 (15:15 +0300)]
Address review comments

5 years agoImprove filter test
Guillaume Gomez [Mon, 3 Dec 2018 22:04:59 +0000 (23:04 +0100)]
Improve filter test

5 years agoDon't generate suffix for source-file.js
Guillaume Gomez [Mon, 3 Dec 2018 21:37:34 +0000 (22:37 +0100)]
Don't generate suffix for source-file.js

5 years agosyntax: Remove `#[non_exhaustive]` from `Edition`
Vadim Petrochenkov [Sun, 2 Dec 2018 00:59:25 +0000 (03:59 +0300)]
syntax: Remove `#[non_exhaustive]` from `Edition`

`Edition` is not a public API, we want users to break when a new edition is added

5 years agosyntax: Rename some keywords
Vadim Petrochenkov [Sun, 2 Dec 2018 00:35:55 +0000 (03:35 +0300)]
syntax: Rename some keywords

`CrateRoot` -> `PathRoot`, `::` doesn't necessarily mean crate root now
`SelfValue` -> `SelfLower`, `SelfType` -> `SelfUpper`, both `self` and `Self` can be used in type and value namespaces now

5 years agosyntax: `dyn` is a used keyword now
Vadim Petrochenkov [Sun, 2 Dec 2018 00:05:19 +0000 (03:05 +0300)]
syntax: `dyn` is a used keyword now

5 years agolink to raw identifiers
Mark Mansi [Sun, 2 Dec 2018 00:24:11 +0000 (18:24 -0600)]
link to raw identifiers

5 years agoExplain raw identifer syntax
Mark Mansi [Sun, 2 Dec 2018 00:16:08 +0000 (18:16 -0600)]
Explain raw identifer syntax

5 years agoBump stack size to 32MB
Oliver Scherer [Mon, 3 Dec 2018 16:38:04 +0000 (17:38 +0100)]
Bump stack size to 32MB

5 years agodata_structures: remove tuple_slice
ljedrz [Mon, 3 Dec 2018 16:33:06 +0000 (17:33 +0100)]
data_structures: remove tuple_slice

5 years agoAuto merge of #56451 - kennytm:rollup, r=kennytm
bors [Mon, 3 Dec 2018 15:44:43 +0000 (15:44 +0000)]
Auto merge of #56451 - kennytm:rollup, r=kennytm

Rollup of 13 pull requests

Successful merges:

 - #56141 ([std] Osstr len clarity)
 - #56366 (Stabilize self_in_typedefs feature)
 - #56395 (Stabilize dbg!(...))
 - #56401 (Move VecDeque::resize_with out of the impl<T:Clone> block)
 - #56402 (Improve the unstable book example for #[marker] trait)
 - #56412 (Update tracking issue for `extern_crate_self`)
 - #56416 (Remove unneeded body class selector)
 - #56418 (Fix failing tidy (line endings on Windows))
 - #56419 (Remove some uses of try!)
 - #56432 (Update issue number of `shrink_to` methods to point the tracking issue)
 - #56433 (Add description about `crate` for parse_visibility's comment)
 - #56435 (make the C part of compiler-builtins opt-out)
 - #56438 (Remove not used `DotEq` token)

Failed merges:

r? @ghost

5 years agoUpdate rls
Eric Huss [Mon, 3 Dec 2018 14:04:09 +0000 (06:04 -0800)]
Update rls

5 years agoRun x86_64-gnu-tools job for "update cargo" PRs since cargo can break RLS.
Eric Huss [Mon, 3 Dec 2018 07:09:47 +0000 (23:09 -0800)]
Run x86_64-gnu-tools job for "update cargo" PRs since cargo can break RLS.

5 years agoUpdate cargo
Eric Huss [Mon, 3 Dec 2018 01:33:20 +0000 (17:33 -0800)]
Update cargo

5 years agoHandle existential types in dead code analysis
Oliver Scherer [Mon, 3 Dec 2018 13:44:58 +0000 (14:44 +0100)]
Handle existential types in dead code analysis

5 years agoupdate miri
Ralf Jung [Mon, 3 Dec 2018 10:12:26 +0000 (11:12 +0100)]
update miri

5 years agofix recently added Retag statement
Ralf Jung [Sun, 2 Dec 2018 11:24:51 +0000 (12:24 +0100)]
fix recently added Retag statement

5 years agoprovide a way to replace the tag in a Scalar/MemPlace
Ralf Jung [Wed, 28 Nov 2018 08:22:02 +0000 (09:22 +0100)]
provide a way to replace the tag in a Scalar/MemPlace

5 years agoRetag needs to know whether this is a 2-phase-reborrow
Ralf Jung [Tue, 27 Nov 2018 10:53:18 +0000 (11:53 +0100)]
Retag needs to know whether this is a 2-phase-reborrow

5 years agoAuto merge of #55010 - tromey:Bug-9224-generic-parameters, r=michaelwoerister
bors [Mon, 3 Dec 2018 11:59:11 +0000 (11:59 +0000)]
Auto merge of #55010 - tromey:Bug-9224-generic-parameters, r=michaelwoerister

Add template parameter debuginfo to generic types

This changes debuginfo generation to add template parameters to
generic types.  With this change the DWARF now has
DW_TAG_template_type_param for types, not just for functions, like:

 <2><40d>: Abbrev Number: 6 (DW_TAG_structure_type)
    <40e>   DW_AT_name        : (indirect string, offset: 0x375): Generic<i32>
    <412>   DW_AT_byte_size   : 4
    <413>   DW_AT_alignment   : 4
...
 <3><41f>: Abbrev Number: 8 (DW_TAG_template_type_param)
    <420>   DW_AT_type        : <0x42a>
    <424>   DW_AT_name        : (indirect string, offset: 0xa65e): T

Closes #9224

5 years agoRollup merge of #56438 - yui-knk:remove_not_used_DotEq_token, r=petrochenkov
kennytm [Mon, 3 Dec 2018 10:07:20 +0000 (18:07 +0800)]
Rollup merge of #56438 - yui-knk:remove_not_used_DotEq_token, r=petrochenkov

Remove not used `DotEq` token

Currently libproc_macro does not use `DotEq` token.
https://github.com/rust-lang/rust/pull/49545 changed libproc_macro
to not generate `DotEq` token.

5 years agoRollup merge of #56435 - RalfJung:libstd-without-c, r=alexcrichton
kennytm [Mon, 3 Dec 2018 10:07:19 +0000 (18:07 +0800)]
Rollup merge of #56435 - RalfJung:libstd-without-c, r=alexcrichton

make the C part of compiler-builtins opt-out

I'd like to be able to use Xargo to build a libstd without having a full C toolchain for the target.  This is a start (but the fact that libstd is a dylib is still a problem).

However, compiler_builtin already has somewhat similar logic to not require a C compiler for wasm:

https://github.com/rust-lang-nursery/compiler-builtins/blob/fe74674f6e4be76d47b66f67d529ebf4186f4eb1/build.rs#L36-L41

(WTF GitHub, why doesn't this show an embedded code preview??)

I wonder if there is a way to not have two separate mechanisms? Like, move the above wasm logic to some place that controls the libstd feature, or so? Or is it okay to have these two mechanisms co-exist?

Cc @alexcrichton

5 years agoRollup merge of #56433 - yui-knk:update_comment_of_parse_visibility, r=petrochenkov
kennytm [Mon, 3 Dec 2018 10:07:18 +0000 (18:07 +0800)]
Rollup merge of #56433 - yui-knk:update_comment_of_parse_visibility, r=petrochenkov

Add description about `crate` for parse_visibility's comment

This rule was introduced by https://github.com/rust-lang/rust/pull/45401.

5 years agoRollup merge of #56432 - ordovicia:shrink-to-issue, r=Centril
kennytm [Mon, 3 Dec 2018 10:07:16 +0000 (18:07 +0800)]
Rollup merge of #56432 - ordovicia:shrink-to-issue, r=Centril

Update issue number of `shrink_to` methods to point the tracking issue

Tracking issue: #56431

5 years agoRollup merge of #56419 - mark-i-m:remove-try, r=Centril
kennytm [Mon, 3 Dec 2018 10:07:15 +0000 (18:07 +0800)]
Rollup merge of #56419 - mark-i-m:remove-try, r=Centril

Remove some uses of try!

5 years agoRollup merge of #56418 - petrochenkov:wintidy, r=nagisa
kennytm [Mon, 3 Dec 2018 10:07:14 +0000 (18:07 +0800)]
Rollup merge of #56418 - petrochenkov:wintidy, r=nagisa

Fix failing tidy (line endings on Windows)

Updates to `rustc-guide` and `edition-guide` including https://github.com/rust-lang/rustc-guide/pull/246 and https://github.com/rust-lang-nursery/edition-guide/pull/122.

5 years agoRollup merge of #56416 - GuillaumeGomez:css-body, r=QuietMisdreavus
kennytm [Mon, 3 Dec 2018 10:07:13 +0000 (18:07 +0800)]
Rollup merge of #56416 - GuillaumeGomez:css-body, r=QuietMisdreavus

Remove unneeded body class selector

r? @QuietMisdreavus

5 years agoRollup merge of #56412 - petrochenkov:extself, r=Centril
kennytm [Mon, 3 Dec 2018 10:07:11 +0000 (18:07 +0800)]
Rollup merge of #56412 - petrochenkov:extself, r=Centril

Update tracking issue for `extern_crate_self`

5 years agoRollup merge of #56402 - scottmcm:better-marker-trait-example, r=Centril
kennytm [Mon, 3 Dec 2018 10:07:10 +0000 (18:07 +0800)]
Rollup merge of #56402 - scottmcm:better-marker-trait-example, r=Centril

Improve the unstable book example for #[marker] trait

The previous one didn't actually use the Display&Debug bounds in any way, so I think this one is a bit more meaningful.

5 years agoRollup merge of #56401 - scottmcm:vecdeque-resize-with, r=dtolnay
kennytm [Mon, 3 Dec 2018 10:07:09 +0000 (18:07 +0800)]
Rollup merge of #56401 - scottmcm:vecdeque-resize-with, r=dtolnay

Move VecDeque::resize_with out of the impl<T:Clone> block

I put this in the wrong `impl` block in https://github.com/rust-lang/rust/pull/56016, so fixing.

Tracking issue for the unstable method: https://github.com/rust-lang/rust/issues/41758#issuecomment-443077953

5 years agoRollup merge of #56395 - Centril:stabilize-dbg-macro, r=SimonSapin
kennytm [Mon, 3 Dec 2018 10:07:08 +0000 (18:07 +0800)]
Rollup merge of #56395 - Centril:stabilize-dbg-macro, r=SimonSapin

Stabilize dbg!(...)

Per FCP in https://github.com/rust-lang/rust/issues/54306 (which is ~1 day from completion).

r? @SimonSapin

The PR is fairly isolated so a rollup should probably work.

5 years agoRollup merge of #56366 - alexreg:stabilise-self_in_typedefs, r=Centril
kennytm [Mon, 3 Dec 2018 10:07:07 +0000 (18:07 +0800)]
Rollup merge of #56366 - alexreg:stabilise-self_in_typedefs, r=Centril

Stabilize self_in_typedefs feature

[**Tracking Issue**](https://github.com/rust-lang/rust/issues/49303)

r? @centril

5 years agoRollup merge of #56141 - jnqnfe:osstr_len_clarity, r=nagisa
kennytm [Mon, 3 Dec 2018 10:07:06 +0000 (18:07 +0800)]
Rollup merge of #56141 - jnqnfe:osstr_len_clarity, r=nagisa

[std] Osstr len clarity

5 years agoFix link in Weak::new
Thomas de Zeeuw [Fri, 23 Nov 2018 11:26:13 +0000 (12:26 +0100)]
Fix link in Weak::new

5 years agoAdd sync::Weak::ptr_eq
Thomas de Zeeuw [Thu, 15 Nov 2018 19:24:02 +0000 (20:24 +0100)]
Add sync::Weak::ptr_eq

5 years agoAdd rc::Weak.ptr_eq
Thomas de Zeeuw [Thu, 15 Nov 2018 15:41:06 +0000 (16:41 +0100)]
Add rc::Weak.ptr_eq

5 years agoAuto merge of #56305 - RalfJung:miri, r=oli-obk
bors [Mon, 3 Dec 2018 09:36:10 +0000 (09:36 +0000)]
Auto merge of #56305 - RalfJung:miri, r=oli-obk

update miri

This should make miri green again :)
(Includes https://github.com/solson/miri/pull/553)

r? @oli-obk

5 years agocodegen_llvm_back: improve allocations
ljedrz [Sat, 6 Oct 2018 09:45:11 +0000 (11:45 +0200)]
codegen_llvm_back: improve allocations

5 years agoupdate miri
Ralf Jung [Fri, 30 Nov 2018 07:08:31 +0000 (08:08 +0100)]
update miri

5 years agoupdate miri
Ralf Jung [Wed, 28 Nov 2018 20:22:45 +0000 (21:22 +0100)]
update miri