about summary refs log tree commit diff
path: root/src/doc/trpl/plugins.md
AgeCommit message (Collapse)AuthorLines
2015-04-07Import real content.Steve Klabnik-0/+0
2015-04-07New TOCSteve Klabnik-242/+0
2015-03-26New section of the book: nightly rustSteve Klabnik-24/+0
Now that feature flags are only on nightly, it's good to split this stuff out.
2015-03-07Fix #23166. Get the Compiler Plugins example compiling again.Ryan Prichard-4/+4
* "let met text" was previously of &String type. Now it is of &str type. * Update the slicing syntax. Both &text[] and text.slice_from() evaluate to a &str. * We were passing a u32 to expr_usize. Call expr_u32 instead.
2015-02-27Replace MacExpr / MacPat / MacItems with MacEagerKeegan McAllister-4/+4
MacEager is a MacResult implementation for the common case where you've already built each form of AST that you might return. Fixes #17637. Based on #18814. This is a [breaking-change] for syntax extensions: * MacExpr::new becomes MacEager::expr. * MacPat::new becomes MacEager::pat. * MacItems::new becomes MacEager::items. It takes a SmallVector directly, not an iterator.
2015-02-24Enhance and move information about macro debuggingKeegan McAllister-8/+6
Fixes #22424.
2015-02-12Warn when linking a plugin into a non-plugin crateKeegan McAllister-0/+10
Fixes #22202.
2015-02-09Use a crate attribute to load pluginsKeegan McAllister-8/+7
#[plugin] #[no_link] extern crate bleh; becomes a crate attribute #![plugin(bleh)] The feature gate is still required. It's almost never correct to link a plugin into the resulting library / executable, because it will bring all of libsyntax and librustc with it. However if you really want this behavior, you can get it with a separate `extern crate` item in addition to the `plugin` attribute. Fixes #21043. Fixes #20769. [breaking-change]
2015-01-30Don't use as_slice() in docsSteve Klabnik-1/+1
Use deref coercions instead.
2015-01-17Fix up titles of TRPL chaptersSteve Klabnik-1/+1
2015-01-17Intpocalypse, book edition.Steve Klabnik-3/+3
Fix all usage of int/uint/i/u in the book.
2015-01-13Replace usage of deriving with derive in docsGreg Chapple-1/+1
2015-01-08Standardize punctuation & formatting of TRPLKevin Yap-1/+1
This commit is an attempt to standardize the use of punctuation and formatting in "The Rust Programming Language" as discussed in #19823. - Convert bold text to italicized textcwhen referring to terminology. - Convert single-quoted text to italicized or double-quoted text, depending on context. - Use double quotes only in the case of scare quotes or quotations.
2015-01-08Fix dead links in the guide and reorganizeAlex Crichton-0/+259