about summary refs log tree commit diff
path: root/src/test/run-pass/item-attributes.rs
AgeCommit message (Collapse)AuthorLines
2019-06-08Move some run-pass attribute tests to uiVadim Petrochenkov-180/+0
2019-06-08Introduce `#[rustc_dummy]` attribute and use it in testsVadim Petrochenkov-60/+56
Unlike other built-in attributes, this attribute accepts any input
2019-02-10tests: doc commentsAlexander Regueiro-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-09-21Allow various lints as part of ui-ifying `src/test/run-pass` suite.Felix S. Klock II-0/+5
2017-11-19std: Add a new wasm32-unknown-unknown targetAlex Crichton-5/+2
This commit adds a new target to the compiler: wasm32-unknown-unknown. This target is a reimagining of what it looks like to generate WebAssembly code from Rust. Instead of using Emscripten which can bring with it a weighty runtime this instead is a target which uses only the LLVM backend for WebAssembly and a "custom linker" for now which will hopefully one day be direct calls to lld. Notable features of this target include: * There is zero runtime footprint. The target assumes nothing exists other than the wasm32 instruction set. * There is zero toolchain footprint beyond adding the target. No custom linker is needed, rustc contains everything. * Very small wasm modules can be generated directly from Rust code using this target. * Most of the standard library is stubbed out to return an error, but anything related to allocation works (aka `HashMap`, `Vec`, etc). * Naturally, any `#[no_std]` crate should be 100% compatible with this new target. This target is currently somewhat janky due to how linking works. The "linking" is currently unconditional whole program LTO (aka LLVM is being used as a linker). Naturally that means compiling programs is pretty slow! Eventually though this target should have a linker. This target is also intended to be quite experimental. I'm hoping that this can act as a catalyst for further experimentation in Rust with WebAssembly. Breaking changes are very likely to land to this target, so it's not recommended to rely on it in any critical capacity yet. We'll let you know when it's "production ready". --- Currently testing-wise this target is looking pretty good but isn't complete. I've got almost the entire `run-pass` test suite working with this target (lots of tests ignored, but many passing as well). The `core` test suite is still getting LLVM bugs fixed to get that working and will take some time. Relatively simple programs all seem to work though! --- It's worth nothing that you may not immediately see the "smallest possible wasm module" for the input you feed to rustc. For various reasons it's very difficult to get rid of the final "bloat" in vanilla rustc (again, a real linker should fix all this). For now what you'll have to do is: cargo install --git https://github.com/alexcrichton/wasm-gc wasm-gc foo.wasm bar.wasm And then `bar.wasm` should be the smallest we can get it! --- In any case for now I'd love feedback on this, particularly on the various integration points if you've got better ideas of how to approach them!
2015-04-12Remove pretty-expanded from tests that use format_args!Ryan Prichard-1/+0
Now that the internals of `format_args!` are unstable, tests that use it don't compile after pretty-printing (unless they also declare the necessary feature).
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-7/+7
Now that support has been removed, all lingering use cases are renamed.
2015-03-23rustdoc: Replace no-pretty-expanded with pretty-expandedBrian Anderson-0/+2
Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-1/+1
2015-02-18Update suffixes en masse in tests using `perl -p -i -e`Niko Matsakis-1/+1
2015-02-16Add custom_attribute gate to tests which need themManish Goregaokar-0/+2
2014-06-24Remove few FIXMEsPiotr Jawniak-3/+1
This commit removes FIXMEs of few closed issues. Closes #13992
2014-05-24Get "make check" to work with unused-attributeSteven Fackler-0/+1
There's a fair number of attributes that have to be whitelisted since they're either looked for by rustdoc, in trans, or as needed. These can be cleaned up in the future.
2014-04-14Use new attribute syntax in python files in src/etc too (#13478)Manish Goregaokar-19/+19
2014-04-06auto merge of #13315 : alexcrichton/rust/libc, r=alexcrichton,mebors-1/+1
Rebasing of #12526 with a very obscure bug fixed on windows.
2014-04-04Fix inner attribute syntax from `#[foo];` to `#![foo]`Timothée Ravier-2/+2
From the 0.10 changelog: * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
2014-04-04Fix fallout from std::libc separationCorey Richardson-1/+1
2014-03-14extra: Put the nail in the coffin, delete libextraAlex Crichton-3/+1
This commit shreds all remnants of libextra from the compiler and standard distribution. Two modules, c_vec/tempfile, were moved into libstd after some cleanup, and the other modules were moved to separate crates as seen fit. Closes #8784 Closes #12413 Closes #12576
2014-02-14extern mod => extern crateAlex Crichton-1/+1
This was previously implemented, and it just needed a snapshot to go through
2013-12-23rustc: Add a lint for the obsolete crate-level link attributeBrian Anderson-6/+0
2013-12-19Rename pkgid to crate_idCorey Richardson-1/+1
Closes #11035
2013-12-10Make crate hash stable and externally computable.Jack Moffitt-0/+2
This replaces the link meta attributes with a pkgid attribute and uses a hash of this as the crate hash. This makes the crate hash computable by things other than the Rust compiler. It also switches the hash function ot SHA1 since that is much more likely to be available in shell, Python, etc than SipHash. Fixes #10188, #8523.
2013-10-30syntax: Forbid non-string literals in meta items. #623Brian Anderson-2/+4
2013-10-14Removing ccdeclSteve Klabnik-5/+5
as per https://github.com/mozilla/rust/pull/9606#discussion_r6930872
2013-10-14Remove unused abi attributes.Steve Klabnik-10/+5
They've been replaced by putting the name on the extern block. #[abi = "foo"] goes to extern "foo" { } Closes #9483.
2013-09-30rpass: Remove usage of fmt!Alex Crichton-1/+1
2013-08-17Fix warnings it testsErick Tryzelaar-1/+1
2013-08-09Remove the C++ runtime. SayonaraBrian Anderson-1/+1
2013-07-20librustc: Remove `pub extern` and `priv extern` from the language.Patrick Walton-5/+5
Place `pub` or `priv` on individual items instead.
2013-06-06Deduplicate words in code commentsAlexei Sholik-1/+1
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+2
2013-05-22test: Update tests to use the new syntax.Patrick Walton-3/+3
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-10/+0
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-4/+4
2013-03-07test: Fix tests.Patrick Walton-1/+1
2013-03-07librustc: Remove "extern mod { ... }" from librustc, librustdoc, and tests. ↵Patrick Walton-19/+29
rs=deexterning
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-51/+18
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-11Uncomment nested module in test, delete a FIXMETim Chevalier-2/+0
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-6/+31
#[legacy_exports];
2012-09-11Convert 'use' to 'extern mod'. Remove old 'use' syntaxBrian Anderson-1/+1
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-1/+1
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-1/+1
2012-07-17fix no-longer-unsupervise test cases on windowsBen Blum-1/+1
2012-07-17Change all test/run-pass uses of rustrt::unsupervise() to something elseBen Blum-1/+1
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-1/+1
#2907.
2012-07-03Switch 'native' to 'extern' (or 'foreign' in some descriptions)Graydon Hoare-5/+5
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-1/+1
This comes with a terminology change. All linkage-symbols are 'extern' now, including rust syms in other crates. Some extern ABIs are merely "foreign". The term "native" is retired, not clear/useful. What was "crust" is now "extern" applied to a _definition_. This is a bit of an overloading, but should be unambiguous: it means that the definition should be made available to some non-rust ABI.