Skip to content

Unit tests are failing #308

@Loirooriol

Description

@Loirooriol
$ cargo test -r
   Compiling stylo v0.12.0 (/home/oriol/src/stylo/style)
error[E0599]: no variant or associated item named `RubyText` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:281:44
    |
281 |         assert_eq!(map.get(&PseudoElement::RubyText), None);
    |                                            ^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `RubyText` not found for this enum

error[E0599]: no variant or associated item named `RubyText` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:282:33
    |
282 |         map.set(&PseudoElement::RubyText, 8);
    |                                 ^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `RubyText` not found for this enum

error[E0599]: no variant or associated item named `RubyText` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:283:44
    |
283 |         assert_eq!(map.get(&PseudoElement::RubyText), Some(8).as_ref());
    |                                            ^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `RubyText` not found for this enum

error[E0599]: no variant or associated item named `RubyText` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:286:52
    |
286 |             map.get_or_insert_with(&PseudoElement::RubyText, || { 10 }),
    |                                                    ^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `RubyText` not found for this enum

error[E0599]: no variant or associated item named `RubyText` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:289:33
    |
289 |         map.set(&PseudoElement::RubyText, 9);
    |                                 ^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `RubyText` not found for this enum

error[E0599]: no variant or associated item named `RubyText` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:290:44
    |
290 |         assert_eq!(map.get(&PseudoElement::RubyText), Some(9).as_ref());
    |                                            ^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `RubyText` not found for this enum

error[E0599]: no variant or associated item named `FirstLine` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:293:52
    |
293 |             map.get_or_insert_with(&PseudoElement::FirstLine, || { 10 }),
    |                                                    ^^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `FirstLine` not found for this enum

error[E0599]: no variant or associated item named `FirstLine` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:296:44
    |
296 |         assert_eq!(map.get(&PseudoElement::FirstLine), Some(10).as_ref());
    |                                            ^^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `FirstLine` not found for this enum

error[E0599]: no variant or associated item named `RubyText` found for enum `servo::selector_parser::PseudoElement` in the current scope
   --> style/selector_parser.rs:303:33
    |
303 |         map.set(&PseudoElement::RubyText, 8);
    |                                 ^^^^^^^^ variant or associated item not found in `servo::selector_parser::PseudoElement`
    |
   ::: style/servo/selector_parser.rs:43:1
    |
 43 | pub enum PseudoElement {
    | ---------------------- variant or associated item `RubyText` not found for this enum

For more information about this error, try `rustc --explain E0599`.
error: could not compile `stylo` (lib test) due to 9 previous errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions