about summary refs log tree commit diff
path: root/src/test/run-pass/item-attributes.rs
AgeCommit message (Collapse)AuthorLines
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-16Use attributes for native module ABI and link nameHaitao Li-5/+10
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-11-09Add "cdecl" as synonym for "c-stack-cdecl"Brian Anderson-5/+5
2011-10-24move uses of rust ABI in tests to cdecl or c-stack-cdecl as apprNiko Matsakis-5/+5
Note: I found a bug in c-stack-cdecl which codes not permit such native functions to be used as values. I added an xfail-test (c-stack-as-value) documenting it.
2011-09-02Reformat. Issue #855Brian Anderson-1/+1
2011-09-01Convert all uses of #ifmt to #fmt. Issue #855Brian Anderson-1/+1
2011-09-01Remove some uses of str_buf builtin. Issue #855Brian Anderson-1/+1
2011-08-31Convert uses of #fmt to #ifmt. Issue #855Brian Anderson-1/+1
2011-08-23Resolve a number of FIXMEsBrian Anderson-2/+1
2011-08-20ReformatBrian Anderson-1/+1
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-12Remove all usages of std::vec::vbufBrian Anderson-2/+2
2011-08-03Remove all xfail-stage0 directivesBrian Anderson-2/+0
While it is still technically possible to test stage 0, it is not part of any of the main testing rules and maintaining xfail-stage0 is a chore. Nobody should worry about how tests fare in stage0.
2011-08-03Un-xfail more pretty-printing testsBrian Anderson-1/+0
2011-08-02Add xfail-pretty directives to tests that don't pretty-print correctlyBrian Anderson-0/+1
Issue #789
2011-07-27Fix damage done by the pretty-printerMarijn Haverbeke-2/+2
2011-07-27Reformat for new syntaxMarijn Haverbeke-31/+21
2011-07-05Change ast::meta_name_value to accept any literal, not just stringBrian Anderson-0/+14
This isn't useful for much of anything yet, since metadata::encoder doesn't know how to handle the non-string variants. Issue #611
2011-07-05Parse attributes for native items. Closes #609Brian Anderson-0/+12
2011-06-28Rework how linkage attributes are determinedBrian Anderson-0/+207
The meta items within a crate's link attribute are used in linkage: #[link(name = "std", vers = "1.0", custom = "whatever")]; Name and vers are treated specially, and everything else is hashed together into the crate meta hash. Issue #487
2011-06-28Add some helper functions for attributes. Issue #487Brian Anderson-201/+0
2011-06-28Write metadata for more meta_item types. Issue #487Brian Anderson-0/+2
2011-06-22rustc: Introduce and parse additional meta_item formsBrian Anderson-0/+11
Examples: #[test], #[link(name = "vers")] Issue #487
2011-06-21test: Add a test for distinguishing attributes from extensionsBrian Anderson-0/+12
Issue #487
2011-06-16rustc: Parse crate attributes in standalone .rs filesBrian Anderson-0/+6
Issue #487
2011-06-16test: Add a test for outer attributes on the first module in a fileBrian Anderson-0/+6
Issue #487
2011-06-16rustc: Parse inner attributes of modulesBrian Anderson-0/+44
Issue #487
2011-06-15rustc: Support outer attributes on items that are defined as statementsBrian Anderson-1/+66
Issue #487
2011-06-15test: Add missing fn test cases to run-pass/item-attributes.rsBrian Anderson-6/+13
Issue #487
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-32/+29
2011-06-15test: Add tests for multiple outer attributes on itemsBrian Anderson-11/+41
Issue #487
2011-06-15test: Add test cases for outer attributes on all item typesBrian Anderson-0/+13
2011-06-15rustc: Parse module attributesBrian Anderson-0/+8
Issue #487