diff options
| author | klensy <klensy@users.noreply.github.com> | 2023-11-13 14:43:53 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2023-11-23 14:11:02 +0300 |
| commit | aff6c741d466610576b02fde72d139aa8c6ec0a8 (patch) | |
| tree | 0f8154ef568be57bb4f5c611838a8a310942d81b /compiler/rustc_span/src | |
| parent | 38eecca62c73401043eb5ff01557bb58792631f7 (diff) | |
| download | rust-aff6c741d466610576b02fde72d139aa8c6ec0a8.tar.gz rust-aff6c741d466610576b02fde72d139aa8c6ec0a8.zip | |
remove unused pub fn
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/lib.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs index 6400ba488bb..76be546e945 100644 --- a/compiler/rustc_span/src/lib.rs +++ b/compiler/rustc_span/src/lib.rs @@ -139,13 +139,6 @@ pub fn set_session_globals_then<R>(session_globals: &SessionGlobals, f: impl FnO SESSION_GLOBALS.set(session_globals, f) } -pub fn create_default_session_if_not_set_then<R, F>(f: F) -> R -where - F: FnOnce(&SessionGlobals) -> R, -{ - create_session_if_not_set_then(edition::DEFAULT_EDITION, f) -} - pub fn create_session_if_not_set_then<R, F>(edition: Edition, f: F) -> R where F: FnOnce(&SessionGlobals) -> R, |
