Skip to content
Closed
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
a06edda
Fix segfault if pthread_getattr_np fails
tavianator Sep 9, 2020
a684153
Only call pthread_attr_destroy() after getattr_np() succeeds on all l…
tavianator Sep 9, 2020
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
eede953
Only get ImplKind::Impl once
tesuji Sep 10, 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
4c92b3d
Apply suggestions from code review
poliorcetics Sep 18, 2020
c5968e8
Let user see the full type of type-length limit error
kornelski Sep 16, 2020
3435683
use `array_windows` instead of `windows` in the compiler
lcnr Sep 17, 2020
bfb221b
array pattern
lcnr Sep 17, 2020
0e0576f
Rollup merge of #76521 - tavianator:fix-pthread-getattr-destroy, r=Am…
RalfJung Sep 20, 2020
db15253
Rollup merge of #76722 - ssomers:btree_send_sync, r=Mark-Simulacrum
RalfJung Sep 20, 2020
7826459
Rollup merge of #76766 - khyperia:generic_intrinsics, r=eddyb
RalfJung Sep 20, 2020
532df00
Rollup merge of #76783 - lzutao:rd_impl_kind, r=GuillaumeGomez
RalfJung Sep 20, 2020
7be31df
Rollup merge of #76800 - jyn514:usage, r=Mark-Simulacrum
RalfJung Sep 20, 2020
d09cf6c
Rollup merge of #76809 - matthiaskrgr:simplify_cond, r=varkor
RalfJung Sep 20, 2020
e6de86d
Rollup merge of #76815 - pickfire:patch-6, r=jonas-schievink
RalfJung Sep 20, 2020
eda93f9
Rollup merge of #76818 - hbina:dont_compile_regex_all_the_time, r=ecs…
RalfJung Sep 20, 2020
013daa5
Rollup merge of #76821 - est31:remove_redundant_nightly_features, r=o…
RalfJung Sep 20, 2020
62ffe40
Rollup merge of #76823 - RalfJung:black-box-warn, r=joshtriplett
RalfJung Sep 20, 2020
2645d05
Rollup merge of #76825 - lcnr:array-windows-apply, r=varkor
RalfJung Sep 20, 2020
b369345
Rollup merge of #76827 - lcnr:array_windows-docs, r=jonas-schievink
RalfJung Sep 20, 2020
fe7ce2c
Rollup merge of #76828 - matthiaskrgr:clippy_manual_strip, r=lcnr
RalfJung Sep 20, 2020
0342f8a
Rollup merge of #76840 - poliorcetics:intra-doc-core-sync-and-future,…
RalfJung Sep 20, 2020
484e207
Rollup merge of #76843 - kornelski:longtypetofile, r=ecstatic-morse
RalfJung Sep 20, 2020
File filter

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