@@ -195,8 +195,6 @@ crate struct SharedContext {
195195 /// Optional path string to be used to load static files on output pages. If not set, uses
196196 /// combinations of `../` to reach the documentation root.
197197 pub static_root_path : Option < String > ,
198- /// Option disabled by default to generate files used by RLS and some other tools.
199- pub generate_redirect_pages : bool ,
200198 /// The fs handle we are working with.
201199 pub fs : DocFS ,
202200 /// The default edition used to parse doctests.
@@ -468,7 +466,6 @@ pub fn run(
468466 resource_suffix,
469467 static_root_path,
470468 generate_search_filter,
471- generate_redirect_pages,
472469 document_private,
473470 ..
474471 } = options;
@@ -536,7 +533,6 @@ pub fn run(
536533 themes,
537534 resource_suffix,
538535 static_root_path,
539- generate_redirect_pages,
540536 fs : DocFS :: new ( & errors) ,
541537 edition,
542538 codes : ErrorCodes :: from ( UnstableFeatures :: from_environment ( ) . is_nightly_build ( ) ) ,
@@ -1556,14 +1552,6 @@ impl Context {
15561552 if !self . render_redirect_pages {
15571553 all. append ( full_path ( self , & item) , & item_type) ;
15581554 }
1559- if self . shared . generate_redirect_pages {
1560- // Redirect from a sane URL using the namespace to Rustdoc's
1561- // URL for the page.
1562- let redir_name = format ! ( "{}.{}.html" , name, item_type. name_space( ) ) ;
1563- let redir_dst = self . dst . join ( redir_name) ;
1564- let v = layout:: redirect ( file_name) ;
1565- self . shared . fs . write ( & redir_dst, v. as_bytes ( ) ) ?;
1566- }
15671555 // If the item is a macro, redirect from the old macro URL (with !)
15681556 // to the new one (without).
15691557 if item_type == ItemType :: Macro {
0 commit comments