chansuke
40a0c835b5
Separate libarena::lib module
2019-06-16 13:08:09 +03:00
Eduard-Mihai Burtescu
630ec8880c
Add deny(unused_lifetimes) to all the crates that have deny(internal).
2019-06-11 14:11:59 +03:00
John Kåre Alsaker
ba5d9c094d
Optimize alloc_from_iter
2019-05-23 18:51:46 +02:00
Mateusz Mikuła
87e4b43d51
Deny internal
in stage0
2019-04-17 05:15:00 +02:00
Mazdak Farrokhzad
bdb264ff5f
Rollup merge of #59675 - SimonSapin:stable-alloc, r=alexcrichton
...
Stabilize the `alloc` crate.
This implements RFC 2480:
* https://github.com/rust-lang/rfcs/pull/2480
* https://github.com/rust-lang/rfcs/blob/master/text/2480-liballoc.md
Closes https://github.com/rust-lang/rust/issues/27783
2019-04-14 00:23:25 +02:00
Simon Sapin
fc928a18ba
Stabilize the alloc
crate.
...
This implements RFC 2480:
* https://github.com/rust-lang/rfcs/pull/2480
* https://github.com/rust-lang/rfcs/blob/master/text/2480-liballoc.md
Closes https://github.com/rust-lang/rust/issues/27783
2019-04-12 20:07:30 +02:00
flip1995
d3f0cb9b62
Deny internal lints on non conflicting crates
...
- libarena
- librustc_allocator
- librustc_borrowck
- librustc_codegen_ssa
- librustc_codegen_utils
- librustc_driver
- librustc_errors
- librustc_incremental
- librustc_metadata
- librustc_passes
- librustc_privacy
- librustc_resolve
- librustc_save_analysis
- librustc_target
- librustc_traits
- libsyntax
- libsyntax_ext
- libsyntax_pos
2019-04-03 18:24:21 +02:00
John Kåre Alsaker
59ff059cfc
Add ensure_capacity and rename min to len
2019-04-01 22:35:13 +02:00
John Kåre Alsaker
e8b3aea4d6
Use set_len
2019-04-01 21:52:13 +02:00
John Kåre Alsaker
30e7e9c5f0
Support allocating iterators with arenas
2019-04-01 21:47:55 +02:00
Mazdak Farrokhzad
f996e2b6dc
libarena => 2018
2019-02-11 23:49:48 +01:00
Guillaume Gomez
8b886e07f5
Remove images' url to make it work even without internet connection
2019-02-07 11:06:19 +01:00
Oliver Scherer
03b892860d
Check the correct arena
2019-01-01 20:06:50 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
bors
9abc231212
Auto merge of #56378 - ljedrz:arena_tweaks, r=nagisa
...
arena: speed up TypedArena::clear and improve common patterns
- speed up `TypedArena::clear`: improves its performance by up to **33%** (in case of a single entry)
- simplify `DroplessArena::in_arena`
2018-12-02 11:14:14 +00:00
ljedrz
95f32f1ebd
arena: improve common patterns
2018-12-02 08:18:46 +01:00
ljedrz
ca0806c703
arena: speed up TypedArena::clear
2018-11-30 16:36:20 +01:00
John Kåre Alsaker
946ea1453d
Inline things
2018-11-30 08:14:22 +01:00
Oliver Scherer
bf3d40aa7e
Update TypedArena tests
2018-10-19 14:34:44 +02:00
Oliver Scherer
3c9258e604
Prefer Default::default
over FxHash*::default
in struct constructors
2018-10-19 14:34:44 +02:00
Josh Stone
ce034951fb
Bump to 1.31.0 and bootstrap from 1.30 beta
2018-09-27 20:52:53 -07:00
toidiu
731f4efae5
stabalize infer outlives requirements (RFC 2093).
...
Co-authored-by: nikomatsakis
2018-09-11 11:40:04 -04:00
Niko Matsakis
73fb1622b3
check that adding infer-outlives requirement to all crates works
2018-08-24 17:10:50 -04:00
Corey Farwell
993fb93464
Replace usages of ptr::offset with ptr::{add,sub}.
2018-08-20 07:28:34 -04:00
memoryruins
d2e0c782a9
[nll] libarena: enable feature(nll) for bootstrap
2018-08-09 04:07:59 -04:00
Tatsuyuki Ishi
e098985939
Deny bare_trait_objects globally
2018-07-25 10:25:29 +09:00
ljedrz
5058af7003
Deny bare trait objects in the rest of rust
2018-07-12 13:50:22 +02:00
Simon Sapin
1acbb0a935
Make raw_vec perma-unstable and hidden
2018-06-29 14:01:33 +02:00
John Kåre Alsaker
6c2d875261
Make &Slice a thin pointer
2018-05-27 17:28:35 +02:00
Mark Simulacrum
9e3432447a
Switch to 1.26 bootstrap compiler
2018-05-17 08:47:25 -06:00
John Kåre Alsaker
19d44f2d24
Make arenas thread safe
2018-04-15 20:53:03 +02:00
Mark Simulacrum
c115cc655c
Move deny(warnings) into rustbuild
...
This permits easier iteration without having to worry about warnings
being denied.
Fixes #49517
2018-04-08 16:59:14 -06:00
Vadim Petrochenkov
1a2a23447e
Stabilize attributes on generic parameters
2018-04-05 02:19:56 +03:00
kennytm
30a35164ce
Rollup merge of #47069 - Kagamihime:master, r=nrc
...
rustfmt libarena/lib.rs
Note: it's my very first pull request. I'm trying to do something very simple to see how it works here, even if it's a tiny change or maybe it's not correct (sorry if it is the case).
r? @nrc
2018-01-13 02:26:23 +08:00
Malo Jaffré
cbb32a9418
Fix docs for future pulldown migration
2018-01-01 14:44:12 +01:00
Kagamihime
b2d0d184c3
fixup
2017-12-29 23:06:24 +01:00
Kagamihime
bafbac46f8
rustfmt libarena/lib.rs
2017-12-29 23:04:21 +01:00
Michal Budzynski
04855950b9
stabilized needs_drop ( fixes #41890 )
2017-09-16 23:41:04 +02:00
Tamir Duberstein
b3f50caee0
*: remove crate_{name,type} attributes
...
Fixes #41701 .
2017-08-25 16:18:21 -04:00
Alex Crichton
be7ebdd512
Bump version and stage0 compiler
2017-06-19 22:25:05 -07:00
Alexis Beingessner
e847d46bcb
migrate everything to using mem::needs_drop
2017-05-20 19:27:30 -04:00
Alex Crichton
ab54f4b226
rustc: Remove #![unstable] annotation
...
These are now no longer necessary with `-Z force-unstable-if-unmarked`
2017-05-11 16:03:05 -07:00
Alexis Beingessner
c7cffc5f4e
Deprecate heap::EMPTY in favour of Unique::empty or otherwise.
2017-05-04 23:54:54 -04:00
Seo Sanghyeon
d350c9b15f
Rollup merge of #38664 - apasel422:may-dangle, r=pnkfelix
...
Replace uses of `#[unsafe_destructor_blind_to_params]` with `#[may_dangle]`
CC #34761
r? @pnkfelix
2017-01-10 20:27:41 +09:00
bors
7ac9d337dc
Auto merge of #38679 - alexcrichton:always-deny-warnings, r=nrc
...
Remove not(stage0) from deny(warnings)
Historically this was done to accommodate bugs in lints, but there hasn't been a
bug in a lint since this feature was added which the warnings affected. Let's
completely purge warnings from all our stages by denying warnings in all stages.
This will also assist in tracking down `stage0` code to be removed whenever
we're updating the bootstrap compiler.
2017-01-08 08:22:06 +00:00
Mark Simulacrum
1676bec5bf
Utilize new in_arena method instead of hashing for Lifting interned items
2016-12-31 11:48:48 -07:00
Mark Simulacrum
bb1959f416
Fix TypedArena infinitely looping when inplace reallocation fails.
2016-12-31 08:38:56 -07:00
Mark Simulacrum
9e963b9b2f
Add a non type-specific arena.
...
It relies on the underlying types not having special Drop behavior.
2016-12-31 08:38:55 -07:00
Alex Crichton
9b0b5b45db
Remove not(stage0) from deny(warnings)
...
Historically this was done to accommodate bugs in lints, but there hasn't been a
bug in a lint since this feature was added which the warnings affected. Let's
completely purge warnings from all our stages by denying warnings in all stages.
This will also assist in tracking down `stage0` code to be removed whenever
we're updating the bootstrap compiler.
2016-12-29 21:07:20 -08:00
Andrew Paseltiner
ca9b07bbc9
Replace uses of #[unsafe_destructor_blind_to_params]
with #[may_dangle]
...
CC #34761
2016-12-28 17:47:10 -05:00