@@ -195,8 +195,6 @@ crate struct SharedContext {
195
195
/// Optional path string to be used to load static files on output pages. If not set, uses
196
196
/// combinations of `../` to reach the documentation root.
197
197
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 ,
200
198
/// The fs handle we are working with.
201
199
pub fs : DocFS ,
202
200
/// The default edition used to parse doctests.
@@ -468,7 +466,6 @@ pub fn run(
468
466
resource_suffix,
469
467
static_root_path,
470
468
generate_search_filter,
471
- generate_redirect_pages,
472
469
document_private,
473
470
..
474
471
} = options;
@@ -536,7 +533,6 @@ pub fn run(
536
533
themes,
537
534
resource_suffix,
538
535
static_root_path,
539
- generate_redirect_pages,
540
536
fs : DocFS :: new ( & errors) ,
541
537
edition,
542
538
codes : ErrorCodes :: from ( UnstableFeatures :: from_environment ( ) . is_nightly_build ( ) ) ,
@@ -1556,14 +1552,6 @@ impl Context {
1556
1552
if !self . render_redirect_pages {
1557
1553
all. append ( full_path ( self , & item) , & item_type) ;
1558
1554
}
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
- }
1567
1555
// If the item is a macro, redirect from the old macro URL (with !)
1568
1556
// to the new one (without).
1569
1557
if item_type == ItemType :: Macro {
0 commit comments