about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2019-12-03Move duration_to_secs_str to rustc_sessionMark Rousskov-9/+1
2019-12-03Move cgu_reuse_tracker to librustc_sessionMark Rousskov-136/+1
2019-12-03Introduce rustc_session crateMark Rousskov-0/+1
2019-12-03Decouple CguReuseTracker from SessionMark Rousskov-4/+3
2019-12-03Use FxHash* from data structures not nodemapMark Rousskov-1/+1
2019-12-03rustc: add docs to FnAbi::{of_fn_ptr,of_instance} and InstanceDef::Virtual.Eduard-Mihai Burtescu-1/+16
2019-12-03rustc: move Instance::fn_sig to ty::layout and privatize it.Eduard-Mihai Burtescu-66/+72
2019-12-03rustc_target: add abi::call::Conv::Rust distinct from Conv::C.Eduard-Mihai Burtescu-1/+1
2019-12-03rustc: take a PolyFnSig instead of an FnSig in FnAbi::of_fn_ptr.Eduard-Mihai Burtescu-7/+8
2019-12-03rustc: rename FnAbi::new to FnAbi::of_fn_ptr.Eduard-Mihai Burtescu-2/+2
2019-12-03rustc: compute FnAbi's for virtual calls through FnAbi::of_instance.Eduard-Mihai Burtescu-12/+8
2019-12-03rustc: use ReifyShim for reifying Virtual call instances.Eduard-Mihai Burtescu-12/+20
2019-12-03rustc: expose the mir::Body reference lifetime from mir::ReadOnlyBodyCache ↵Eduard-Mihai Burtescu-10/+2
(#64736 fallout).
2019-12-03rustc: combine Instance::fn_sig_noadjust and Instance::fn_sig.Eduard-Mihai Burtescu-17/+15
2019-12-03Rollup merge of #66941 - CAD97:nord, r=Dylan-DPCMazdak Farrokhzad-1/+0
Remove `ord` lang item At this point it seems to be unused, and just `partial_ord` is used instead. This removes the unused lang item.
2019-12-03Rollup merge of #66935 - petrochenkov:attrtok2, r=CentrilMazdak Farrokhzad-2/+12
syntax: Unify macro and attribute arguments in AST The unified form (`ast::MacArgs`) represents parsed arguments instead of an unstructured token stream that was previously used for attributes. It also tracks some spans and delimiter kinds better for fn-like macros and macro definitions. I've been talking about implementing this with @nnethercote in https://github.com/rust-lang/rust/pull/65750#issuecomment-546517322. The parsed representation is closer to `MetaItem` and requires less token juggling during conversions, so it potentially may be faster. r? @Centril
2019-12-03Rollup merge of #66651 - Areredify:on-unimplemented-scope, r=davidtwcoMazdak Farrokhzad-14/+49
Add `enclosing scope` parameter to `rustc_on_unimplemented` Adds a new parameter to `#[rustc_on_unimplemented]`, `enclosing scope`, which highlights the function or closure scope with a message. The wip part refers to adding this annotation to `Try` trait to improve ergonomics (which I don't know how to do since I change both std and librustc) Closes #61709.
2019-12-03Update measureme crate to 0.5.0.Michael Woerister-1/+1
2019-12-03const fns can read constants that invoke unstable const fnsOliver Scherer-1/+1
2019-12-03Explain the difference between the two whitelistsOliver Scherer-0/+9
2019-12-03Move all intrinsic whitelists into the constness check fileOliver Scherer-0/+35
2019-12-03Check intrinsics for callability in const fnsMahmut Bulut-3/+67
2019-12-02syntax: Use `ast::MacArgs` for macro definitionsVadim Petrochenkov-1/+1
2019-12-02syntax: Use `ast::MacArgs` for attributesVadim Petrochenkov-1/+11
2019-12-02rustc: allow non-empty ParamEnv's in global trait select/eval caches.Eduard-Mihai Burtescu-8/+4
2019-12-02rustc: include ParamEnv in global trait select/eval cache keys.Eduard-Mihai Burtescu-16/+19
2019-12-02Auto merge of #64736 - Nashenas88:mir_predecessors_cache_cleanup, r=oli-obkbors-141/+326
Remove interior mutability in mir predecessors cache
2019-12-02Use new HashStable proc macroPaul Daniel Faria-6/+1
2019-12-02Fix type errors created during rebasingPaul Daniel Faria-8/+1
2019-12-02Remove unchecked inline attribute, remove unused functions, make chache mod ↵Paul Daniel Faria-48/+26
private again
2019-12-02Remove inline attributes that hadn't been profiled, unexport Cache since it ↵Paul Daniel Faria-17/+1
no longer needs to be public
2019-12-02Compute predecessors in mir_build query and use existing cache for ↵Paul Daniel Faria-10/+0
generating ReadOnlyBodyCache, remove unneeded fns
2019-12-02Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, ↵Paul Daniel Faria-33/+21
rename all body_cache back to body
2019-12-02Remove BodyCache.body and rely on Deref as much as possible for ↵Paul Daniel Faria-18/+18
ReadOnlyBodyCache
2019-12-02Fix tidy errorsPaul Daniel Faria-3/+10
2019-12-02Fix remaining compilation issuesPaul Daniel Faria-10/+44
2019-12-02Simplify BodyCache impl and fix all remaining type errors in librustc_mir ↵Paul Daniel Faria-137/+113
(lifetime errors still exist)
2019-12-02Add predecessors fn to ReadOnlyBodyCache, fix more Body -> ↵Paul Daniel Faria-2/+6
(ReadOnly)BodyCache type errors
2019-12-02Add read_only fn to BodyCache<&mut...> impl, fix more Body -> ↵Paul Daniel Faria-0/+9
(ReadOnly)BodyCache type errors
2019-12-02Fix a large number of Body -> (ReadOnly)BodyCache type errors, add ↵Paul Daniel Faria-21/+43
predecessor_locations fn to ReadOnlyBodyCache
2019-12-02Account for new maybe_sideeffect helper that requires predecessorsPaul Daniel Faria-54/+128
2019-12-02Improved BodyCache body impl so it only returns a sharable ref, add new ↵Paul Daniel Faria-6/+16
body_mut method, fix visit macros, simplify usage in codegen_ssa analyzer
2019-12-02Simplify Cache wrapper to single type, impl Deref on it, fix all compilation ↵Paul Daniel Faria-52/+60
errors in librustc_codegen_ssa
2019-12-02Move predecessor cache outside of Body, use wrapper types to manage Cache ↵Paul Daniel Faria-150/+258
and Body (WIP, amend this commit)
2019-12-02Move predecessors cache back to its own typePaul Daniel Faria-12/+58
This ensures that the cache can be properly ignored during encoding and decoding. Fix panics that arose due to lack of encoding
2019-12-02Add back cache invalidation to basic_blocks_and_local_decls_mutPaul Daniel Faria-1/+3
2019-12-02Address excessive line length that was triggering warning during lintingPaul Daniel Faria-1/+5
2019-12-02Move predecessors cache invalidation back to basic_blocks_mut, add a couple ↵Paul Daniel Faria-55/+17
more ensure_predecessors to prevent panics
2019-12-02Ensure predecessors are recomputed at critical points, fixes panicsPaul Daniel Faria-17/+18
2019-12-02Address linting errors caught by CIPaul Daniel Faria-2/+4