Skip to content
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 15 pull requests #76964

Merged
merged 36 commits into from
Sep 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
176956c
Test and fix Sync & Send traits of BTreeMap artefacts
ssomers Sep 14, 2020
21b0c12
Extract some intrinsics out of rustc_codegen_llvm
khyperia Sep 15, 2020
c35ce3f
Don't generate bootstrap usage unless it's needed
jyn514 Sep 16, 2020
94dae60
simplfy condition in ItemLowerer::with_trait_impl_ref()
matthiaskrgr Sep 16, 2020
b7c8bea
Fix wording in mir doc
pickfire Sep 17, 2020
f4a7149
Don't compile regex at every function call.
hbina Sep 17, 2020
b479139
Remove intrinsics::arith_offset use from libarena
est31 Sep 17, 2020
4fe6ca3
Replace const_generics feature gate with min_const_generics
est31 Sep 17, 2020
ebdea01
Remove redundant #![feature(...)] 's from compiler/
est31 Sep 17, 2020
5f58e00
fix array_windows docs
lcnr Sep 17, 2020
012974d
use strip_prefix over starts_with and manual slicing based on pattern…
matthiaskrgr Sep 17, 2020
764d307
docs `array` -> `slice`
lcnr Sep 17, 2020
1dd3df6
black_box: silence unused_mut warning when building with cfg(miri)
RalfJung Sep 17, 2020
76ec3f8
Move to intra doc links in core/src/future
poliorcetics Sep 17, 2020
8e9ad31
Use intra-doc links
denisvasilik Sep 17, 2020
3323a26
Fixed some intra-docs links in library/core
Amjad50 Sep 17, 2020
878dfa6
Fixed intra-docs links in library/std/src/collections/hash/map.rs
Amjad50 Sep 17, 2020
4c92b3d
Apply suggestions from code review
poliorcetics Sep 18, 2020
0810c3e
support panic=abort in Miri
RalfJung Sep 18, 2020
3435683
use `array_windows` instead of `windows` in the compiler
lcnr Sep 17, 2020
bfb221b
array pattern
lcnr Sep 17, 2020
f5e19a3
Rollup merge of #76722 - ssomers:btree_send_sync, r=Mark-Simulacrum
RalfJung Sep 20, 2020
2911b8c
Rollup merge of #76766 - khyperia:generic_intrinsics, r=eddyb
RalfJung Sep 20, 2020
b603143
Rollup merge of #76800 - jyn514:usage, r=Mark-Simulacrum
RalfJung Sep 20, 2020
9b9192a
Rollup merge of #76809 - matthiaskrgr:simplify_cond, r=varkor
RalfJung Sep 20, 2020
c12feb3
Rollup merge of #76815 - pickfire:patch-6, r=jonas-schievink
RalfJung Sep 20, 2020
3268e33
Rollup merge of #76818 - hbina:dont_compile_regex_all_the_time, r=ecs…
RalfJung Sep 20, 2020
4322e1b
Rollup merge of #76821 - est31:remove_redundant_nightly_features, r=o…
RalfJung Sep 20, 2020
df4e4ef
Rollup merge of #76823 - RalfJung:black-box-warn, r=joshtriplett
RalfJung Sep 20, 2020
50d56bc
Rollup merge of #76825 - lcnr:array-windows-apply, r=varkor
RalfJung Sep 20, 2020
c124d43
Rollup merge of #76827 - lcnr:array_windows-docs, r=jonas-schievink
RalfJung Sep 20, 2020
bfa1904
Rollup merge of #76828 - matthiaskrgr:clippy_manual_strip, r=lcnr
RalfJung Sep 20, 2020
a815184
Rollup merge of #76840 - poliorcetics:intra-doc-core-sync-and-future,…
RalfJung Sep 20, 2020
6d0890e
Rollup merge of #76845 - Amjad50:fix-intra-docs-links, r=jyn514
RalfJung Sep 20, 2020
70f55a7
Rollup merge of #76853 - denisvasilik:intra-doc-links-core-wake, r=jy…
RalfJung Sep 20, 2020
e5be14c
Rollup merge of #76871 - RalfJung:miri-panic-abort, r=dtolnay
RalfJung Sep 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions compiler/rustc_arena/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
html_root_url = "https://doc.rust-lang.org/nightly/",
test(no_crate_inject, attr(deny(warnings)))
)]
#![feature(core_intrinsics)]
#![feature(dropck_eyepatch)]
#![feature(new_uninit)]
#![feature(maybe_uninit_slice)]
Expand All @@ -24,7 +23,6 @@ use smallvec::SmallVec;
use std::alloc::Layout;
use std::cell::{Cell, RefCell};
use std::cmp;
use std::intrinsics;
use std::marker::{PhantomData, Send};
use std::mem::{self, MaybeUninit};
use std::ptr;
Expand Down Expand Up @@ -122,7 +120,7 @@ impl<T> TypedArena<T> {

unsafe {
if mem::size_of::<T>() == 0 {
self.ptr.set(intrinsics::arith_offset(self.ptr.get() as *mut u8, 1) as *mut T);
self.ptr.set((self.ptr.get() as *mut u8).wrapping_offset(1) as *mut T);
let ptr = mem::align_of::<T>() as *mut T;
// Don't drop the object. This `write` is equivalent to `forget`.
ptr::write(ptr, object);
Expand Down
4 changes: 0 additions & 4 deletions compiler/rustc_ast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
//! This API is completely unstable and subject to change.

#![doc(html_root_url = "https://doc.rust-lang.org/nightly/", test(attr(deny(warnings))))]
#![feature(bool_to_option)]
#![feature(box_syntax)]
#![feature(const_fn)] // For the `transmute` in `P::new`
#![feature(const_panic)]
#![feature(const_fn_transmute)]
#![feature(crate_visibility_modifier)]
#![feature(label_break_value)]
#![feature(nll)]
#![feature(or_patterns)]
#![feature(try_trait)]
#![feature(unicode_internals)]
#![recursion_limit = "256"]

#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_ast_lowering/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub(super) struct ItemLowerer<'a, 'lowering, 'hir> {
impl ItemLowerer<'_, '_, '_> {
fn with_trait_impl_ref(&mut self, impl_ref: &Option<TraitRef>, f: impl FnOnce(&mut Self)) {
let old = self.lctx.is_in_trait_impl;
self.lctx.is_in_trait_impl = if let &None = impl_ref { false } else { true };
self.lctx.is_in_trait_impl = impl_ref.is_some();
f(self);
self.lctx.is_in_trait_impl = old;
}
Expand Down
Loading