about summary refs log tree commit diff
path: root/src/libsyntax/diagnostics
AgeCommit message (Collapse)AuthorLines
2014-11-06Fallout from collection conventionsAlexis Beingessner-2/+2
2014-10-31DSTify HashJorge Aparicio-1/+1
- The signature of the `*_equiv` methods of `HashMap` and similar structures have changed, and now require one less level of indirection. Change your code from: ``` hashmap.find_equiv(&"Hello"); hashmap.find_equiv(&&[0u8, 1, 2]); ``` to: ``` hashmap.find_equiv("Hello"); hashmap.find_equiv(&[0u8, 1, 2]); ``` - The generic parameter `T` of the `Hasher::hash<T>` method have become `Sized?`. Downstream code must add `Sized?` to that method in their implementations. For example: ``` impl Hasher<FnvState> for FnvHasher { fn hash<T: Hash<FnvState>>(&self, t: &T) -> u64 { /* .. */ } } ``` must be changed to: ``` impl Hasher<FnvState> for FnvHasher { fn hash<Sized? T: Hash<FnvState>>(&self, t: &T) -> u64 { /* .. */ } // ^^^^^^ } ``` [breaking-change]
2014-10-30rollup merge of #18409 : gamazeps/issue15273Alex Crichton-0/+7
2014-10-29Diagnostic: resolve bare fn in expected closuregamazeps-0/+7
Closes #15273 (I did not find how to get the identifier in the message :/) Also creates the span_help! macro associated with #18126
2014-10-28Use PascalCase for token variantsBrendan Zabarauskas-6/+6
2014-10-26Use standard capitalisation for TokenTree variantsBrendan Zabarauskas-6/+6
2014-10-26Rename TokenTree variants for clarityBrendan Zabarauskas-6/+6
This should be clearer, and fits in better with the `TTNonterminal` variant. Renames: - `TTTok` -> `TTToken` - `TTDelim` -> `TTDelimited` - `TTSeq` -> `TTSequence`
2014-09-19Allow syntax extensions to return multiple items, closes #16723.Florian Hahn-4/+4
This patch replaces `MacItem` with `MacItems`.
2014-09-14syntax: fix fallout from using ptr::P.Eduard Burtescu-2/+2
2014-08-27Implement generalized object and type parameter bounds (Fixes #16462)Niko Matsakis-6/+12
2014-07-19Register new snapshotsAlex Crichton-26/+0
2014-07-18Assign more diagnostic codesJakub Wieczorek-6/+6
2014-07-12Convert a first batch of diagnostics to have error codesJakub Wieczorek-1/+24
2014-07-11Add scaffolding for assigning alpha-numeric codes to rustc diagnosticsJakub Wieczorek-0/+208