-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 16 pull requests #62355
Rollup of 16 pull requests #62355
Commits on Jun 27, 2019
-
rename InterpretCx -> InterpCx
That's more consistent with InterpResult and InterpError.
Configuration menu - View commit details
-
Copy full SHA for fc918a3 - Browse repository at this point
Copy the full SHA fc918a3View commit details
Commits on Jun 29, 2019
-
wfcheck: resolve the type-vars in
AdtField
typesNormalization can leave some type-vars unresolved in its return type. Make sure to resolve them so we have an infcx-independent type that can be used with `needs_drop`. Fixes rust-lang#61402.
Configuration menu - View commit details
-
Copy full SHA for a02d436 - Browse repository at this point
Copy the full SHA a02d436View commit details
Commits on Jun 30, 2019
-
Update mem::replace example to not be identical to mem::take
This also adds assertions that the operations work as expected.
Configuration menu - View commit details
-
Copy full SHA for f7061db - Browse repository at this point
Copy the full SHA f7061dbView commit details
Commits on Jul 1, 2019
-
syntax: Unsupport
foo! bar { ... }
macros in the parserUnreserve `macro_rules` as a macro name
Configuration menu - View commit details
-
Copy full SHA for 3f39dc1 - Browse repository at this point
Copy the full SHA 3f39dc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0dc41a - Browse repository at this point
Copy the full SHA d0dc41aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d6b1d1 - Browse repository at this point
Copy the full SHA 8d6b1d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b49fb76 - Browse repository at this point
Copy the full SHA b49fb76View commit details
Commits on Jul 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8a3797b - Browse repository at this point
Copy the full SHA 8a3797bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 636f5e6 - Browse repository at this point
Copy the full SHA 636f5e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0c199a - Browse repository at this point
Copy the full SHA b0c199aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1443abc - Browse repository at this point
Copy the full SHA 1443abcView commit details -
Configuration menu - View commit details
-
Copy full SHA for eddfad3 - Browse repository at this point
Copy the full SHA eddfad3View commit details -
refactor check_for_substitution
No behavior change, just flatter and simpler code
Configuration menu - View commit details
-
Copy full SHA for dc088b2 - Browse repository at this point
Copy the full SHA dc088b2View commit details -
When possible without changing semantics, implement Iterator::last in…
… terms of DoubleEndedIterator::next_back for types in liballoc and libcore. Provided that the iterator has finite length and does not trigger user-provided code, this is safe. What follows is a full list of the DoubleEndedIterators in liballoc/libcore and whether this optimization is safe, and if not, why not. src/liballoc/boxed.rs Box: Pass through to avoid defeating optimization of the underlying DoubleIterator implementation. This has no correctness impact. src/liballoc/collections/binary_heap.rs Iter: Pass through to avoid defeating optimizations on slice::Iter IntoIter: Not safe, changes Drop order Drain: Not safe, changes Drop order src/liballoc/collections/btree/map.rs Iter: Safe to call next_back, invokes no user defined code. IterMut: ditto IntoIter: Not safe, changes Drop order Keys: Safe to call next_back, invokes no user defined code. Values: ditto ValuesMut: ditto Range: ditto RangeMut: ditto src/liballoc/collections/btree/set.rs Iter: Safe to call next_back, invokes no user defined code. IntoIter: Not safe, changes Drop order Range: Safe to call next_back, invokes no user defined code. src/liballoc/collections/linked_list.rs Iter: Safe to call next_back, invokes no user defined code. IterMut: ditto IntoIter: Not safe, changes Drop order src/liballoc/collections/vec_deque.rs Iter: Safe to call next_back, invokes no user defined code. IterMut: ditto IntoIter: Not safe, changes Drop order Drain: ditto src/liballoc/string.rs Drain: Safe because return type is a primitive (char) src/liballoc/vec.rs IntoIter: Not safe, changes Drop order Drain: ditto Splice: ditto src/libcore/ascii.rs EscapeDefault: Safe because return type is a primitive (u8) src/libcore/iter/adapters/chain.rs Chain: Not safe, invokes user defined code (Iterator impl) src/libcore/iter/adapters/flatten.rs FlatMap: Not safe, invokes user defined code (Iterator impl) Flatten: ditto FlattenCompat: ditto src/libcore/iter/adapters/mod.rs Rev: Not safe, invokes user defined code (Iterator impl) Copied: ditto Cloned: Not safe, invokes user defined code (Iterator impl and T::clone) Map: Not safe, invokes user defined code (Iterator impl + closure) Filter: ditto FilterMap: ditto Enumerate: Not safe, invokes user defined code (Iterator impl) Skip: ditto Fuse: ditto Inspect: ditto src/libcore/iter/adapters/zip.rs Zip: Not safe, invokes user defined code (Iterator impl) src/libcore/iter/range.rs ops::Range: Not safe, changes Drop order, but ALREADY HAS SPECIALIZATION ops::RangeInclusive: ditto src/libcore/iter/sources.rs Repeat: Not safe, calling last should iloop. Empty: No point, iterator is at most one item long. Once: ditto OnceWith: ditto src/libcore/option.rs Item: No point, iterator is at most one item long. Iter: ditto IterMut: ditto IntoIter: ditto src/libcore/result.rs Iter: No point, iterator is at most one item long IterMut: ditto IntoIter: ditto src/libcore/slice/mod.rs Split: Not safe, invokes user defined closure SplitMut: ditto RSplit: ditto RSplitMut: ditto Windows: Safe, already has specialization Chunks: ditto ChunksMut: ditto ChunksExact: ditto ChunksExactMut: ditto RChunks: ditto RChunksMut: ditto RChunksExact: ditto RChunksExactMut: ditto src/libcore/str/mod.rs Chars: Safe, already has specialization CharIndices: ditto Bytes: ditto Lines: Safe to call next_back, invokes no user defined code. LinesAny: Deprecated Everything that is generic over P: Pattern: Not safe because Pattern invokes user defined code. SplitWhitespace: Safe to call next_back, invokes no user defined code. SplitAsciiWhitespace: ditto
Configuration menu - View commit details
-
Copy full SHA for db16e17 - Browse repository at this point
Copy the full SHA db16e17View commit details -
Configuration menu - View commit details
-
Copy full SHA for c004451 - Browse repository at this point
Copy the full SHA c004451View commit details -
Use link attributes on extern "C" blocks with llvm-libuwind
When llvm-libunwind feature is enabled, we need to use link attribute on extern "C" blocks to make sure that symbols provided by LLVM's libunwind that's built as part of Rust's libunwind crate are re-exported. This addresses issue rust-lang#62088.
Configuration menu - View commit details
-
Copy full SHA for 8d2f80b - Browse repository at this point
Copy the full SHA 8d2f80bView commit details
Commits on Jul 3, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 87e8613 - Browse repository at this point
Copy the full SHA 87e8613View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0477e07 - Browse repository at this point
Copy the full SHA 0477e07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ae80cf - Browse repository at this point
Copy the full SHA 6ae80cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for d50a3a7 - Browse repository at this point
Copy the full SHA d50a3a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec71176 - Browse repository at this point
Copy the full SHA ec71176View commit details -
Configuration menu - View commit details
-
Copy full SHA for d28832d - Browse repository at this point
Copy the full SHA d28832dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cd4df7 - Browse repository at this point
Copy the full SHA 3cd4df7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80f4c49 - Browse repository at this point
Copy the full SHA 80f4c49View commit details -
Configuration menu - View commit details
-
Copy full SHA for b17cec5 - Browse repository at this point
Copy the full SHA b17cec5View commit details -
Configuration menu - View commit details
-
Copy full SHA for edcde70 - Browse repository at this point
Copy the full SHA edcde70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88c515d - Browse repository at this point
Copy the full SHA 88c515dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4712f0 - Browse repository at this point
Copy the full SHA b4712f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c51802a - Browse repository at this point
Copy the full SHA c51802aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4dd5edc - Browse repository at this point
Copy the full SHA 4dd5edcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6225607 - Browse repository at this point
Copy the full SHA 6225607View commit details -
Rollup merge of rust-lang#62039 - jeremystucki:needless_lifetimes, r=…
…eddyb Remove needless lifetimes (rustc)
Configuration menu - View commit details
-
Copy full SHA for e8a88f7 - Browse repository at this point
Copy the full SHA e8a88f7View commit details -
Rollup merge of rust-lang#62173 - RalfJung:miri-interp, r=oli-obk
rename InterpretCx -> InterpCx That's more consistent with InterpResult and InterpError. r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for 740d5bd - Browse repository at this point
Copy the full SHA 740d5bdView commit details -
Rollup merge of rust-lang#62240 - arielb1:resolve-wf-fields, r=pnkfelix
wfcheck: resolve the type-vars in `AdtField` types Normalization can leave some type-vars unresolved in its return type. Make sure to resolve them so we have an infcx-independent type that can be used with `needs_drop`. Fixes rust-lang#61402. Closes rust-lang#62212 - this PR fixes the root cause.
Configuration menu - View commit details
-
Copy full SHA for 6cfd474 - Browse repository at this point
Copy the full SHA 6cfd474View commit details -
Rollup merge of rust-lang#62249 - czipperz:use-mem-take-instead-of-re…
…place-default, r=dtolnay,Centril Use mem::take instead of mem::replace with default
Configuration menu - View commit details
-
Copy full SHA for 88c007c - Browse repository at this point
Copy the full SHA 88c007cView commit details -
Rollup merge of rust-lang#62252 - czipperz:change-mem-replace-doc-exa…
…mple, r=dtolnay Update mem::replace example to not be identical to mem::take This also adds assertions that the operations work as expected.
Configuration menu - View commit details
-
Copy full SHA for 944bda9 - Browse repository at this point
Copy the full SHA 944bda9View commit details -
Rollup merge of rust-lang#62258 - petrochenkov:idclean, r=Centril
syntax: Unsupport `foo! bar { ... }` macros in the parser Their support in expansion was removed in rust-lang#61606. Also un-reserve `macro_rules` as a macro name, there's no ambiguity between `macro_rules` definitions and macro calls (it also wasn't reserved correctly). cc rust-lang/wg-grammar#51
Configuration menu - View commit details
-
Copy full SHA for 8867ba1 - Browse repository at this point
Copy the full SHA 8867ba1View commit details -
Rollup merge of rust-lang#62268 - Zoxc:inherent_impls, r=eddyb
Clean up inherent_impls Split out from rust-lang#61923. r? @eddyb
Configuration menu - View commit details
-
Copy full SHA for d7e42cc - Browse repository at this point
Copy the full SHA d7e42ccView commit details -
Rollup merge of rust-lang#62287 - petrhosek:libunwind-link-attribute,…
… r=tmandry Use link attributes on extern "C" blocks with llvm-libuwind When llvm-libunwind feature is enabled, we need to use link attribute on extern "C" blocks to make sure that symbols provided by LLVM's libunwind that's built as part of Rust's libunwind crate are re-exported. This addresses issue rust-lang#62088.
Configuration menu - View commit details
-
Copy full SHA for d93b52f - Browse repository at this point
Copy the full SHA d93b52fView commit details -
Rollup merge of rust-lang#62295 - RalfJung:miri-realloc, r=cramertj
miri realloc: do not require giving old size+align
Configuration menu - View commit details
-
Copy full SHA for 44f22e6 - Browse repository at this point
Copy the full SHA 44f22e6View commit details -
Rollup merge of rust-lang#62297 - matklad:peek-delimited, r=petrochenkov
refactor check_for_substitution No behavior change, just flatter and simpler code. r? @petrochenkov
Configuration menu - View commit details
-
Copy full SHA for c0ec567 - Browse repository at this point
Copy the full SHA c0ec567View commit details -
Rollup merge of rust-lang#62316 - khuey:efficient_last, r=sfackler
When possible without changing semantics, implement Iterator::last in terms of DoubleEndedIterator::next_back for types in liballoc and libcore. Provided that the iterator has finite length and does not trigger user-provided code, this is safe. What follows is a full list of the DoubleEndedIterators in liballoc/libcore and whether this optimization is safe, and if not, why not. src/liballoc/boxed.rs Box: Pass through to avoid defeating optimization of the underlying DoubleIterator implementation. This has no correctness impact. src/liballoc/collections/binary_heap.rs Iter: Pass through to avoid defeating optimizations on slice::Iter IntoIter: Not safe, changes Drop order Drain: Not safe, changes Drop order src/liballoc/collections/btree/map.rs Iter: Safe to call next_back, invokes no user defined code. IterMut: ditto IntoIter: Not safe, changes Drop order Keys: Safe to call next_back, invokes no user defined code. Values: ditto ValuesMut: ditto Range: ditto RangeMut: ditto src/liballoc/collections/btree/set.rs Iter: Safe to call next_back, invokes no user defined code. IntoIter: Not safe, changes Drop order Range: Safe to call next_back, invokes no user defined code. src/liballoc/collections/linked_list.rs Iter: Safe to call next_back, invokes no user defined code. IterMut: ditto IntoIter: Not safe, changes Drop order src/liballoc/collections/vec_deque.rs Iter: Safe to call next_back, invokes no user defined code. IterMut: ditto IntoIter: Not safe, changes Drop order Drain: ditto src/liballoc/string.rs Drain: Safe because return type is a primitive (char) src/liballoc/vec.rs IntoIter: Not safe, changes Drop order Drain: ditto Splice: ditto src/libcore/ascii.rs EscapeDefault: Safe because return type is a primitive (u8) src/libcore/iter/adapters/chain.rs Chain: Not safe, invokes user defined code (Iterator impl) src/libcore/iter/adapters/flatten.rs FlatMap: Not safe, invokes user defined code (Iterator impl) Flatten: ditto FlattenCompat: ditto src/libcore/iter/adapters/mod.rs Rev: Not safe, invokes user defined code (Iterator impl) Copied: ditto Cloned: Not safe, invokes user defined code (Iterator impl and T::clone) Map: Not safe, invokes user defined code (Iterator impl + closure) Filter: ditto FilterMap: ditto Enumerate: Not safe, invokes user defined code (Iterator impl) Skip: ditto Fuse: ditto Inspect: ditto src/libcore/iter/adapters/zip.rs Zip: Not safe, invokes user defined code (Iterator impl) src/libcore/iter/range.rs ops::Range: Not safe, changes Drop order, but ALREADY HAS SPECIALIZATION ops::RangeInclusive: ditto src/libcore/iter/sources.rs Repeat: Not safe, calling last should iloop. Empty: No point, iterator is at most one item long. Once: ditto OnceWith: ditto src/libcore/option.rs Item: No point, iterator is at most one item long. Iter: ditto IterMut: ditto IntoIter: ditto src/libcore/result.rs Iter: No point, iterator is at most one item long IterMut: ditto IntoIter: ditto src/libcore/slice/mod.rs Split: Not safe, invokes user defined closure SplitMut: ditto RSplit: ditto RSplitMut: ditto Windows: Safe, already has specialization Chunks: ditto ChunksMut: ditto ChunksExact: ditto ChunksExactMut: ditto RChunks: ditto RChunksMut: ditto RChunksExact: ditto RChunksExactMut: ditto src/libcore/str/mod.rs Chars: Safe, already has specialization CharIndices: ditto Bytes: ditto Lines: Safe to call next_back, invokes no user defined code. LinesAny: Deprecated Everything that is generic over P: Pattern: Not safe because Pattern invokes user defined code. SplitWhitespace: Safe to call next_back, invokes no user defined code. SplitAsciiWhitespace: ditto This is attempt 2 of rust-lang#60130. r? @sfackler
Configuration menu - View commit details
-
Copy full SHA for 4049a3c - Browse repository at this point
Copy the full SHA 4049a3cView commit details -
Rollup merge of rust-lang#62317 - JohnTitor:move-tests-to-build-pass,…
… r=Centril Migrate `compile-pass` annotations to `build-pass` This is a part of rust-lang#62277. As a first step, the `compile-pass` tests are migrated to `build-pass`. r? @cramertj cc @Centril
Configuration menu - View commit details
-
Copy full SHA for 9193497 - Browse repository at this point
Copy the full SHA 9193497View commit details -
Rollup merge of rust-lang#62337 - Mark-Simulacrum:fix-cpu-usage-scrip…
…t, r=alexcrichton Fix bucket in CPU usage script r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for cd1fa00 - Browse repository at this point
Copy the full SHA cd1fa00View commit details -
Rollup merge of rust-lang#62344 - matklad:simplify-option, r=sfackler
simplify Option::get_or_insert I am pretty sure that the optimized result will be the same, and it's one `unsafe` less in the stdlib!
Configuration menu - View commit details
-
Copy full SHA for 839e89c - Browse repository at this point
Copy the full SHA 839e89cView commit details -
Rollup merge of rust-lang#62346 - RalfJung:miri-tests, r=Centril
enable a few more tests in Miri and update the comment for others
Configuration menu - View commit details
-
Copy full SHA for 144ed02 - Browse repository at this point
Copy the full SHA 144ed02View commit details -
Rollup merge of rust-lang#62351 - RalfJung:drop-in-place, r=cramertj
remove bogus example from drop_in_place Fixes rust-lang#62313
Configuration menu - View commit details
-
Copy full SHA for 6363a58 - Browse repository at this point
Copy the full SHA 6363a58View commit details