- 03 12月, 2019 1 次提交
-
-
由 bors 提交于
Layout::pad_to_align is infallible As per [this comment](https://github.com/rust-lang/rust/issues/55724#issuecomment-441421651) (cc @glandium). > Per https://github.com/rust-lang/rust/blob/eb981a1/src/libcore/alloc.rs#L63-L65, `layout.size()` is always <= `usize::MAX - (layout.align() - 1)`. > > Which means: > > * The maximum value `layout.size()` can have is already aligned for `layout.align()` (`layout.align()` being a power of two, `usize::MAX - (layout.align() - 1)` is a multiple of `layout.align()`) > * Incidentally, any value smaller than that maximum value will align at most to that maximum value. > > IOW, `pad_to_align` can not return `Err(LayoutErr)`, except for the layout not respecting its invariants, but we shouldn't care about that. This PR makes `pad_to_align` return `Layout` directly, representing the fact that it cannot fail.
-
- 02 12月, 2019 39 次提交
-
-
由 bors 提交于
Remove interior mutability in mir predecessors cache
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
Remove inline attributes that hadn't been profiled, unexport Cache since it no longer needs to be public
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
Compute predecessors in mir_build query and use existing cache for generating ReadOnlyBodyCache, remove unneeded fns
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, rename all body_cache back to body
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
Simplify BodyCache impl and fix all remaining type errors in librustc_mir (lifetime errors still exist)
-
由 Paul Daniel Faria 提交于
Fix remaining Body -> (ReadOnly)BodyCache type errors in librustc_mir outside of librustc_mir/transform
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
Fix a large number of Body -> (ReadOnly)BodyCache type errors, add predecessor_locations fn to ReadOnlyBodyCache
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
Improved BodyCache body impl so it only returns a sharable ref, add new body_mut method, fix visit macros, simplify usage in codegen_ssa analyzer
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
Simplify Cache wrapper to single type, impl Deref on it, fix all compilation errors in librustc_codegen_ssa
-
由 Paul Daniel Faria 提交于
Move predecessor cache outside of Body, use wrapper types to manage Cache and Body (WIP, amend this commit)
-
由 Paul Daniel Faria 提交于
This ensures that the cache can be properly ignored during encoding and decoding. Fix panics that arose due to lack of encoding
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-
由 Paul Daniel Faria 提交于
-