about summary refs log tree commit diff
path: root/src/libfmt_macros
AgeCommit message (Collapse)AuthorLines
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-08-11A few cleanups for fmt_macros, graphviz, apfloat, target, serialize and termljedrz-7/+5
2018-08-09[nll] libfmt_macros: enable feature(nll) for bootstrapmemoryruins-0/+2
2018-07-29Remove unused `mut`sMatthew Jasper-1/+1
2018-07-27Auto merge of #52336 - ishitatsuyuki:dyn-rollup, r=Mark-Simulacrumbors-2/+0
Rollup of bare_trait_objects PRs All deny attributes were moved into bootstrap so they can be disabled with a line of config. Warnings for external tools are allowed and it's up to the tool's maintainer to keep it warnings free. r? @Mark-Simulacrum cc @ljedrz @kennytm
2018-07-25Deny bare_trait_objects globallyTatsuyuki Ishi-2/+0
2018-07-24Add documentation for `Parser::arg_places`Esteban Küber-0/+1
2018-07-22Point at internal span in format stringEsteban Küber-4/+13
2018-07-21fix testEsteban Küber-2/+2
2018-07-21Remove dependency on `libsyntax`Esteban Küber-16/+5
2018-07-20fix rebaseEsteban Küber-1/+1
2018-07-20fix incorrect position of chars in fmt strEsteban Küber-8/+9
2018-07-19Use correct spans for format string errorsEsteban Küber-9/+34
When encountering format string errors in a raw string, or regular string literal with embedded newlines, account for the positional change to use correct spans. :drive by fix: 🚗
2018-07-19rework printlnEsteban Küber-1/+5
2018-07-12Deny bare trait objects in the rest of rustljedrz-0/+2
2018-05-10Improve format string errorsEsteban Küber-14/+68
- Point at format string position inside the formatting string - Explain that argument names can't start with an underscore
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-1/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-03-13Add hexadecimal formatting of integers with fmt::DebugSimon Sapin-2/+20
This can be used for integers within a larger types which implements Debug (possibly through derive) but not fmt::UpperHex or fmt::LowerHex. ```rust assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]"); assert!(format!("{:02X?}", b"Foo\0") == "[46, 6F, 6F, 00]"); ``` RFC: https://github.com/rust-lang/rfcs/pull/2226
2018-02-10fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}}Matthias Krüger-1/+1
2017-11-09Retain information on whether a format argument has explicit positionTommy Ip-10/+12
2017-08-25*: remove crate_{name,type} attributesTamir Duberstein-3/+0
Fixes #41701.
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-1/+1
Like #43008 (f668999), but _much more aggressive_.
2017-06-19Bump version and stage0 compilerAlex Crichton-4/+0
2017-06-16Introduce tidy lint to check for inconsistent tracking issuesest31-1/+1
This commit * Refactors the collect_lib_features function to work in a non-checking mode (no bad pointer needed, and list of lang features). * Introduces checking whether unstable/stable tags for a given feature have inconsistent tracking issues. * Fixes such inconsistencies throughout the codebase.
2017-05-11rustc: Remove #![unstable] annotationAlex Crichton-2/+2
These are now no longer necessary with `-Z force-unstable-if-unmarked`
2016-12-29Remove not(stage0) from deny(warnings)Alex Crichton-1/+1
Historically this was done to accommodate bugs in lints, but there hasn't been a bug in a lint since this feature was added which the warnings affected. Let's completely purge warnings from all our stages by denying warnings in all stages. This will also assist in tracking down `stage0` code to be removed whenever we're updating the bootstrap compiler.
2016-11-11On fmt string with unescaped `{` note how to escapeEsteban Küber-4/+19
On cases of malformed format strings where a `{` hasn't been properly escaped, like `println!("{");`, present a note explaining how to escape the `{` char.
2016-07-14format: remove all implicit ref handling outside of libfmt_macrosWang Xuerui-36/+23
format: beautifully get rid of ArgumentNext and CountIsNextParam Now that CountIsNextParam and ArgumentNext are resolved during parse, the need for handling them outside of libfmt_macros is obviated. Note: *one* instance of implicit reference handling still remains, and that's for implementing `all_args_simple`. It's trivial enough though, so in this case it may be tolerable.
2016-07-14libfmt_macros: resolve all implicit refs while parsingWang Xuerui-11/+46
2016-02-11bootstrap: Add a bunch of Cargo.toml filesAlex Crichton-0/+9
These describe the structure of all our crate dependencies.
2016-01-24mk: Move from `-D warnings` to `#![deny(warnings)]`Alex Crichton-0/+1
This commit removes the `-D warnings` flag being passed through the makefiles to all crates to instead be a crate attribute. We want these attributes always applied for all our standard builds, and this is more amenable to Cargo-based builds as well. Note that all `deny(warnings)` attributes are gated with a `cfg(stage0)` attribute currently to match the same semantics we have today
2015-12-21Register new snapshotsAlex Crichton-3/+0
Lots of cruft to remove!
2015-11-26Auto merge of #30015 - petrochenkov:staged, r=brsonbors-1/+1
Closes https://github.com/rust-lang/rust/issues/30008 `#[stable]`, `#[unstable]` and `#[rustc_deprecated]` are now guarded by `#[feature(staged_api)]` r? @brson
2015-11-25Remove all uses of `#[staged_api]`Vadim Petrochenkov-1/+1
2015-11-24rustfmt: libflate, libfmt_macros, libgetopts, libgraphviz, liblog, librandNick Cameron-8/+6
2015-11-12libfmt_macros: deny warnings in doctestsKevin Butler-1/+2
2015-10-15Rollup merge of #29022 - apasel422:spell, r=steveklabnikManish Goregaokar-1/+1
r? @steveklabnik
2015-10-13Revert "fixups"Marcello Seri-1/+5
This reverts commit 5b8335ede4214f802eab765ca99b5afa9057973c.
2015-10-13fixupsMarcello Seri-5/+1
2015-10-13rustfmt libfmt_macrosMarcello Seri-160/+220
2015-10-13Correct spelling in docsAndrew Paseltiner-1/+1
2015-09-11some code improvements in libfmt_macrosSimon Mazur-108/+74
2015-09-11Changed libfmt_macros Parse iterator to PeekableSimon Mazur-25/+26
2015-09-02Improved libfmt_macros code style with clippyllogiq-17/+11
2015-08-15Add issue for the rustc_private feature everywhereAlex Crichton-1/+1
2015-08-09Use https URLs to refer to rust-lang.org where appropriate.Eli Friedman-3/+3
Also fixes a few outdated links.
2015-07-01Make the unused_mut lint smarter with respect to locals.Ariel Ben-Yehuda-1/+1
Fixes #26332
2015-05-15libs: Move favicon URLs to HTTPSAlex Crichton-1/+1
Helps prevent mixed content warnings if accessing docs over HTTPS. Closes #25459
2015-04-14Negative case of `len()` -> `is_empty()`Tamir Duberstein-2/+2
`s/([^\(\s]+\.)len\(\) [(?:!=)>] 0/!$1is_empty()/g`
2015-04-01Fallout in public-facing and semi-public-facing libsNiko Matsakis-7/+7