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 11 pull requests #58389

Merged
merged 24 commits into from
Feb 12, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
94c609c
Transition libserialize to 2018 edition
h-michael Feb 7, 2019
aa775a5
rustc-std-workspace-core => 2018
taiki-e Feb 8, 2019
36806b5
rustc-workspace-hack => 2018
taiki-e Feb 8, 2019
fe27623
librustc_typeck => 2018
taiki-e Feb 8, 2019
360e65d
Move some tests into the tests directory
taiki-e Feb 9, 2019
06b6304
Cleanup imports
taiki-e Feb 9, 2019
be71fcc
librustc_codegen_ssa => 2018
taiki-e Feb 9, 2019
0a16b87
Use ? in librustc macros
matthewjasper Feb 9, 2019
2be0993
Revert removed #![feature(nll)]
taiki-e Feb 10, 2019
c80466c
Remove two dead functions.
nnethercote Feb 11, 2019
34052a1
remove "experimental" wording from std::os::unix
euclio Feb 11, 2019
f996e2b
libarena => 2018
Centril Feb 2, 2019
0ce5129
libterm => 2018
Centril Feb 3, 2019
3dbb31e
Rollup merge of #58105 - Centril:libarena-trans-2018, r=oli-obk
Centril Feb 12, 2019
3ca1b70
Rollup merge of #58111 - Centril:libterm-2018, r=oli-obk
Centril Feb 12, 2019
95ffa78
Rollup merge of #58287 - taiki-e:rustc-std-workspace-core-2018, r=ale…
Centril Feb 12, 2019
b8fe6f9
Rollup merge of #58288 - taiki-e:rustc-workspace-hack-2018, r=alexcri…
Centril Feb 12, 2019
a84c933
Rollup merge of #58300 - taiki-e:librustc_typeck-2018, r=petrochenkov
Centril Feb 12, 2019
d943453
Rollup merge of #58313 - matthewjasper:use-question-in-macros, r=oli-obk
Centril Feb 12, 2019
308c07b
Rollup merge of #58318 - taiki-e:libserialize-2018, r=Centril
Centril Feb 12, 2019
4f2d0cf
Rollup merge of #58322 - taiki-e:librustc_codegen_ssa-2018, r=petroch…
Centril Feb 12, 2019
f04d085
Rollup merge of #58342 - taiki-e:nll, r=matthewjasper
Centril Feb 12, 2019
5dc5712
Rollup merge of #58367 - nnethercote:rm-two-dead-funcs, r=alexcrichton
Centril Feb 12, 2019
33d2c9f
Rollup merge of #58382 - euclio:unix-ext, r=dtolnay
Centril Feb 12, 2019
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
3 changes: 2 additions & 1 deletion src/libarena/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
authors = ["The Rust Project Developers"]
name = "arena"
version = "0.0.0"
edition = "2018"

[lib]
name = "arena"
path = "lib.rs"
crate-type = ["dylib"]

[dependencies]
rustc_data_structures = { path = "../librustc_data_structures" }
rustc_data_structures = { path = "../librustc_data_structures" }
18 changes: 9 additions & 9 deletions src/libarena/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
test(no_crate_inject, attr(deny(warnings))))]

#![deny(rust_2018_idioms)]

#![feature(alloc)]
#![feature(core_intrinsics)]
#![feature(dropck_eyepatch)]
#![feature(nll)]
#![feature(raw_vec_internals)]
#![cfg_attr(test, feature(test))]

#![allow(deprecated)]

extern crate alloc;
extern crate rustc_data_structures;

use rustc_data_structures::sync::MTLock;

Expand Down Expand Up @@ -476,7 +476,7 @@ impl SyncDroplessArena {
#[cfg(test)]
mod tests {
extern crate test;
use self::test::Bencher;
use test::Bencher;
use super::TypedArena;
use std::cell::Cell;

Expand Down Expand Up @@ -511,15 +511,15 @@ mod tests {

impl<'a> Wrap<'a> {
fn alloc_inner<F: Fn() -> Inner>(&self, f: F) -> &Inner {
let r: &EI = self.0.alloc(EI::I(f()));
let r: &EI<'_> = self.0.alloc(EI::I(f()));
if let &EI::I(ref i) = r {
i
} else {
panic!("mismatch");
}
}
fn alloc_outer<F: Fn() -> Outer<'a>>(&self, f: F) -> &Outer {
let r: &EI = self.0.alloc(EI::O(f()));
fn alloc_outer<F: Fn() -> Outer<'a>>(&self, f: F) -> &Outer<'_> {
let r: &EI<'_> = self.0.alloc(EI::O(f()));
if let &EI::O(ref o) = r {
o
} else {
Expand Down Expand Up @@ -609,7 +609,7 @@ mod tests {
count: &'a Cell<u32>,
}

impl<'a> Drop for DropCounter<'a> {
impl Drop for DropCounter<'_> {
fn drop(&mut self) {
self.count.set(self.count.get() + 1);
}
Expand All @@ -619,7 +619,7 @@ mod tests {
fn test_typed_arena_drop_count() {
let counter = Cell::new(0);
{
let arena: TypedArena<DropCounter> = TypedArena::default();
let arena: TypedArena<DropCounter<'_>> = TypedArena::default();
for _ in 0..100 {
// Allocate something with drop glue to make sure it doesn't leak.
arena.alloc(DropCounter { count: &counter });
Expand All @@ -631,7 +631,7 @@ mod tests {
#[test]
fn test_typed_arena_drop_on_clear() {
let counter = Cell::new(0);
let mut arena: TypedArena<DropCounter> = TypedArena::default();
let mut arena: TypedArena<DropCounter<'_>> = TypedArena::default();
for i in 0..10 {
for _ in 0..100 {
// Allocate something with drop glue to make sure it doesn't leak.
Expand Down