Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Manish Goregaokar
63714ebc5f
Add the rust-tenacious move-protection lint, use it for Root<T>
( fixes #5724 )
2015-04-28 04:20:40 +05:30
Ms2ger
6a55ae06d7
Remove some as_slice calls.
2015-04-24 17:44:47 +02:00
Utkarsh Kukreti
a934da80aa
Use quasiquotes for attributes in plugins
crate.
...
Fixes #5157 .
2015-04-04 17:37:06 +02:00
Ms2ger
2755ed6c58
Remove allow(missing_copy_implementations) attributes.
...
This is now the default.
2015-03-23 10:49:44 +01:00
Ms2ger
ba87666cdb
Update some code that's feature-gated under core.
2015-03-21 18:44:39 +01:00
Ms2ger
5f15eb5fbf
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
2015-03-18 13:18:31 -04:00
Ms2ger
8223f695fb
Remove plugin attributes from extern crates.
2015-03-11 23:45:16 +01:00
bors-servo
736c580670
auto merge of #4914 : Ms2ger/servo/match_lang_ty, r=saneyuki
2015-02-13 23:21:49 -07:00
Ms2ger
efbbe22630
Fix warnings in plugins.
2015-02-13 14:57:52 +01:00
Ms2ger
542f62ae94
Cleanup match_lang_ty a bit.
2015-02-13 00:02:18 +01:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
Josh Matthews
446f0f447e
Allow unused variables, imports, and mutable.
2015-02-09 17:41:57 -05:00
Arpad Borsos
02d750adba
Lowercase DOM getters at compile time, fixes #4728
...
The implementation was copied directly from
https://github.com/rust-lang/rust/pull/16636
and updated for rust changes, so the credit goes to @Manishearth
2015-02-03 19:58:47 +01:00
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Ms2ger
01ed338746
Move to to_owned rather than into_string.
...
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
bors-servo
0793137631
auto merge of #4575 : mttr/servo/warnings, r=jdm
...
Notes:
* This adds `#![allow(missing_copy_implementations)]` to components/*/lib.rs. I'm not sure how to approach the missing Copy warnings (are there things for which Copy should NOT be implemented, and how can I tell?) so I stuck this in to make life easier when looking through the warnings. I can easily remove this if necessary.
* This leaves the following type of warnings, which I couldn't figure out how to approach (I'll investigate it later if no one else wants to).
```
css/matching.rs:72:23: 72:35 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:72 this_as_query.equiv(other)
^~~~~~~~~~~~
css/matching.rs:95:10: 95:49 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:95 impl<'a> Equiv<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsCacheQuery<'a> {
```
2015-01-08 16:03:55 -07:00
bors-servo
4cd9eb1253
auto merge of #4574 : Ms2ger/servo/if_let, r=Manishearth
...
This feature is now supported unconditionally.
2015-01-08 14:42:53 -07:00
Matthew Rasmus
a3fc3a1581
Allow missing_copy_implementations
2015-01-08 08:51:11 -08:00
bors-servo
ec474ae835
auto merge of #4541 : Manishearth/servo/ban-stuff, r=jdm
...
Didn't do the `Vec<Temporary<T>>` banning since we might want to whitelist something there. I'll work on that next.
2015-01-08 09:30:54 -07:00
Ms2ger
5f31da82bd
Remove if_let feature gates.
...
This feature is now supported unconditionally.
2015-01-08 17:26:06 +01:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Manish Goregaokar
077bd840a3
Ban Cell<JS<T>> and Cell<JSVal<T>> (partial #4336 )
2015-01-04 15:22:11 +05:30
Ms2ger
a55e1d1974
Remove spurious spaces from lints/mod.rs.
2015-01-01 21:25:31 +01:00
Rohan Prinja
7ac58f202f
break up lints.rs into separate files
2015-01-01 13:50:55 +05:30
Manish Goregaokar
0410d3d9b2
plugins: Add seanmonstar's to_string() lint
2014-12-31 10:34:44 +01:00
Simon Sapin
a29cb0e5d0
Move the define_css_keyword_enum macro to the style crate.
2014-12-29 21:52:12 +01:00
Simon Sapin
2e35d4e987
Add a match_ignore_ascii_case! macro that does not allocate.
...
It should replace `match foo.to_ascii_lower().as_slice() { ...}`
@Manishearth I changed map.get to map.find in the lint to work around an ICE:
task 'rustc' panicked at 'couldn't find node id 0 in the AST map'
Does this look OK?
2014-12-29 16:19:10 +01:00
Simon Sapin
45a08c94a4
Implement ToCss for types in style::properties::common_values::specified
2014-12-29 16:19:09 +01:00
bors-servo
56d1b16d1b
auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallister
...
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.
A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
2014-12-27 22:12:45 -07:00
Manish Goregaokar
93c350e6e3
plugins: Fix transmute lint message
2014-12-27 21:35:49 +05:30
Manish Goregaokar
50c246bdc5
Fix warnings post-upgrade
2014-12-27 03:28:35 +05:30
Manish Goregaokar
21a888341d
Ensure that Reflectors are the first field
2014-12-27 02:53:36 +05:30
Manish Goregaokar
d761877ef6
Add inheritance-checking lint
2014-12-27 02:53:35 +05:30
Manish Goregaokar
21607f066c
Add internal plugin for creating Reflectable implementations
2014-12-27 02:43:13 +05:30
Manish Goregaokar
dd8360fb10
Use inline(always) for trace()
2014-12-27 02:43:12 +05:30
Simon Sapin
e689f9c160
Remove usage of deprecated HashMap::get_copy
2014-12-18 11:17:09 +00:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
Chris Manchester
d25bc49772
Return early and decline analysis when linting within unsafe functions for must_root analysis.
...
Removes a handful of whitelist annotations obsoleted by this change. fixes #3658
2014-12-09 02:10:39 -05:00
Claes 'Letharion' Gyllensvärd
2737db3ad7
Remove bitfield! macro in favour of bitflags!
2014-11-18 19:26:10 +01:00
Jack Moffitt
d1b433a3b3
Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a
2014-11-13 11:17:43 +10:00
Manish Goregaokar
52983ed97c
Silence lint for self.global in XHR
2014-11-06 06:37:44 +05:30
Manish Goregaokar
4a8af307d1
Catch all types of local bindings in check_stmt
2014-11-06 01:30:29 +05:30
Manish Goregaokar
6c9ee378f5
Add documentation to plugins crate
2014-11-06 00:46:12 +05:30
Manish Goregaokar
f6e14119b6
Remove suggestion to use #[must_root] for functions
2014-10-31 11:57:42 +05:30
Manish Goregaokar
38cbf86c8f
Make auto-derived JSTraceable have #[inline] methods
2014-10-16 10:20:20 +05:30
Manish Goregaokar
c45550de73
Add unifying #[dom_struct] attribute ( fixes #3667 )
2014-10-16 10:18:56 +05:30
Tim Taubert
5b72087944
Add #[privatize] to allow enforcing private fields for struct definitions
2014-10-13 11:13:12 +02:00
Simon Sapin
b3245fa407
Upgrade to rustc d2b30f7d3 2014-09-23
2014-09-29 17:41:45 +01:00
bors-servo
c2d6d8084c
Merge pull request #3480 from zwarich/trailing-whitespace
...
Fix trailing whitespace tidy errors
Reviewed-by: larsbergstrom
2014-09-25 17:00:34 -06:00