varkor
41ee9eaee7
Refactor check_track_caller
2019-10-25 23:26:27 +01:00
varkor
4552c8f2f7
Add test for attribute error checking on trait and foreign items
2019-10-25 23:26:27 +01:00
varkor
af2b497776
Improve comments
2019-10-25 23:26:27 +01:00
varkor
66d7ef077a
Emit warning for ignored #[inline] on foreign function prototypes
2019-10-25 23:26:27 +01:00
varkor
94c4dd9902
Emit warning for ignored #[inline] on trait method prototypes
2019-10-25 23:26:27 +01:00
varkor
7f3c8438e0
Refactor check_attr
2019-10-25 23:26:27 +01:00
Thomas Lively
29d6aaae32
Temporarily enable asmjs and wasm32 CI on PRs
2019-10-25 15:16:49 -07:00
Thomas Lively
62c3443e96
Re-enable Emscripten's exception handling support
...
Passes LLVM codegen and Emscripten link-time flags for exception
handling if and only if the panic strategy is `unwind`. Sets the
default panic strategy for Emscripten targets to `unwind`. Re-enables
tests that depend on unwinding support for Emscripten, including
`should_panic` tests.
2019-10-25 15:16:36 -07:00
bors
246be7e1a5
Auto merge of #65826 - JohnTitor:rollup-mr6crka, r=JohnTitor
...
Rollup of 6 pull requests
Successful merges:
- #65705 (Add {String,Vec}::into_raw_parts)
- #65749 (Insurance policy in case `iter.size_hint()` lies.)
- #65799 (Fill tracking issue number for `array_value_iter`)
- #65800 (self-profiling: Update measureme to 0.4.0 and remove non-RAII methods from profiler.)
- #65806 (Add [T]::as_ptr_range() and [T]::as_mut_ptr_range().)
- #65810 (SGX: Clear additional flag on enclave entry)
Failed merges:
r? @ghost
2019-10-25 20:41:28 +00:00
bjorn3
f04867cafb
Derive Eq and Hash for SourceInfo again
2019-10-25 21:39:02 +02:00
roblabla
174d4f9caf
EFIAPI: Fix symbolname tests
2019-10-25 18:57:54 +00:00
roblabla
e54ae5126c
Add proper tracking issue for EFIAPI
2019-10-25 18:47:58 +00:00
matthewjasper
0c05ed29fd
Apply suggestions from code review
...
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-10-25 18:50:40 +01:00
Yuki Okushi
d40c6afba0
Rollup merge of #65810 - raoulstrackx:ac_mitigation, r=nagisa
...
SGX: Clear additional flag on enclave entry
An attacker could set both the AC flag in CR0 as in rflags. This causes the enclave to perform an AEX upon a misaligned memory access, and an attacker learns some information about the internal enclave state.
The AC flag in rflags is copied from userspace upon an enclave entry. Upon AEX it is copied and later restored. This patch forces the rflag.AC bit to be reset right after an enter.
2019-10-26 02:46:02 +09:00
Yuki Okushi
f0c58e9d85
Rollup merge of #65806 - fusion-engineering-forks:slice-ptr-range, r=Centril
...
Add [T]::as_ptr_range() and [T]::as_mut_ptr_range().
Implementation of https://github.com/rust-lang/rfcs/pull/2791
2019-10-26 02:46:01 +09:00
Yuki Okushi
574b0780ab
Rollup merge of #65800 - michaelwoerister:measureme-0.4.0, r=wesleywiser
...
self-profiling: Update measureme to 0.4.0 and remove non-RAII methods from profiler.
This PR removes all non-RAII based profiling methods from `SelfProfilerRef` 🎉
It also delegates the `TimingGuard` implementation to `measureme`, now that that is available there.
r? @wesleywiser
2019-10-26 02:45:59 +09:00
Yuki Okushi
9192f3625d
Rollup merge of #65799 - LukasKalbertodt:fill-array-value-iter-tracking-issue, r=Centril
...
Fill tracking issue number for `array_value_iter`
Thanks for [noticing](https://github.com/rust-lang/rust/pull/62959#discussion_r338930448 )!
r? @Centril
2019-10-26 02:45:58 +09:00
Yuki Okushi
7068c2d4e9
Rollup merge of #65749 - Centril:insurance-policy, r=RalfJung
...
Insurance policy in case `iter.size_hint()` lies.
Follow up to https://github.com/rust-lang/rust/pull/64949/files#r334235076 .
(If the perf impact is bad we can use `debug_assert!` instead.)
The good news is that the UI tests pass locally so `iter.size_hint()` seems to be honest *thus far*.
On the other hand, with the status quo we do not have an insurance policy should that change in some case. This is problematic because a) this could possibly make some program be accepted which shouldn't, b) the compiler itself could have memory unsafety if the correctness of the iterator is assumed in `unsafe { ... }` code (even though the blame lies with the `unsafe { ... }` block in question.)
r? @RalfJung
cc @nnethercote
2019-10-26 02:45:57 +09:00
Yuki Okushi
a808ba374f
Rollup merge of #65705 - shepmaster:vec-into-raw, r=SimonSapin
...
Add {String,Vec}::into_raw_parts
Aspects to address:
- [x] Create a tracking issue
- #65816
2019-10-26 02:45:56 +09:00
Eduard-Mihai Burtescu
595d19e625
rustc: replace a few .cloned()
with .copied()
.
2019-10-25 20:21:37 +03:00
Eduard-Mihai Burtescu
4d81e9dd2f
rustc: make DefPathData (and friends) Copy (now that it uses Symbol).
2019-10-25 20:03:17 +03:00
roblabla
13d27aff11
Fix inverted check in EFIAPI
2019-10-25 16:04:21 +00:00
roblabla
61732804e2
Fix EFIABI test
...
Use revisions to run the EFIABI in multiple configurations, compiling
for each supported UEFI platform, and checking the ABI generated in the
LLVM IR is correct.
Use no_core to make it easier to test.
2019-10-25 16:04:20 +00:00
Mara Bos
381c4425b7
Fix slice::as_ptr_range doctest.
2019-10-25 18:01:31 +02:00
Mazdak Farrokhzad
dfcfca28ad
Take out an insurance policy in case iter.size_hint()
...
lies, underreporting the number of elements.
2019-10-25 17:43:53 +02:00
Jake Goulding
6600cf6040
Add {String,Vec}::into_raw_parts
2019-10-25 11:25:52 -04:00
Jake Goulding
dce8fabc62
Use ManuallyDrop in examples for {Vec,String}::from_raw_parts
2019-10-25 11:22:53 -04:00
Jake Goulding
0d21d257c9
Remove unneeded pointer casting
2019-10-25 11:20:47 -04:00
Pietro Albini
9c44ca231a
ci: fix tidy
2019-10-25 16:51:12 +02:00
Pietro Albini
fe65c8ef4c
ci: set MSYS_BITS environment variable for all windows builders
...
A few dist builders lacked that variable, causing build failures.
2019-10-25 16:47:41 +02:00
Pietro Albini
19fdc5c07f
ci: fix installation condition for MinGW
...
I mistakenly inverted the "variable is not set" check in bash.
2019-10-25 16:47:41 +02:00
Pietro Albini
db0078706b
ci: split install-msys2 step into two separate scripts
2019-10-25 16:47:41 +02:00
Kevyn Grasso
2337bbb8a4
only relevant parts of type paths highlighted in E0308 type mismatch error message
2019-10-25 10:20:09 -04:00
Pietro Albini
9d15336149
ci: fix wrong path being set in install-msys2.sh
2019-10-25 16:08:43 +02:00
Pietro Albini
d52db03ef0
ci: fix innosetup installation
2019-10-25 16:08:42 +02:00
Pietro Albini
10fa917a13
ci: reuse the mirrors base url from shared.sh in scripts
2019-10-25 16:08:41 +02:00
Pietro Albini
7855ee2aa8
ci: fix tidy
2019-10-25 16:08:39 +02:00
Pietro Albini
4bc4fae073
ci: cleanup platform detection
2019-10-25 16:08:37 +02:00
Pietro Albini
102dc3ddc1
ci: use shared.sh in scripts/install-awscli.sh
2019-10-25 16:08:36 +02:00
Pietro Albini
9c252f14bc
ci: extract verifying line endings into a script
2019-10-25 16:08:35 +02:00
Pietro Albini
9a9d427ef9
ci: extract checking out submodules into a script
2019-10-25 16:08:33 +02:00
Pietro Albini
d264e954dc
ci: extract enabling ipv6 on docker into a script
2019-10-25 16:08:32 +02:00
Pietro Albini
bc9a0dc1b3
ci: extract installing ninja into a script
2019-10-25 16:08:31 +02:00
Pietro Albini
e55059a5e6
ci: extract installing mingw into a script
2019-10-25 16:08:29 +02:00
Pietro Albini
852dfd7a17
ci: extract installing msys2 into a script
2019-10-25 16:08:27 +02:00
Raoul Strackx
5aafa98562
forgot pushfq/popqfq: fixed
2019-10-25 16:06:13 +02:00
Pietro Albini
e0b1b3bbc1
ci: extract disabling git crlf handling into a script
2019-10-25 16:03:11 +02:00
Pietro Albini
6dd074a8f6
ci: extract parts of windows-build-deps into scripts
2019-10-25 16:03:10 +02:00
Pietro Albini
1c0d764049
ci: extract switching xcode into a script
2019-10-25 16:03:08 +02:00
Pietro Albini
c5bbde3e2f
ci: extract installing clang into a script
2019-10-25 16:03:07 +02:00