summary refs log tree commit diff
path: root/src/test/compile-fail/macros-nonfatal-errors.rs
AgeCommit message (Collapse)AuthorLines
2017-02-16Refactor macro resolution errors + add derive macro suggestionsJosh Driver-5/+0
2017-02-05Move derive macro expansion into the MacroExpanderJosh Driver-3/+5
This removes the expand_derives function, and sprinkles the functionality throughout the Invocation Collector, Expander and Resolver.
2016-05-28Fix fallout in testsJeffrey Seyfried-1/+0
2015-02-04Deprecate in-tree `rand`, `std::rand` and `#[derive(Rand)]`.Huon Wilson-1/+0
Use the crates.io crate `rand` (version 0.1 should be a drop in replacement for `std::rand`) and `rand_macros` (`#[derive_Rand]` should be a drop-in replacement). [breaking-change]
2015-01-07Test fixes and rebase conflictsAlex Crichton-3/+0
2015-01-02Use `derive` rather than `deriving` in testsNick Cameron-1/+1
2014-12-23Rename include_bin! to include_bytes!Chris Wong-2/+2
According to [RFC 344][], methods that return `&[u8]` should have names ending in `bytes`. Though `include_bin!` is a macro not a method, it seems reasonable to follow the convention anyway. We keep the old name around for now, but trigger a deprecation warning when it is used. [RFC 344]: https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md [breaking-change]
2014-06-18Deprecate the bytes!() macro.Simon Sapin-1/+2
Replace its usage with byte string literals, except in `bytes!()` tests. Also add a new snapshot, to be able to use the new b"foo" syntax. The src/etc/2014-06-rewrite-bytes-macros.py script automatically rewrites `bytes!()` invocations into byte string literals. Pass it filenames as arguments to generate a diff that you can inspect, or `--apply` followed by filenames to apply the changes in place. Diffs can be piped into `tip` or `pygmentize -l diff` for coloring.
2014-04-04rustc: feature-gate `concat_idents!`.Huon Wilson-1/+1
concat_idents! is not as useful as it could be, due to macros only being allowed in limited places, and hygiene, so lets feature gate it until we make a decision about it. cc #13294
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-2/+2
Closes #2569
2014-01-27Feature gate trace_macros.xales-0/+1
Fixes #11631
2014-01-18syntax::ext: replace span_fatal with span_err in many places.Huon Wilson-0/+48
This means that compilation continues for longer, and so we can see more errors per compile. This is mildly more user-friendly because it stops users having to run rustc n times to see n macro errors: just run it once to see all of them.