aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-113-14/+9
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+1
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Format toml files (#30112)Samson2023-08-171-1/+1
| | | | | | | * Add taplo fmt config for toml fmt * fmt toml files * Add even-better-toml to extensions recommendations
* Use mozjs tracing infrastructure (#29918)Samson2023-08-101-3/+1
| | | | | | | * Update mozjs https://github.com/servo/mozjs/commit/64711ec2e6dc4595df691bffc7f1e5052ab86c8d also fixes https://github.com/servo/servo/issues/30043 * Move to mozjs Traceable and introduce CustomTraceable
* No tracing of nop traceable fields (#29926)Samson2023-08-044-372/+860
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `no_trace` option to JSTraceable derive * NoTrace wrapper * Port some types to no_trace schematics * Fixing my unsafe mistakes (not tracing traceables) * Add docs & safety guards for no_trace Safety guards (trait shenanigans) guarantees safety usage of `no_trace` * Port canvas_traits to no_trace * Port servo_media to no_trace * Port net_traits to no_trace * Port style to no_trace * Port webgpu to no_trace * Port script_traits to no_trace * Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace * unrooted_must_root lint in seperate file * Add trace_in_no_trace_lint as script_plugin * Composable types in must_not_have_traceable * Introduced HashMapTracedValues wrapper * `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>` * Port rest of servo's types to no_trace * Port html5ever, euclid, mime and http to no_trace * Port remaining externals to no_trace * Port webxr and Arc<Mutex<_>> * Fix spelling in notrace doc
* Upgrade remaining components to edition 2018sagudev2023-02-181-0/+1
|
* Upgrade the Rust toolchain to 'nightly-2023-02-01'Mukilan Thiyagarajan2023-02-011-7/+7
| | | | Signed-off-by: Mukilan Thiyagarajan <mukilanthiagarajan@gmail.com>
* Update to latest nightly.Josh Matthews2022-11-211-1/+1
|
* fix(script_plugins): adapt to the new rustc lint APIyvt2022-10-161-33/+27
| | | | <https://github.com/rust-lang/rust/pull/101986>
* fix(script_plugins): `Map::get_parent_item` now returns `OwnerId` instead of ↵yvt2022-10-161-1/+1
| | | | | | `LocalDefId` <https://github.com/rust-lang/rust/pull/102040>
* fix(script_plugins): `LintStore::register_late_pass` now passes an extra arg ↵yvt2022-10-161-1/+1
| | | | | | to a given closure <https://github.com/rust-lang/rust/pull/101501>
* fix(script_plugins): `hir::BindingAnnotation::{Unannotated, Mutable}` have ↵yvt2022-10-161-2/+2
| | | | | | been replaced by associated constants <https://github.com/rust-lang/rust/pull/101241>
* fix(script_plguins): `rustc_ast::ast::AttrKind::Normal` fields are now boxedyvt2022-10-161-4/+4
| | | | <https://github.com/rust-lang/rust/pull/100441>
* fix(script_plugins): replace `TyCtxt::{get_attrs -> get_attrs_unchecked}`yvt2022-10-161-1/+2
| | | | | | | | | | | | | | | | | | | | | [rust-lang/rust#95562][1] renames the existing method `get_attrs` to `get_attrs_unchecked` and introduces a new method in its former place. The new method takes an attribute name and returns attributes of that name. It also checks that, if the attribute name is marked as local- only, the given `DefId` is local as well to prevent misuses. The old method, now named `get_attrs_unchecked`, returns all attributes of a given `DefId`; thus it's "unchecked" in the sense that it's up to the callers to be certain whether the attributes they are looking for are local-only. The new `get_attrs` method lacks the support for attribute names with more than one path component, which is why we can't just migrate to the new `get_attrs` method here. Although `get_attrs_unchecked` is marked for future removal in the compile source code, there's a discussion about [supporting][2] this use case. [1]: https://github.com/rust-lang/rust/pull/95562 [2]: https://github.com/rust-lang/rust/pull/95562/files#r915537557
* fix(script_plugins): the visibility fields of ↵yvt2022-10-161-1/+1
| | | | | | `rustc_hir::intravisit::FnKind` are gone <https://github.com/rust-lang/rust/pull/93970>
* Fix some Clippy lints.Teymour Aldridge2022-08-041-12/+12
|
* Update nightly Rust.Josh Matthews2022-03-261-15/+15
|
* Update rustc to 3/6 nightly.Josh Matthews2022-03-061-2/+2
|
* Update rustc.Josh Matthews2022-01-201-4/+4
|
* Update rustc.Josh Matthews2021-12-021-1/+1
|
* Update nightly rustc.Josh Matthews2021-11-011-2/+7
|
* Remove unnecessary feature gatebjorn32021-08-131-1/+0
|
* Fix lintbjorn32021-08-101-0/+1
|
* Update script_plugin for rust-lang/rust#85296bjorn32021-08-091-3/+2
|
* Update to 7/17 nightly.Josh Matthews2021-07-171-4/+1
|
* Don't name unused ExpnKind::Macro fields in components/script_pluginsDominic Cooney2021-05-221-2/+1
| | | Co-authored-by: Simon Sapin <simon.sapin@exyr.org>
* Update toolchain to nightly-2021-05-18Dominic Cooney2021-05-221-1/+5
| | | | | | | | | | | The nightly-2021-03-12 toolchain doesn't have RLS on Windows. This breaks code completion in Visual Studio Code because the rust plugin picks up the project toolchain. RLS is available in all tier one platforms in nightly-2021-05-18 per: https://rust-lang.github.io/rustup-components-history/ Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
* Update doc comment for script_plugins/lib.rsbjorn32021-05-141-8/+2
| | | script_plugins no longer provides any macros. It currently only provides the must_root lint.
* Update to 3/12 rustc nightly.Josh Matthews2021-03-141-4/+6
|
* Upgrade to rustc 1.52.0-nightly (a8486b64b 2021-02-24)Simon Sapin2021-02-251-1/+1
|
* Upgrade to rustc 1.48.0-nightly (623fb90b5 2020-09-26)Simon Sapin2021-01-261-8/+12
|
* Update to 7/27 nightly rustc.Josh Matthews2020-07-271-2/+2
|
* Update to 7/6 rustc.Josh Matthews2020-07-061-6/+6
|
* Update to new internal rustc tables() API.Josh Matthews2020-06-301-2/+2
|
* Upgrade to rustc 1.44.0-nightly (42abbd887 2020-04-07)Simon Sapin2020-04-091-3/+14
|
* Upgrade to rustc 1.44.0-nightly (211365947 2020-03-30)Simon Sapin2020-04-081-3/+3
|
* Update rustc to 3/16 nightly.Josh Matthews2020-03-161-4/+2
|
* Update to 3/4 nightly rustc.Josh Matthews2020-03-101-2/+2
|
* Revert "Auto merge of #25898 - jdm:rustup, r=asajeffrey"Josh Matthews2020-03-061-2/+2
| | | | | This reverts commit ea8aed1ba927012d992a3d3c9880858e0282f5f9, reversing changes made to 3749eb53971b688b855d6b1850f41b4c346cd2da.
* Update to 3/4 nightly rustc.Josh Matthews2020-03-041-2/+2
|
* Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13)Simon Sapin2020-02-141-33/+39
|
* Use the `matches!` macro from the standard librarySimon Sapin2020-02-122-5/+0
|
* Upgrade to rustc 1.42.0-nightly (3291ae339 2020-01-15)Simon Sapin2020-01-161-9/+16
|
* Add accountable-refcell as optional build time featureKunal Mohan2020-01-081-0/+4
|
* Upgrade to rustc 1.42.0-nightly (9b98af84c 2019-12-22)Simon Sapin2019-12-231-2/+2
|
* Upgrade to rustc 1.41.0-nightly (7afe6d9d1 2019-12-03)Simon Sapin2019-12-041-1/+2
|
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-152-27/+45
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Use `#![register_attr(…)]` instead of `Registry::register_attribute`Simon Sapin2019-11-151-4/+0
| | | | CC https://github.com/rust-lang/rust/pull/66344, https://github.com/rust-lang/rust/issues/66080
* Upgrade to rustc 1.40.0-nightly (246be7e1a 2019-10-25)Simon Sapin2019-10-261-7/+10
|
* Move script_plugins to a single fileSimon Sapin2019-09-293-365/+337
|