diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-11-25 19:51:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-25 19:51:54 +0100 |
| commit | 9a59b059d5461a9de67719a8d8ce8ff8bdd06e06 (patch) | |
| tree | c233eced2dc614fb0c3fd33119022e6d9e401e97 /compiler/rustc_span/src | |
| parent | 6361989b6d22459235b9160c6e94b7a97be8c796 (diff) | |
| parent | 57c9eb73814470d3223e4a0f4ca6ee588648ad6f (diff) | |
| download | rust-9a59b059d5461a9de67719a8d8ce8ff8bdd06e06.tar.gz rust-9a59b059d5461a9de67719a8d8ce8ff8bdd06e06.zip | |
Rollup merge of #117871 - klensy:unused-pub, r=cjgillot
remove unused pub fns This removes some unused `pub fn`; also fixes few obsoleted fn names or added fixmes with reminders to update them.
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, |
