1 // Tests the rustdoc --sort-modules-by-appearance option, that allows module declarations to appear
2 // in the order they are declared in the source code, rather than only alphabetically.
4 // compile-flags: -Z unstable-options --sort-modules-by-appearance
12 // @matchesraw 'sort_modules_by_appearance/index.html' '(?s)module_b.*module_c.*module_a'
13 // @matchesraw 'sort_modules_by_appearance/sidebar-items.js' '"module_b".*"module_c".*"module_a"'