Commit graph

72 commits

Author SHA1 Message Date
Simon Sapin
81b7f046bf Move script_plugins to a single file 2019-09-29 23:20:48 +02:00
Simon Sapin
47c269360c Remove redundant webidl_must_inherit compiler plugin lint
At first I was considering moving it to a procedural macro
(source-level information should be sufficient),
and started by trying to reproduce the error case
by changing `htmldivelement.rs` to use `Element` instead of `HTMLElement`
as the first field.

The output was:

```rust
error[E0308]: mismatched types
   --> /home/simon/servo2/target/debug/build/script-4caa244faca7d10f/out/Bindings/HTMLDivElementBinding.rs:665:31
    |
665 |         let _: &HTMLElement = self.as_parent();
    |                               ^^^^^^^^^^^^^^^^ expected struct `dom::htmlelement::HTMLElement`, found struct `dom::element::Element`
    |
    = note: expected type `&dom::htmlelement::HTMLElement`
               found type `&dom::element::Element`
```

This line number is inside a generated method called `__assert_parent_type`.
As far as I can tell, any case where this lint would error is already caught
by such methods. The lint is therefore redundant and can safely be removed.
2019-09-29 23:11:40 +02:00
Simon Sapin
5b935a60a5 Upgrade to rustc 1.40.0-nightly (084beb83e 2019-09-27) 2019-09-28 12:33:33 +02:00
Simon Sapin
d324a2519f Upgrade to rustc 1.40.0-nightly (ddf43867a 2019-09-26) 2019-09-27 13:10:37 +02:00
Simon Sapin
e18846ae94 Upgrade to rustc 1.39.0-nightly (521d78407 2019-08-25) 2019-08-26 14:22:48 +02:00
Simon Sapin
714a5b4248 Upgrade to rustc 1.39.0-nightly (9eae1fc0e 2019-08-23) 2019-08-24 13:41:58 +02:00
Simon Sapin
98e4a53b72 Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15) 2019-08-23 08:23:21 +02:00
Simon Sapin
58c5506415 Upgrade to rustc 1.38.0-nightly (273f42b59 2019-07-21) 2019-07-22 09:35:43 +02:00
Simon Sapin
d3718823ba Upgrade to rustc 1.38.0-nightly (4b65a86eb 2019-07-15) 2019-07-17 10:48:54 +02:00
Kagami Sascha Rosylight
01151274f1 Require default dictionary value for optional dicts 2019-07-12 12:16:09 +09:00
Josh Matthews
43a75011be Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03) 2019-07-05 16:53:02 +02:00
Simon Sapin
1d38bc0419 Fix some new warnings 2019-06-22 14:59:09 +02:00
Simon Sapin
112f1ddeba Upgrade to rustc 1.37.0-nightly (04a3dd8a8 2019-06-18) 2019-06-22 14:59:06 +02:00
Katasonov Vladyslav
c0c11394c4 Run rustfmt. 2019-06-04 23:57:26 +03:00
Katasonov Vladyslav
293e6c88e8 Made webidl search path relative to manifest.
Manifest dir should be more stable than current dir.
2019-06-04 23:08:01 +03:00
bors-servo
6fb7a8cdc7
Auto merge of #23405 - Eijebong:weedle, r=jdm
Switch from webidl to weedle in script_plugins

