]>
git.lizzy.rs Git - rust.git/log
Aaron Hill [Thu, 31 Jan 2019 19:36:26 +0000 (14:36 -0500)]
Cleanup unecessary code
Aaron Hill [Wed, 30 Jan 2019 22:28:41 +0000 (17:28 -0500)]
Update tests for future-compat warning removal
Aaron Hill [Wed, 30 Jan 2019 22:09:31 +0000 (17:09 -0500)]
Add future compat lint declaration
Aaron Hill [Wed, 30 Jan 2019 21:00:40 +0000 (16:00 -0500)]
Remove unnecessary is_local() check
Aaron Hill [Wed, 30 Jan 2019 20:37:27 +0000 (15:37 -0500)]
Test allowing individual struct field
Aaron Hill [Wed, 30 Jan 2019 20:33:50 +0000 (15:33 -0500)]
Replace --extern-public with --extern-private
Aaron Hill [Tue, 29 Jan 2019 22:03:28 +0000 (17:03 -0500)]
Remove feature from test
Aaron Hill [Tue, 29 Jan 2019 21:16:57 +0000 (16:16 -0500)]
Tidy fixes
Aaron Hill [Tue, 29 Jan 2019 21:10:49 +0000 (16:10 -0500)]
Move --extern-public behind -Z unstable-options
Aaron Hill [Tue, 22 Jan 2019 23:37:58 +0000 (18:37 -0500)]
Remove feature gate
Aaron Hill [Mon, 21 Jan 2019 03:04:22 +0000 (22:04 -0500)]
Rename external_private_dependency to exported_private_dependencies
Aaron Hill [Mon, 14 Jan 2019 03:42:36 +0000 (22:42 -0500)]
Delete dead code
Aaron Hill [Mon, 14 Jan 2019 03:39:24 +0000 (22:39 -0500)]
Track extern_public command-line argument
Aaron Hill [Mon, 14 Jan 2019 03:33:06 +0000 (22:33 -0500)]
Add test for 'std' crate being public
Aaron Hill [Mon, 14 Jan 2019 03:29:52 +0000 (22:29 -0500)]
Clippy fixes, rename stuff to match RFC
Aaron Hill [Mon, 14 Jan 2019 01:37:27 +0000 (20:37 -0500)]
Improve UI tests
Aaron Hill [Mon, 14 Jan 2019 01:35:14 +0000 (20:35 -0500)]
Always treat 'std' and 'core' as public
Aaron Hill [Sun, 13 Jan 2019 23:50:24 +0000 (18:50 -0500)]
Add UI test
Aaron Hill [Sun, 13 Jan 2019 23:50:16 +0000 (18:50 -0500)]
Properly register lint
Aaron Hill [Sun, 13 Jan 2019 23:07:42 +0000 (18:07 -0500)]
Fixup code
Aaron Hill [Sat, 15 Dec 2018 13:01:57 +0000 (08:01 -0500)]
Fix emitting lint
Aaron Hill [Sat, 15 Dec 2018 12:00:15 +0000 (07:00 -0500)]
Initial implementation work
bors [Fri, 1 Feb 2019 06:34:45 +0000 (06:34 +0000)]
Auto merge of #58040 - vors:fix-E0283-explanation, r=cramertj
Fix grammar in E0283 explanation
Author probably meant not "Maybe anything else?", but "Maybe something else?"
Sergei Vorobev [Fri, 1 Feb 2019 06:26:19 +0000 (22:26 -0800)]
Fix grammar in E0283 explanation
bors [Fri, 1 Feb 2019 01:06:15 +0000 (01:06 +0000)]
Auto merge of #58002 - oli-obk:deprecated_sugg, r=zackmdavis
Add suggestions to deprecation lints
Clippy used to do this suggestion, but the clippy lints happen after the deprecation lints so we ended up never seeing the structured suggestions.
bors [Thu, 31 Jan 2019 19:20:14 +0000 (19:20 +0000)]
Auto merge of #56696 - jonas-schievink:weak-counts, r=alexcrichton
Implement Weak::{strong_count, weak_count}
The counters are also useful on `Weak`, not just on strong references (`Rc` or `Arc`).
In situations where there are still strong references around, you can also get these counts by temporarily upgrading and adjusting the values accordingly. Using the methods introduced here is simpler to do, less error-prone (since you can't forget to adjust the counts), can also be used when no strong references are around anymore, and might be more efficient due to not having to temporarily create an `Rc`.
This is mainly useful in assertions or tests of complex data structures. Data structures might have internal invariants that make them the sole owner of a `Weak` pointer, and an assertion on the weak count could be used to ensure that this indeed happens as expected. Due to the presence of `Weak::upgrade`, the `strong_count` becomes less useful, but it still seems worthwhile to mirror the API of `Rc`.
TODO:
* [X] Tracking issue - https://github.com/rust-lang/rust/issues/57977
Closes https://github.com/rust-lang/rust/issues/50158
bors [Thu, 31 Jan 2019 16:21:39 +0000 (16:21 +0000)]
Auto merge of #57914 - jethrogb:jb/sgx-unwind-version, r=alexcrichton
SGX target: clean up dist builder, update libunwind
This incorporates https://github.com/fortanix/llvm-project/pull/4
Fixes https://github.com/fortanix/rust-sgx/issues/65
r? @alexcrichton
bors [Thu, 31 Jan 2019 13:40:11 +0000 (13:40 +0000)]
Auto merge of #58003 - nikic:saturating-add, r=nagisa
Use LLVM intrinsics for saturating add/sub
Use the `[su](add|sub).sat` LLVM intrinsics, if we're compiling against LLVM 8, as they should optimize and codegen better than IR based on `[su](add|sub).with.overlow`.
For the fallback for LLVM < 8 I'm using the same expansion that target lowering in LLVM uses, which is not the same as Rust currently uses (in particular due to the use of selects rather than branches).
Fixes #55286.
Fixes #52203.
Fixes #44500.
r? @nagisa
Vardhan Thigle [Thu, 31 Jan 2019 11:31:16 +0000 (17:01 +0530)]
Updated commit id for building libunwind.
bors [Thu, 31 Jan 2019 11:07:41 +0000 (11:07 +0000)]
Auto merge of #57514 - michaelwoerister:xlto-tests, r=alexcrichton
compiletest: Support opt-in Clang-based run-make tests and use them for testing xLTO.
Some cross-language run-make tests need a Clang compiler that matches the LLVM version of `rustc`. Since such a compiler usually isn't available these tests (marked with the `needs-matching-clang`
directive) are ignored by default.
For some CI jobs we do need these tests to run unconditionally though. In order to support this a `--force-clang-based-tests` flag is added to compiletest. If this flag is specified, `compiletest` will fail if it can't detect an appropriate version of Clang.
@rust-lang/infra The PR doesn't yet enable the tests yet. Do you have any recommendation for which jobs to enable them?
cc #57438
r? @alexcrichton
bors [Thu, 31 Jan 2019 03:47:17 +0000 (03:47 +0000)]
Auto merge of #58016 - Centril:rollup, r=Centril
Rollup of 12 pull requests
Successful merges:
- #57008 (suggest `|` when `,` founds in invalid match value)
- #57106 (Mark str::trim.* functions as #[must_use].)
- #57920 (use `SOURCE_DATE_EPOCH` for man page time if set)
- #57934 (Introduce into_raw_non_null on Rc and Arc)
- #57971 (SGX target: improve panic & exit handling)
- #57980 (Add the edition guide to the bookshelf)
- #57984 (Improve bug message in check_ty)
- #57999 (Add MOVBE x86 CPU feature)
- #58000 (Fixes and cleanups)
- #58005 (update docs for fix_start/end_matches)
- #58007 (Don't panic when accessing enum variant ctor using `Self` in match)
- #58008 (Pass correct arguments to places_conflict)
Failed merges:
r? @ghost
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:53 +0000 (02:10 +0100)]
Rollup merge of #58008 - matthewjasper:places-conflict-args, r=oli-obk
Pass correct arguments to places_conflict
The borrow place *must* be a place that we track borrows for, otherwise
we will likely ICE.
Closes #57989
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:52 +0000 (02:10 +0100)]
Rollup merge of #58007 - estebank:issue-58006, r=petrochenkov
Don't panic when accessing enum variant ctor using `Self` in match
Fix #58006.
r? @petrochenkov
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:51 +0000 (02:10 +0100)]
Rollup merge of #58005 - vitiral:docs_trim_start_matches, r=Manishearth
update docs for fix_start/end_matches
fixes #57686:
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:50 +0000 (02:10 +0100)]
Rollup merge of #58000 - oli-obk:fixes_and_cleanups, r=RalfJung
Fixes and cleanups
Address the points raised in https://github.com/rust-lang/rust/pull/57677/files by @eddyb and @RalfJung
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:49 +0000 (02:10 +0100)]
Rollup merge of #57999 - jethrogb:jb/movbe-feature, r=alexcrichton
Add MOVBE x86 CPU feature
I have no idea if this is correct. I basically copied the ADX feature. I verified the feature is also called `movbe` in LLVM.
I marked this to become stable immediately, as part of the RFC 2045.
r? @alexcrichton
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:47 +0000 (02:10 +0100)]
Rollup merge of #57984 - phansch:improve_check_ty_error, r=zackmdavis
Improve bug message in check_ty
This branch was hit in Clippy and I think it would be nice to
show the thing that was unexpected in the bug message.
It's also in line with the other `bug!` messages in `check_ty`.
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:46 +0000 (02:10 +0100)]
Rollup merge of #57980 - siddharthasahu:patch-1, r=QuietMisdreavus
Add the edition guide to the bookshelf
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:45 +0000 (02:10 +0100)]
Rollup merge of #57971 - jethrogb:jb/sgx-panic, r=alexcrichton
SGX target: improve panic & exit handling
Implement this part of the spec:
> The enclave must not rely on userspace to terminate other threads still running. Similarly, the enclave must not trust that it will no longer be entered by userspace, and it must safeguard against that in the entrypoints.
Also use `UserRef` to access panic buffer
r? @alexcrichton
cc @VardhanThigle
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:44 +0000 (02:10 +0100)]
Rollup merge of #57934 - dwijnand:from-Arc/Rc-to-NonNull, r=alexcrichton
Introduce into_raw_non_null on Rc and Arc
None
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:42 +0000 (02:10 +0100)]
Rollup merge of #57920 - euclio:source-date-epoch, r=Mark-Simulacrum
use `SOURCE_DATE_EPOCH` for man page time if set
Fixes #57776.
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:41 +0000 (02:10 +0100)]
Rollup merge of #57106 - matthiaskrgr:trim_must_use, r=sfackler
Mark str::trim.* functions as #[must_use].
The functions return a reference to a new object and do not modify in-place
as the following code shows:
````
let s = String::from(" hello ");
s.trim();
assert_eq!(s, " hello ");
````
The new reference should be bound to a variable as now indicated by #[must_use].
Mazdak Farrokhzad [Thu, 31 Jan 2019 01:10:40 +0000 (02:10 +0100)]
Rollup merge of #57008 - Knium:misleading-try-adding-parentheses-in-match-with-comma, r=oli-obk
suggest `|` when `,` founds in invalid match value
Issue #54807
I get stuck on (what | how) I should implement...
bors [Wed, 30 Jan 2019 21:04:06 +0000 (21:04 +0000)]
Auto merge of #57974 - llogiq:vec-deque-try-fold, r=alexcrichton
override `VecDeque`'s `Iter::try_fold`
This should improve performance (wherever it is used), but I haven't found the time to benchmark it yet.
Matthew Jasper [Wed, 30 Jan 2019 19:49:31 +0000 (19:49 +0000)]
Pass correct arguments to places_conflict
The borrow place *must* be a place that we track borrows for, otherwise
we will likely ICE.
Esteban Küber [Wed, 30 Jan 2019 19:39:56 +0000 (11:39 -0800)]
Don't panic when accessing enum variant ctor using `Self` in match
Oliver Scherer [Wed, 30 Jan 2019 18:29:10 +0000 (19:29 +0100)]
Failure resistent trait implementing
Philipp Hansch [Wed, 30 Jan 2019 06:30:39 +0000 (07:30 +0100)]
Improve bug message in check_ty
This branch was hit in Clippy and I think it would be nice to
show the thing that was unexpected in the bug message.
It's also in line with the other `bug!` messages in `check_ty`.
Rett Berg [Wed, 30 Jan 2019 17:14:28 +0000 (09:14 -0800)]
fix #57686: update docs for fix_start/end_matches
Oliver Scherer [Wed, 30 Jan 2019 16:51:59 +0000 (17:51 +0100)]
Swap the names of `LocalValue` and `LocalState`
Oliver Scherer [Wed, 30 Jan 2019 16:50:46 +0000 (17:50 +0100)]
Prefer macro over manual implementation
Oliver Scherer [Wed, 30 Jan 2019 16:47:36 +0000 (17:47 +0100)]
Add suggestions to deprecation lints
bors [Wed, 30 Jan 2019 16:20:15 +0000 (16:20 +0000)]
Auto merge of #57495 - jamesmunns:mdbook-compat, r=steveklabnik
Support multiple versions of MdBook for docs
Only the compatibility items from the embedded book PR. PR with embedded book components: https://github.com/rust-lang/rust/pull/56291
CC @steveklabnik, @ehuss, and https://github.com/rust-lang-nursery/edition-guide/pull/134
Jethro Beekman [Wed, 30 Jan 2019 13:27:55 +0000 (18:57 +0530)]
Add MOVBE feature
Michael Woerister [Wed, 30 Jan 2019 12:28:46 +0000 (13:28 +0100)]
CI: Use lld for linking LLVM in the x86_64-gnu-debug image.
Michael Woerister [Wed, 30 Jan 2019 12:27:12 +0000 (13:27 +0100)]
bootstrap: Expose LLVM_USE_LINKER cmake option to config.toml.
Michael Woerister [Mon, 28 Jan 2019 14:16:29 +0000 (15:16 +0100)]
ci: Use clang as the C++ compiler for x86_64-gnu-debug.
Michael Woerister [Fri, 25 Jan 2019 11:34:59 +0000 (12:34 +0100)]
bootstrap: Make LLD available to run-make tests.
Michael Woerister [Thu, 24 Jan 2019 13:08:39 +0000 (14:08 +0100)]
Add missing packages.
Oliver Scherer [Wed, 30 Jan 2019 14:51:20 +0000 (15:51 +0100)]
Eliminate an unwrap
Oliver Scherer [Wed, 30 Jan 2019 14:42:00 +0000 (15:42 +0100)]
Monomorphize types when not going through `layout_of_local`
James Munns [Sat, 19 Jan 2019 04:15:25 +0000 (05:15 +0100)]
Add exception for new dependency in license checker
James Munns [Sat, 19 Jan 2019 02:39:37 +0000 (03:39 +0100)]
Update to newer version of mdbook(2)
Oliver Scherer [Wed, 30 Jan 2019 14:24:41 +0000 (15:24 +0100)]
Indent fixup
James Munns [Thu, 10 Jan 2019 20:22:33 +0000 (21:22 +0100)]
Remove stable feature
James Munns [Thu, 10 Jan 2019 20:18:13 +0000 (21:18 +0100)]
No consumers of MdBook2 yet
James Munns [Thu, 10 Jan 2019 19:37:51 +0000 (20:37 +0100)]
Only the compatibility items from the embedded book PR
PR: https://github.com/rust-lang/rust/pull/56291
Oliver Scherer [Wed, 30 Jan 2019 14:08:59 +0000 (15:08 +0100)]
The return place's layout is only used once per frame, so caching doesn't help
Oliver Scherer [Wed, 30 Jan 2019 14:05:50 +0000 (15:05 +0100)]
Can't use `layout_of_local` for the frame currently being created
Oliver Scherer [Wed, 30 Jan 2019 14:01:42 +0000 (15:01 +0100)]
Make priroda happy again
Oliver Scherer [Wed, 30 Jan 2019 13:55:31 +0000 (14:55 +0100)]
Allow `layout_of_local` to also use cached layouts
bors [Wed, 30 Jan 2019 13:20:32 +0000 (13:20 +0000)]
Auto merge of #57988 - RalfJung:miri, r=oli-obk
update miri
r? @oli-obk
Oliver Scherer [Wed, 30 Jan 2019 13:16:18 +0000 (14:16 +0100)]
Merge `locals` and `local_layouts` fields
Ralf Jung [Wed, 30 Jan 2019 08:25:19 +0000 (09:25 +0100)]
update miri
bors [Wed, 30 Jan 2019 09:30:30 +0000 (09:30 +0000)]
Auto merge of #57932 - matthiaskrgr:clippy_submodule_upd, r=oli-obk
submodules: update clippy from
f1753522 to
6ce78d12
Should fix clippy toolstate
Changes:
````
wildcard_match_arm: Update lint count.
wildcard_match_arm: add nesting issue to known.
wildcard_match_arm: lint only enum matches.
wildcard_match_arm: update ui test stderr
wildcard_match_arm: format test.
wilcard_match_arm: run rustfmt.
wildcard_match_arm: add lint properly.
wildcard_match_arm: rename function.
wildcard_match_arm: add simple ui test.
wildcard_match_arm: expand lint scope.
Change match_wild lint name to WILDCARD_MATCH_ARM.
Add match_wild lint (#3649).
fetch_prs_between: add .sh file ending
cargo fmt
Update various docs
Use built-in entry_fn detection over self-built
cargo fmt
Reorganize conditionals: Run faster checks first
Maybe fix ICE?
Add initial version of const_fn lint
Fix `unit_arg` false positive
Rustfmt
Check hypothetically failing conversion
Remove tests for deprecated items
Update more changed iterator paths
Atomics constants are now handled by the deprecation lint
Update changed iterator paths
Update const slice processing
update test stderr
run cargo fmt
rustup https://github.com/rust-lang/rust/pull/57907/
Fix documentation for `slow_vector_initialization`
rustup https://github.com/rust-lang/rust/pull/57726
Remove unsafe_vector_initialization from added lints
Prevent incorrect cast_lossless suggestion in const_fn
Incorporate review suggestions
Fix dogfood tests on Appveyor
test(versioncheck): Use .no_deps()
test(versioncheck): Fix version equality check
chore(cargo/dependencies/cargo-metadata): Upgrade to 0.7.1
dependencies: update itertools from 0.7 to 0.8
Add script to fetch GitHub PRs between two commits
gitattributes: Treat .fixed files as rust files
Update changelog with all changes since 0.0.212
Fix `expect_fun_call` lint suggestions
````
r? @oli-obk
Andre Bogus [Tue, 29 Jan 2019 15:15:02 +0000 (16:15 +0100)]
override `VecDeque`'s `Iter::try_fold`
Knium_ [Wed, 30 Jan 2019 04:50:44 +0000 (13:50 +0900)]
Suggest to add each of `|` and `()` when unexpected `,` is found in pattern
bors [Wed, 30 Jan 2019 03:44:11 +0000 (03:44 +0000)]
Auto merge of #57975 - alexcrichton:debug-exit-appveyor, r=pietroalbini
Attempt to debug 259 exit code on AppVeyor
Let's try to dig in a bit more and see where this is coming from, it
looks like AppVeyor is also unsure where this is coming from!
Matthias Krüger [Wed, 30 Jan 2019 00:24:37 +0000 (01:24 +0100)]
submodules: update clippy from
f1753522 to
6ce78d12
Changes:
````
wildcard_match_arm: Update lint count.
wildcard_match_arm: add nesting issue to known.
wildcard_match_arm: lint only enum matches.
wildcard_match_arm: update ui test stderr
wildcard_match_arm: format test.
wilcard_match_arm: run rustfmt.
wildcard_match_arm: add lint properly.
wildcard_match_arm: rename function.
wildcard_match_arm: add simple ui test.
wildcard_match_arm: expand lint scope.
Change match_wild lint name to WILDCARD_MATCH_ARM.
Add match_wild lint (#3649).
fetch_prs_between: add .sh file ending
cargo fmt
Update various docs
Use built-in entry_fn detection over self-built
cargo fmt
Reorganize conditionals: Run faster checks first
Maybe fix ICE?
Add initial version of const_fn lint
Fix `unit_arg` false positive
Rustfmt
Check hypothetically failing conversion
Remove tests for deprecated items
Update more changed iterator paths
Atomics constants are now handled by the deprecation lint
Update changed iterator paths
Update const slice processing
update test stderr
run cargo fmt
rustup https://github.com/rust-lang/rust/pull/57907/
Fix documentation for `slow_vector_initialization`
rustup https://github.com/rust-lang/rust/pull/57726
Remove unsafe_vector_initialization from added lints
Prevent incorrect cast_lossless suggestion in const_fn
Incorporate review suggestions
Fix dogfood tests on Appveyor
test(versioncheck): Use .no_deps()
test(versioncheck): Fix version equality check
chore(cargo/dependencies/cargo-metadata): Upgrade to 0.7.1
dependencies: update itertools from 0.7 to 0.8
Add script to fetch GitHub PRs between two commits
gitattributes: Treat .fixed files as rust files
Update changelog with all changes since 0.0.212
Fix `expect_fun_call` lint suggestions
````
bors [Tue, 29 Jan 2019 22:34:19 +0000 (22:34 +0000)]
Auto merge of #57953 - mati865:cc-fix, r=alexcrichton
Do not set CC, CFLAGS, CXX, CXXFLAGS, AR, RANLIB in bootstrap, it breaks cross compilation
Fixes https://github.com/rust-lang/rust/issues/57812
I tested it in AArch64 Ubuntu container with several days old tree to have all the tools buildable.
I did **not** test native builds (amd64 -> amd64), leaving it to CI.
r? @alexcrichton
Siddhartha Sahu [Tue, 29 Jan 2019 22:30:49 +0000 (17:30 -0500)]
Add link to the edition guide.
Jonas Schievink [Tue, 29 Jan 2019 21:34:35 +0000 (22:34 +0100)]
Add tracking issue to unstable attribute
Nikita Popov [Tue, 29 Jan 2019 21:16:43 +0000 (22:16 +0100)]
Use LLVM intrinsics for saturating add/sub
Jonas Schievink [Tue, 29 Jan 2019 20:58:17 +0000 (21:58 +0100)]
Make weak_count return an Option<usize>
Jonas Schievink [Mon, 7 Jan 2019 22:35:52 +0000 (23:35 +0100)]
Implement a slightly racy `sync::Weak::weak_count`
Jonas Schievink [Mon, 10 Dec 2018 23:40:39 +0000 (00:40 +0100)]
Implement Weak::{strong_count, weak_count}
bors [Tue, 29 Jan 2019 19:40:51 +0000 (19:40 +0000)]
Auto merge of #57808 - gnzlbg:ustdsimd, r=gnzlbg
Update stdsimd
This is the companion PR to https://github.com/rust-lang-nursery/stdsimd/pull/640
r? @alexcrichton
bors [Tue, 29 Jan 2019 16:58:15 +0000 (16:58 +0000)]
Auto merge of #57901 - lqd:issue_57362, r=nikomatsakis
Add information to higher-ranked lifetimes conflicts error messages
Make these errors go through the new "placeholder error" code path, to have self tys displayed and make them hopefully less confusing.
Should fix #57362.
r? @nikomatsakis — so we can iterate on the specific wording you wanted.
Alex Crichton [Tue, 29 Jan 2019 15:45:54 +0000 (07:45 -0800)]
Attempt to debug 259 exit code on AppVeyor
Let's try to dig in a bit more and see where this is coming from, it
looks like AppVeyor is also unsure where this is coming from!
bors [Tue, 29 Jan 2019 13:32:13 +0000 (13:32 +0000)]
Auto merge of #57948 - Zoxc:parallel, r=michaelwoerister
Use multiple threads by default. Limits tests to one thread. Do some renaming.
r? @michaelwoerister
Jethro Beekman [Tue, 29 Jan 2019 11:40:22 +0000 (17:10 +0530)]
SGX target: improve panic & exit handling
gnzlbg [Mon, 21 Jan 2019 17:42:04 +0000 (18:42 +0100)]
Update stdsimd
bors [Tue, 29 Jan 2019 09:42:13 +0000 (09:42 +0000)]
Auto merge of #57862 - hsivonen:buildneon, r=alexcrichton
Build the standard library for thumbv7neon-unknown-linux-gnueabihf in CI
Using the `dist-armv7-linux` image instead of `dist-various-1` in order to use the ARMv7 toolchain available in `dist-armv7-linux`.
Closes #57030.
bors [Tue, 29 Jan 2019 05:22:51 +0000 (05:22 +0000)]
Auto merge of #57957 - Centril:rollup, r=Centril
Rollup of 7 pull requests
Successful merges:
- #57045 (Kill remaining uses of mem::uninitialized in libcore, liballoc)
- #57674 (Avoid erase_regions_ty queries if there are no regions to erase)
- #57833 (Print a slightly clearer message when failing to launch a thread)
- #57859 (Fix invalid background color)
- #57904 (add typo suggestion to unknown attribute error)
- #57915 (Pretty print `$crate` as `crate` or `crate_name` in more cases)
- #57950 (Extend E0106, E0261)
Failed merges:
r? @ghost
Dale Wijnand [Sun, 27 Jan 2019 17:03:03 +0000 (17:03 +0000)]
Introduce into_raw_non_null on Rc and Arc
Rémy Rakic [Mon, 28 Jan 2019 22:12:13 +0000 (23:12 +0100)]
Refer to synthetically named lifetimes as "some specific lifetime" rather than "the specific lifetime"
Mazdak Farrokhzad [Mon, 28 Jan 2019 21:25:49 +0000 (22:25 +0100)]
Rollup merge of #57950 - QuietMisdreavus:lifetime-err-desc, r=estebank
Extend E0106, E0261
This is a reopening of https://github.com/rust-lang/rust/pull/57310 with review comments addressed because the original author has since deleted their fork.
From the author (@purple-ice):
> Added an example that points out hardly obvious mistake one could make when writing impl for a new type.
r? @rust-lang/docs
Mazdak Farrokhzad [Mon, 28 Jan 2019 21:25:48 +0000 (22:25 +0100)]
Rollup merge of #57915 - petrochenkov:notto-disu, r=zackmdavis
Pretty print `$crate` as `crate` or `crate_name` in more cases
So, people do parse output of `--pretty=expanded` (sigh), so covering only the legacy proc-macro case (like it was done in https://github.com/rust-lang/rust/pull/57155) is not enough.
This PRs resolves all `$crate`s produced by macros, so they are all printed in the parseable form `$crate::foo` -> `crate::foo` or `crate_name::foo`.
Fixes https://github.com/rust-lang/rust/issues/38016#issuecomment-
455851334
Fixes https://github.com/rust-lang/rust/pull/57155#issuecomment-
455807195
Mazdak Farrokhzad [Mon, 28 Jan 2019 21:25:47 +0000 (22:25 +0100)]
Rollup merge of #57904 - euclio:attribute-typos, r=davidtwco
add typo suggestion to unknown attribute error
Provides a suggestion using Levenshtein distance to suggest built-in attributes and attribute macros.
Fixes #49270.
Mazdak Farrokhzad [Mon, 28 Jan 2019 21:25:45 +0000 (22:25 +0100)]
Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus
Fix invalid background color
As discussed in #57814.
r? @QuietMisdreavus