about summary refs log tree commit diff
path: root/src/test/run-pass/syntax-extension-source-utils.rs
AgeCommit message (Collapse)AuthorLines
2018-09-06Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.Felix S. Klock II-44/+0
2017-12-24Fix testsest31-1/+1
2017-03-29Refactor how spans are combined in the parser.Jeffrey Seyfried-1/+1
2016-10-18Fix some pretty printing testsVadim Petrochenkov-7/+4
2015-06-13Use `assert_eq!` instead of `assert!` in testspetrochenkov-1/+1
2015-03-31std: Clean out #[deprecated] APIsAlex Crichton-5/+1
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-3/+5
2015-03-05Remove integer suffixes where the types in compiled code are identical.Eduard Burtescu-1/+1
2015-02-21Resolve barriers to changing column!() / line!() return type to u32 in ↵Brian Brooks-1/+1
#19284 . Address review comments in #21769 .
2015-02-21Resolve includeme.fragment conflict.Brian Brooks-1/+1
2015-01-27cleanup: s/`v.slice*()`/`&v[a..b]`/g + remove redundant `as_slice()` callsJorge Aparicio-1/+1
2015-01-05Un-gate macro_rulesKeegan McAllister-5/+3
2015-01-05Modernize macro_rules! invocationsKeegan McAllister-1/+1
macro_rules! is like an item that defines a macro. Other items don't have a trailing semicolon, or use a paren-delimited body. If there's an argument for matching the invocation syntax, e.g. parentheses for an expr macro, then I think that applies more strongly to the *inner* delimiters on the LHS, wrapping the individual argument patterns.
2014-12-23Rename include_bin! to include_bytes!Chris Wong-1/+1
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-12-18librustc: Always parse `macro!()`/`macro![]` as expressions if notPatrick Walton-1/+1
followed by a semicolon. This allows code like `vec![1i, 2, 3].len();` to work. This breaks code that uses macros as statements without putting semicolons after them, such as: fn main() { ... assert!(a == b) assert!(c == d) println(...); } It also breaks code that uses macros as items without semicolons: local_data_key!(foo) fn main() { println("hello world") } Add semicolons to fix this code. Those two examples can be fixed as follows: fn main() { ... assert!(a == b); assert!(c == d); println(...); } local_data_key!(foo); fn main() { println("hello world") } RFC #378. Closes #18635. [breaking-change]
2014-11-20Rename `col!` to `column!`.Huon Wilson-1/+1
This macro is very rarely used, so there is no need (and it is better) for it to avoid the abbreviation. Closes rust-lang/rfcs#467. [breaking-change]
2014-08-31Allow ExprLit expression macros to be used in patterns.Eduard Burtescu-0/+5
2014-05-27std: Rename strbuf operations to stringRicho Healey-5/+5
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-1/+1
[breaking-change]
2014-05-22libcore: Remove all uses of `~str` from `libcore`.Patrick Walton-4/+6
[breaking-change]
2014-05-14test: Remove all uses of `~str` from the test suite.Patrick Walton-6/+9
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-2/+2
2014-04-14Use new attribute syntax in python files in src/etc too (#13478)Manish Goregaokar-1/+1
2014-02-11Change `xfail` directives in compiletests to `ignore`, closes #11363Florian Hahn-2/+2
2013-10-06Add appropriate #[feature] directives to testsAlex Crichton-2/+4
2013-08-17Fix warnings it testsErick Tryzelaar-3/+3
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-3/+3
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-9/+9
2013-03-07test: Fix tests.Patrick Walton-4/+4
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-6/+6
2013-02-11Update copyright yearsMikko Perttunen-1/+1
2013-02-11Add test for using line! in a macroMikko Perttunen-1/+4
2013-02-01check-fast fallout from removing export, r=burningtreeGraydon Hoare-1/+1
2013-01-30test: Remove export from the tests, language, and libraries. rs=deexportingPatrick Walton-7/+4
2012-12-18core: add macro_rules! for "condition! { c: in -> out; }".Graydon Hoare-5/+5
2012-12-12syntax: remove remaining #syntaxext machinery. Close #3516.Graydon Hoare-1/+1
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-1/+11
2012-11-13cleanup: convert some remaining #foo invocations to foo! form.Graydon Hoare-1/+1
2012-10-30Preserve parenthesization in the ASTTim Chevalier-3/+3
Maintain explicit "paren" nodes in the AST so we can pretty-print without having to guess where parens should go. We may revisit this in the future. r=graydon
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-1/+4
#[legacy_exports];
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-8/+8
2012-07-31syntax: Rename 'module' extension to 'module_path'Brian Anderson-1/+1
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-8/+8
2012-07-30Rename `#mod` -> `#module` to not collide with the keyword.Paul Stansifer-1/+1
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-7/+7
#2907.
2012-07-09Allow defining token tree macros. They should work now!Paul Stansifer-2/+2
2012-05-18add #include_bin[]Paul Stansifer-0/+4
2012-05-18Fold #include_str into the other source_utils.rs syntax extensions.Paul Stansifer-0/+3
2012-05-18add #mod[], which expands to the current module pathPaul Stansifer-2/+10
2012-05-18New syntax extensions: #line[], #col[], #file[], #stringify[], #include[]Paul Stansifer-0/+11