This removes the dependency on lalrpop and should speed up compilation
quite a bit.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23405)
<!-- Reviewable:end -->
2019-05-20 21:13:33 -04:00
Bastien Orivel
13c632e739 Switch from webidl to weedle in script_plugins
This removes the dependency on lalrpop and should speed up compilation
quite a bit.
2019-05-15 23:03:25 +02:00
Simon Sapin
06b99983fc Upgrade to rustc 1.36.0-nightly (a9ec99f42 2019-05-13) 2019-05-14 17:37:40 +02:00
krk
763fc8a1f2 Simplify ParentMismatchError.fmt. 2019-04-20 22:39:38 +02:00
krk
0d3bee28c8 Replace WebIdlError enum with ParentMismatchError struct. 2019-04-20 22:39:38 +02:00
krk
6db7518110 Use iter.next instead of for-break. 2019-04-20 22:39:38 +02:00
krk
32049d1ab6 Remove debug logs. 2019-04-20 22:39:38 +02:00
krk
0e3ee8b60b Allow Reflector as a parent and special case PaintRenderingContext2D. 2019-04-20 22:39:38 +02:00
krk
ef59009aa1 Remove redundant return keyword. 2019-04-20 22:39:38 +02:00
krk
2384e5f4a2 Rename typ to ty and use &str where possible. 2019-04-20 22:39:37 +02:00
krk
ea833b597f Parse webidl files and lint for inheritance correctness. 2019-04-20 22:39:37 +02:00
krk
dfca8ec913 Can collect webidl paths. 2019-04-20 22:39:22 +02:00
Simon Sapin
389e69bafe Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25) 2019-03-26 15:12:55 +01:00
Simon Sapin
99b898753f Upgrade to rustc 1.34.0-nightly (0ea22717a 2019-03-02) 2019-03-03 19:32:42 +01:00
Simon Sapin
4464354e2e Reformat 2019-02-26 08:18:33 +01:00
Simon Sapin
7bb7c9a1e3 Upgrade to rustc 1.34.0-nightly (097c04cf4 2019-02-24) 2019-02-25 13:35:41 +01:00
Simon Sapin
4c2dcff80b Compat with rustc 1.34.0-nightly (f6fac4225 2019-02-03) 2019-02-05 10:56:40 +01:00
Simon Sapin
12d19760b3 Upgrade to rustc 1.34.0-nightly (da6ab956e 2019-01-27) 2019-01-28 11:23:51 +01:00
Anthony Ramine
1bd29f1cfd Update Rust to 1.33.0-nightly (03acbd71c 2019-01-14) 2019-01-15 23:09:18 +01:00
Manish Goregaokar
e28e73c81f Exempt Rc<Promise> from unrooted_must_root
fixes #22504
2019-01-04 09:34:04 -08:00
Simon Sapin
82fc6d9f49 Upgrade to rustc 1.33.0-nightly (fb86d604b 2018-12-27) 2018-12-28 13:16:55 +01:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
Pyfisch
9e92eb205a Reorder imports 2018-11-06 22:35:07 +01:00
Simon Sapin
45f7199eee cargo fix --edition 2018-11-06 15:26:02 +01:00
chansuke
3324b5b82f Format components/script_plugins 2018-09-13 01:01:35 +09:00
Simon Sapin
707df85a82 Upgrade to rustc 1.30.0-nightly (7061b2775 2018-08-28) 2018-08-29 14:53:19 +02:00
Simon Sapin
a6dcfdcd55 Upgrade to rustc 1.30.0-nightly (721913067 2018-08-26) 2018-08-27 10:47:49 +02:00
Simon Sapin
3509bcb531 Upgrade to rustc 1.29.0-nightly (1ecf6929d 2018-07-16) 2018-07-18 11:25:30 +02:00
Simon Sapin
a09899be99 Upgrade to rustc 1.29.0-nightly (e06c87544 2018-07-06) 2018-07-07 12:53:39 +02:00
Anthony Ramine
5d43f1c9bd Rename BoundAttribBuffers to VertexAttribs and make it store a slice 2018-07-05 14:20:44 +02:00
Anthony Ramine
a553964123 Upgrade to rustc 1.28.0-nightly (524ad9b9e 2018-05-29)
Fixes https://github.com/servo/servo/issues/20844
2018-05-30 10:50:59 +02:00
Josh Matthews
e7979380ba Revert "Upgrade to rustc 1.27.0-nightly (8a37c75a3 2018-05-02)"
This reverts commit 46ad811017.
2018-05-18 11:44:47 -05:00
Simon Sapin
46ad811017 Upgrade to rustc 1.27.0-nightly (8a37c75a3 2018-05-02) 2018-05-04 11:38:45 +02:00
Simon Sapin
a5d9d0b32d Make the unrooted_must_root conditional on a default Cargo feature.
Only http://perf.rust-lang.org/ will disable it,
in order to be less subject to changes to rustc internal APIs.
2017-11-02 15:08:04 +01:00
Simon Sapin
2bee740057 Fix new failure in Nightly 2017-11-01.
The rustc::declare_lints! macro started using a :vis fragment specifier.
2017-11-01 13:08:03 +01:00