Skip to content

Commit d677752

Browse files
lqdshepmaster
authored andcommitted
remove edition 2021 aside
since it's now available everywhere
1 parent d8c572c commit d677752

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

ui/frontend/AdvancedOptionsMenu.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ import { useSelector, useDispatch } from 'react-redux';
44
import * as actions from './actions';
55
import { Either as EitherConfig, Select as SelectConfig } from './ConfigElement';
66
import MenuGroup from './MenuGroup';
7-
import MenuAside from './MenuAside';
87
import { State } from './reducers';
98
import * as selectors from './selectors';
109
import { Backtrace, Edition } from './types';
1110

1211
const AdvancedOptionsMenu: React.SFC = () => {
1312
const isEditionDefault = useSelector(selectors.isEditionDefault);
1413
const edition = useSelector((state: State) => state.configuration.edition);
15-
const isRust2021Available = useSelector(selectors.isRust2021Available);
1614
const isBacktraceSet = useSelector(selectors.getBacktraceSet);
1715
const backtrace = useSelector((state: State) => state.configuration.backtrace);
1816

@@ -21,16 +19,13 @@ const AdvancedOptionsMenu: React.SFC = () => {
2119
const changeEdition = useCallback((e) => dispatch(actions.changeEdition(e)), [dispatch]);
2220
const changeBacktrace = useCallback((b) => dispatch(actions.changeBacktrace(b)), [dispatch]);
2321

24-
const Aside = !isRust2021Available && <Rust2021Aside />;
25-
2622
return (
2723
<MenuGroup title="Advanced options">
2824
<SelectConfig
2925
name="Edition"
3026
value={edition}
3127
isNotDefault={!isEditionDefault}
3228
onChange={changeEdition}
33-
aside={Aside}
3429
>
3530
<option value={Edition.Rust2015}>2015</option>
3631
<option value={Edition.Rust2018}>2018</option>
@@ -49,11 +44,4 @@ const AdvancedOptionsMenu: React.SFC = () => {
4944
);
5045
};
5146

52-
const Rust2021Aside: React.SFC = () => (
53-
<MenuAside>
54-
Note: Rust 2021 currently requires using the Nightly channel, selecting this
55-
option will switch to Nightly.
56-
</MenuAside>
57-
);
58-
5947
export default AdvancedOptionsMenu;

ui/frontend/selectors/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ export const isNightlyChannel = (state: State) => (
108108
);
109109
export const isWasmAvailable = isNightlyChannel;
110110
export const isHirAvailable = isNightlyChannel;
111-
export const isRust2021Available = isNightlyChannel;
112111

113112
export const getModeLabel = (state: State) => {
114113
const { configuration: { mode } } = state;

0 commit comments

Comments
 (0)