about summary refs log tree commit diff
path: root/src/librustc/macros.rs
AgeCommit message (Collapse)AuthorLines
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-02-24Use ? in some macrosTaiki Endo-5/+5
2019-02-09Use ? in librustc macrosMatthew Jasper-30/+26
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-13Rollup merge of #55722 - RalfJung:impl-stable-hash, r=varkorkennytm-22/+50
impl_stable_hash_for: support enums and tuple structs with generic parameters Port a bunch of implementations over to the macro, now that that is possible.
2018-11-13Move `static_assert!` into librustc_data_structures.Nicholas Nethercote-10/+0
This means it can be used by more crates.
2018-11-06impl_stable_hash_for: support enums and tuple structs with generic parametersRalf Jung-22/+50
2018-10-26Extend the impl_stable_hash_for! macro for miri.Geoffry Song-6/+15
2018-10-10add a macro for static assertionsRalf Jung-0/+10
2018-08-19mv (mod) codemap source_mapDonato Sciarra-1/+1
2018-08-09Move span_bug and bug helper functions to utilMark Rousskov-2/+2
2018-07-23Fix test and errorsmark-6/+10
2018-06-28Support delegation in stable hashing macrosVadim Petrochenkov-11/+10
2018-05-24implement the chalk traits, albeit with many placeholdersNiko Matsakis-9/+36
2018-03-16extend stable hasher to support `CanonicalTy`Niko Matsakis-1/+1
2018-03-13add `canonicalize` method to `InferCtxt` [VIC]Niko Matsakis-0/+19
2018-03-13improve TypeFoldable/Lift macros and make a bunch of stuff use themNiko Matsakis-0/+300
Improvements: - Use Clone not Copy for the "simple cases" - Separate TypeFoldable and Lift for the "simple cases" - Support generics type parameters - Support named fields in enum variants - etc
2018-03-08Add InterpretInterner to StableHashingContext for AllocId serializationOliver Schneider-8/+8
2017-09-18incr.comp.: Remove tcx from StableHashingContext.Michael Woerister-8/+8
2017-08-08Implement HashStable for Xyz<'gcx> instead of Xyz<'lcx>.Michael Woerister-8/+8
2017-06-06ICH: Make StableHashingContext work with any TyCtxt, not just the global one.Michael Woerister-8/+8
2017-04-06Introduce HashStable trait and base ICH implementations on it.Michael Woerister-0/+79
This initial commit provides implementations for HIR, MIR, and everything that also needs to be supported for those two.
2016-03-31librustc: add {span_,}bug! macrosBenjamin Herr-0/+15
... as single "internal compiler error" entry point. The macros pass `file!()`, `line!()` and `format_args!(...)` on to a cold, never-inlined function, ultimately calling `bug()` or `span_bug()` on the `Handler` from `session::diagnostic()` via the tcx in tls or, failing that, panicking directly.
2015-04-21std: Remove deprecated/unstable num functionalityAlex Crichton-0/+46
This commit removes all the old casting/generic traits from `std::num` that are no longer in use by the standard library. This additionally removes the old `strconv` module which has not seen much use in quite a long time. All generic functionality has been supplanted with traits in the `num` crate and the `strconv` module is supplanted with the [rust-strconv crate][rust-strconv]. [rust-strconv]: https://github.com/lifthrasiir/rust-strconv This is a breaking change due to the removal of these deprecated crates, and the alternative crates are listed above. [breaking-change]